Directory Traversal in Jiangnan Online Judge 0.8.0
Jiangnan Online Judge (jnoj) 0.8.0 contains a directory traversal vulnerability in its problem file-viewing endpoint. Parent-directory traversal sequences in the name query parameter allow file-reading requests to escape the intended directory and access files elsewhere on the server.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can disclose files outside the intended problem-file directory, subject to the web application's filesystem permissions. Exposed files may contain sensitive application or server information. File modification or code execution is not established.
If you can’t patch tonight, do this now.
As a temporary mitigation, implement input validation to reject any file names containing '../' or other directory traversal patterns, and restrict file access to a specific directory using chroot or similar mechanisms.
Patch, then assume compromise.
Upgrade to a version of Jiangnan Online Judge where input validation and sanitization are properly implemented for file path parameters, or apply a patch that ensures user-supplied input cannot traverse directories.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
2 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.