Jenkins Diagnostic page exposed session cookies
Moderate severity
GitHub Reviewed
Published
May 24, 2022
to the GitHub Advisory Database
•
Updated Dec 22, 2023
Package
Affected versions
>= 2.205, < 2.219
< 2.204.2
Patched versions
2.219
2.204.2
Description
Published by the National Vulnerability Database
Jan 29, 2020
Published to the GitHub Advisory Database
May 24, 2022
Reviewed
Dec 20, 2022
Last updated
Dec 22, 2023
Jenkins shows various technical details about the current user on the
/whoAmI
page. In a previous fix, theCookie
header value containing the HTTP session ID was redacted. However, user metadata shown on this page could also include the HTTP session ID in Jenkins 2.218 and earlier, LTS 2.204.1 and earlier.This allows attackers able to exploit a cross-site scripting vulnerability to obtain the HTTP session ID value from this page.
Jenkins 2.219, LTS 2.204.2 no longer prints out the affected user metadata that might contain the HTTP session ID.
Additionally, we also redact values of further authentication-related HTTP headers in addition to
Cookie
on this page as a hardening.References