2021-07-29 16:29:05 +00:00
|
|
|
id: jenkins-script
|
|
|
|
|
|
|
|
info:
|
2022-05-26 16:51:54 +00:00
|
|
|
name: Jenkins - Remote Code Execution
|
2023-06-12 05:27:03 +00:00
|
|
|
author: philippedelteil,DhiyaneshDK
|
2021-07-29 16:29:05 +00:00
|
|
|
severity: critical
|
2022-05-31 08:41:09 +00:00
|
|
|
description: |
|
|
|
|
Jenkins is susceptible to a remote code execution vulnerability due to accessible script functionality.
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://hackerone.com/reports/403402
|
2023-06-12 05:27:03 +00:00
|
|
|
- https://medium.com/@gokulsspace/the-30000-bounty-affair-3f025ee6b834
|
2022-05-26 16:51:54 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
|
2023-06-21 21:03:53 +00:00
|
|
|
cvss-score: 10
|
2022-05-26 16:51:54 +00:00
|
|
|
cwe-id: CWE-77
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
2023-06-21 21:03:53 +00:00
|
|
|
max-request: 2
|
|
|
|
tags: devops,hackerone,jenkins,rce
|
2022-04-22 10:38:41 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-07-29 16:29:05 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/script/"
|
2023-06-12 05:27:03 +00:00
|
|
|
- "{{BaseURL}}/jenkins/script"
|
2022-05-31 08:41:09 +00:00
|
|
|
|
2023-06-12 05:27:03 +00:00
|
|
|
stop-at-first-match: true
|
2023-10-14 11:27:55 +00:00
|
|
|
|
2021-07-29 16:29:05 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
2022-05-31 08:41:09 +00:00
|
|
|
part: body
|
2021-07-29 16:29:05 +00:00
|
|
|
words:
|
|
|
|
- "println(Jenkins.instance.pluginManager.plugins)"
|
2022-07-05 21:09:28 +00:00
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- "Script Console"
|
2021-08-02 15:27:19 +00:00
|
|
|
- "Scriptconsole"
|
2022-07-05 21:09:28 +00:00
|
|
|
condition: or
|
2022-05-31 08:41:09 +00:00
|
|
|
|
2021-07-29 16:29:05 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4a0a00473045022100bf2d6b71e4ac4fe0d919ab8a9137fc5eca7bae92a9eb5edbefbef7464a6e3c1b022055676ec073bff46adbc115d7a09bff8221dce793e0e7aa8b18d4b333d734d56f:922c64590222798bb761d5b6d8e72950
|