id: sap-directory-listing

info:
  name: SAP Directory Listing
  author: dhiyaneshDK
  severity: medium
  description: SAP Directory Listing is enabled.
  metadata:
    max-request: 1
  tags: sap,listing,misconfig,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/irj/go/km/navigation/'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'title="~system"'
          - 'NetWeaver'
        condition: and

      - type: status
        status:
          - 200

      - type: word
        words:
          - "text/html"
        part: header
# digest: 4a0a00473045022100b7b95acb3eaa10b6b2a21856b4b4f5e25b3496c8cfad5a122c764868fde4bd8f0220386176fbb2a3f064a60cdf53a0dd3024317f5be4b705fd27bd34251d9389aaf9:922c64590222798bb761d5b6d8e72950