id: nginx-version

info:
  name: Nginx version detect
  author: philippedelteil,daffainfo
  severity: info
  description: Some nginx servers have the version on the response header. Useful when you need to find specific CVEs on your targets.
  metadata:
    max-request: 1
  tags: tech,nginx,discovery

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

    matchers-condition: and
    matchers:
      - type: regex
        part: header
        regex:
          - 'nginx/[0-9.]+'

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: header
        regex:
          - 'nginx/[0-9.]+'
# digest: 4a0a00473045022100cacd710dbd79d74f620c62374815b08bb335285c2b6f12d3d8b43d38693ad77602203b052809790fe98dda6f625883ca2758cc270abe8d5a7bc31b3ceca77f9da818:922c64590222798bb761d5b6d8e72950