id: web-config

info:
  name: Web Configuration File - Detect
  author: Yash Anand @yashanand155,DhiyaneshDK
  severity: info
  description: Web configuration file was detected.
  reference:
    - https://github.com/imhunterand/ApachSAL/blob/main/assets/exploits.json
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    max-request: 2
  tags: config,exposure

http:
  - method: GET
    path:
      - '{{BaseURL}}/web.config'
      - '{{BaseURL}}/../../web.config'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - <configuration>
          - <system.webServer>
        condition: and

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