CVE-2018-16367 Path traversal in n/a

Critical 9.9 Published Updated

An attacker can exploit incorrect access control in the OnlineJudge sandbox to write files anywhere and leak sensitive data via directory listings and includes.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2018-16367?

CVE-2018-16367 is a critical path traversal vulnerability in n/a, published on 2 Sep 2018. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

In OnlineJudge 2.0, the sandbox has an incorrect access control vulnerability that can write a file anywhere. A user can write a directory listing to /tmp, and can leak file data with a #include.

Weakness: CWE-22

Which versions are affected by CVE-2018-16367?

It affects 1 product.

Products include Qduoj Onlinejudge.

How do I fix CVE-2018-16367?

No fix has been published for CVE-2018-16367 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2018-16367 being exploited?

There is no known exploitation of CVE-2018-16367 in the wild and no public exploit code.

Sources

Also known as GHSA-mjjv-394r-rc2r.

Is CVE-2018-16367 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free