id: aspnet-version-detect

info:
  name: AspNet Version Disclosure - Detect
  author: lucky0x0d,PulseSecurity.co.nz
  severity: info
  description: |
    Detects version disclosed via 'X-AspNet-Version' header.
  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:
    verified: true
    max-request: 1
    shodan-query: "X-AspNet-Version"
  tags: tech,detect,aspnet

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    host-redirects: true
    max-redirects: 3

    matchers:
      - type: dsl
        dsl:
          - 'contains(tolower(header), "x-aspnet-version")'

    extractors:
      - type: kval
        kval:
          - X_AspNet_Version
# digest: 490a004630440220449ac35f705655720e62be78888df194cf878f7a7aa869fae256297e81c7976f0220548ac424bb13390b6ff12256dc3c2860084fe8e3f8e004a2e8819a95d80d4319:922c64590222798bb761d5b6d8e72950