Bug 1418719 (CVE-2017-2607) - CVE-2017-2607 jenkins: Persisted cross-site scripting vulnerability in console notes (SECURITY-382)
Summary: CVE-2017-2607 jenkins: Persisted cross-site scripting vulnerability in consol...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2017-2607
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1418736
Blocks: 1395176 1418735
TreeView+ depends on / blocked
 
Reported: 2017-02-02 15:04 UTC by Andrej Nemec
Modified: 2021-10-21 11:50 UTC (History)
12 users (show)

Fixed In Version: jenkins 2.44, jenkins 2.32.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-21 11:50:14 UTC


Attachments (Terms of Use)

Description Andrej Nemec 2017-02-02 15:04:51 UTC
The following flaw was found in Jenkins:

Jenkins allows plugins to annotate build logs, adding new content or changing the presentation of existing content while the build is running. Popular examples include the highlighting of sections by Ant Plugin, or the timestamp metadata from Timestamper. Malicious Jenkins users, or users with SCM access, could configure jobs or modify build scripts such that they print serialized console notes that perform cross-site scripting attacks on Jenkins users viewing the build logs.

To prevent this, console notes are now signed by Jenkins when created, and Jenkins will only deserialize correctly signed console notes. As a side effect, console notes created before updating to a release containing this fix will no longer be deserialized. To restore the previous (unsafe) behavior, set the system property hudson.console.ConsoleNote.INSECURE to true as described on Features controlled by system properties.

External References:

https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2017-02-01

Upstream patch:

https://github.com/jenkinsci/jenkins/commit/2527e66dd8f9dd23a2571f8bd8f2918edf6fc0cd

Comment 1 Andrej Nemec 2017-02-02 15:27:19 UTC
Created jenkins tracking bugs for this issue:

Affects: fedora-all [bug 1418736]


Note You need to log in before you can comment on or make changes to this bug.