jenkins-script: Jenkins - Remote Code Execution

2025-08-01 Jenkins PoC Public

Description

Jenkins is susceptible to a remote code execution vulnerability due to accessible script functionality.

PoC

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-78,CWE-94
  metadata:
    max-request: 2
  tags: devops,hackerone,jenkins,rce,vuln

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: 4a0a004730450220393f9cdae9cabc567b9f77921e5ed7531e65dc4b5cb2e1a5f1fe6fbe7b9a3450022100e76e55079bae3ffec341d57c24ccfbd2a65d82277a311f801cf50d995d27ebb3:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities