Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.9

CVE-2018-16367: OnlineJudge 2.0 can write files to any location

CVE-2018-16367 · published 8 years ago
Summary

The sandbox in OnlineJudge 2.0 does not correctly limit where files can be created, letting a user place a file anywhere on the system, such as writing a directory list to /tmp. This can be abused to expose the contents of other files using include tricks. Update to the latest version or apply the vendor's patch to restore proper file‑write restrictions.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
VendorProductAffected versions
qduoj onlinejudge 2.0
cpe:2.3:a:qduoj:onlinejudge:2.0:*:*:*:*:*:*:*
Original advisory text
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.
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.
References
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit (estimated)
  • Gives an attacker full control (estimated)
Severity
9.9 Critical
Exploitation
2% chance of attack within 30 days
Type
CWE-22Path Traversal
Timeline
Published2 Sep 2018
Updated4 Nov 2026
First seen29 Sep 2026
Sources
Track software like this
Free during beta