Jenkins - Remote Code Execution
ID: jenkins-script
Severity: critical
Author: philippedelteil,DhiyaneshDK
Tags: devops,hackerone,jenkins,rce
Description
Section titled “Description”Jenkins is susceptible to a remote code execution vulnerability due to accessible script functionality.
YAML Source
Section titled “YAML Source”id: jenkins-script
info: name: Jenkins - Remote Code Execution author: philippedelteil,DhiyaneshDK severity: critical description: | Jenkins is susceptible to a remote code execution vulnerability due to accessible script functionality. reference: - https://hackerone.com/reports/403402 - https://medium.com/@gokulsspace/the-30000-bounty-affair-3f025ee6b834 classification: cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H cvss-score: 10 cwe-id: CWE-77 metadata: max-request: 2 tags: devops,hackerone,jenkins,rce
http: - method: GET path: - "{{BaseURL}}/script/" - "{{BaseURL}}/jenkins/script"
stop-at-first-match: true
matchers-condition: and matchers: - type: word part: body words: - "println(Jenkins.instance.pluginManager.plugins)"
- type: word part: body words: - "Script Console" - "Scriptconsole" condition: or
- type: status status: - 200# digest: 490a0046304402201855686af285da2f6a45c5d6114be241656811eb7526e0efcd8386eddad3ab650220764d8233225e7ebd0611da24e72f7a7d51ff09b42efd109b9bb3d609004d31f7:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/vulnerabilities/jenkins/jenkins-script.yaml"