cbcvebase.
CVE-2019-10405
published 2019-09-25

CVE-2019-10405: Jenkins 2.196 and earlier, LTS 2.176.3 and earlier printed the value of the "Cookie" HTTP request header on the /whoAmI/ URL, allowing attackers exploiting…

PriorityP353medium5.4CVSS 3.1
AVNACLPRLUINSUCLILAN
EXPLOIT
EPSS
65.75%
99.2th percentile
Jenkins 2.196 and earlier, LTS 2.176.3 and earlier printed the value of the "Cookie" HTTP request header on the /whoAmI/ URL, allowing attackers exploiting another XSS vulnerability to obtain the HTTP session cookie despite it being marked HttpOnly.

Affected

29 ranges· showing 25
VendorProductVersion rangeFixed in
jenkinsapplication_director_plugin
jenkinsaqua_microscanner_plugin
jenkinsaqua_security_scanner_plugin
jenkinsassembla_plugin
jenkinsazure_event_grid_build_notifier_plugin
jenkinscall_remote_job_plugin
jenkinscd_plugin
jenkinscodescan_plugin
jenkinsgem_publisher_plugin
jenkinsgit_changelog_plugin
jenkinsgitlab_logo_plugin
jenkinsgoogle_calendar_plugin
jenkinsinedo_buildmaster_plugin
jenkinsinedo_proget_plugin
jenkinsjenkins<= 2.176.3
jenkinsjenkins<= 2.196
jenkinsjenkins_core
jenkinsjenkins_instance_with_this_plugin
jenkinsjenkins_lts
jenkinsjenkins_weekly
jenkinskubernetes_pipeline_arquillian_steps_plugin
jenkinskubernetes_pipeline_kubernetes_steps_plugin
jenkinslog_parser_plugin
jenkinsmask_password_plugin
jenkinsmask_passwords_plugin

Detection & IOCsextracted from sources · hover to see the quote

url/whoAmI/
cookieJSESSIONID
otherx-jenkins
otherhttp.favicon.hash:81586312
othericon_hash=81586312
  • Send a GET request to /whoAmI/ on the target Jenkins instance. A vulnerable host will reflect the Cookie header value (including JSESSIONID) in the HTML response body.
  • Check the HTTP response body of /whoAmI/ for the literal strings 'Cookie' and 'JSESSIONID' to confirm cookie exposure.
  • Confirm the target is Jenkins by checking for the 'x-jenkins' response header alongside a 'text/html' Content-Type header.
  • Fingerprint Jenkins instances for scanning using Shodan favicon hash 81586312 or FOFA icon_hash=81586312.
  • ·Exploitation of this cookie-exposure vulnerability requires a second, chained XSS vulnerability to be present; the /whoAmI/ endpoint alone does not execute JavaScript but exposes the cookie value in rendered HTML.

CVSS provenance

nvdv3.15.4MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
nvdv2.03.5LOWAV:N/AC:M/Au:S/C:N/I:P/A:N
vendor_redhat5.4MEDIUM
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.