id: aspnetmvc-version-disclosure

info:
  name: AspNetMvc Version - Detect
  author: lucky0x0d,PulseSecurity.co.nz
  severity: info
  description: |
    Detects version disclosed via 'X-AspNetMvc-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-AspNetMvc-Version"
  tags: aspnetmvc,tech,detect

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

    redirects: true
    max-redirects: 4

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

    extractors:
      - type: kval
        kval:
          - X_AspNetMvc_Version
# digest: 4a0a00473045022100986dc4e365cf66a44c9321b637566896ddb7b44b2fef780afa49a36298679a0902206407bdf1e8076b79feac79addc0a2817fe5c4fd1699238c79459e20708c9f13f:922c64590222798bb761d5b6d8e72950