Jenkins directory traversal vulnerability
Research is free — Hunters explains how the bug works, the root-cause code pattern, how the fix addresses it, and how to test whether a target is affected, in chat. Investigate & write exploit is a paid run — the engine reads the advisory and fix commits, then builds and validates a working proof-of-concept exploit with reproduction steps.
Affected versions
1.533 → fixed in 1.5510 → fixed in 1.532.2
Details
Directory traversal vulnerability in the CLI job creation (hudson/cli/CreateJobCommand.java) in Jenkins before 1.551 and LTS before 1.532.2 allows remote authenticated users to overwrite arbitrary files via the job name.
The fix
[FIXED SECURITY-108] Check job name created via CLI
core/src/main/java/hudson/cli/CreateJobCommand.java+1 −0
@@ -72,6 +72,7 @@ protected int run() throws Exception {name = name.substring(i + 1);}+Jenkins.checkGoodName(name);ig.createProjectFromXML(name, stdin);return 0;}
References
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2014-2059
- WEBhttps://github.com/jenkinsci/jenkins/commit/ad38d8480f20ce3cbf8fec3e2003bc83efda4f7d
- WEBhttps://exchange.xforce.ibmcloud.com/vulnerabilities/91346
- PACKAGEhttps://github.com/jenkinsci/jenkins
- WEBhttps://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2014-02-14
- WEBhttp://seclists.org/oss-sec/2014/q1/421