47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
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: 4a0a00473045022100bf2d6b71e4ac4fe0d919ab8a9137fc5eca7bae92a9eb5edbefbef7464a6e3c1b022055676ec073bff46adbc115d7a09bff8221dce793e0e7aa8b18d4b333d734d56f:922c64590222798bb761d5b6d8e72950
|