GitHub Advisory Database
GHSA-j8r2-47rx-qhw4
Robocode vulnerable to Directory Traversal in recursivelyDelete Method
Details
A directory traversal vulnerability exists in the CacheCleaner component of Robocode version 1.9.3.6. The recursivelyDelete method fails to properly sanitize file paths, allowing attackers to traverse directories and delete arbitrary files on the system. This vulnerability can be exploited by submitting specially crafted inputs that manipulate the file path, leading to potential unauthorized file deletions.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Maven | net.sf.robocode:robocode.core | All versions before 1.9.5.6 (fixed in 1.9.5.6) |