tomcat-stacktraces: Tomcat Stack Traces Enabled

2025-08-01 tomcatstacktraces PoC Public

Description

Examine whether Tomcat stack traces are turned on by employing a designated problematic pattern.

PoC

id: tomcat-stacktraces

info:
  name: Tomcat Stack Traces Enabled
  author: lucky0x0d
  severity: low
  description: |
    Examine whether Tomcat stack traces are turned on by employing a designated problematic pattern.
  classification:
    cpe: cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
    cwe-id: CWE-209
  metadata:
    verified: true
    max-request: 1
    vendor: apache
    product: tomcat
    shodan-query: title:"Apache Tomcat"
  tags: misconfig,tech,tomcat,apache,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/?f=\['

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "tomcat")'
          - 'contains(body, "org.apache")'
          - status_code == 400
        condition: and
# digest: 4a0a00473045022100bce994183dbe969350f3d0c275ce415643ac8e26234e822ac3aa0c9c4e5530aa02207e822cd5a90b3c2270881bf6d74cfa5081467cfc092cb123a6297dcefc55feb1:922c64590222798bb761d5b6d8e72950

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

References

Related Vulnerabilities