Jenkins Vulnerable to Clickjacking
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
Jenkins before 1.551 and LTS before 1.532.2 allows remote attackers to conduct clickjacking attacks via unspecified vectors.
The fix
[FIXED SECURITY-80] Add X-Frame-Options head to prevent
core/src/main/resources/lib/layout/layout.jelly+1 −0
@@ -56,6 +56,7 @@ THE SOFTWARE.<st:header name="Expires" value="0" /><st:header name="Cache-Control" value="no-cache,must-revalidate" /><st:header name="X-Hudson-Theme" value="default" />+<st:header name="X-Frame-Options" value="sameorigin" /><st:contentType value="text/html;charset=UTF-8" /><j:new var="h" className="hudson.Functions" /><!-- instead of JSP functions -->
References
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2014-2063
- WEBhttps://github.com/jenkinsci/jenkins/commit/16931bd7bf7560e26ef98328b8e95e803d0e90f6
- PACKAGEhttps://github.com/jenkinsci/jenkins
- WEBhttps://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2014-02-14
- WEBhttp://www.openwall.com/lists/oss-security/2014/02/21/2