id: jenkins-stack-trace

info:
  name: Detect Jenkins in Debug Mode with Stack Traces Enabled
  author: Dheerajmadhukar
  severity: low
  description: Module identified that the affected host is running an instance of Jenkins in debug mode, as a result stack traces are enabled.
  reference:
    - https://hackerone.com/reports/221833
  metadata:
    max-request: 1
  tags: jenkins,hackerone,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/adjuncts/3a890183/"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "java.lang.StringIndexOutOfBoundsException"
          - "String index out of range"
        part: body
        condition: and

      - type: status
        status:
          - 500
# digest: 4b0a00483046022100f36f88d61b122cc775dbe091e1881b3de455112ed9927cc65347d7553d4daf8e022100935d0793bc7f69a1dbee4da4bacff75915c6cbd89a53013ef0fa9defbbac460f:922c64590222798bb761d5b6d8e72950