id: nginx-config

info:
  name: Nginx Config - Detect
  author: sheikhrishad,geeknik
  severity: info
  description: Nginx configuration information was detected.
  reference:
    - https://nginx.org/en/
  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: 1
  tags: config,exposure,nginx

http:
  - method: GET
    path:
      - "{{BaseURL}}/nginx.conf"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "html>"
        negative: true

      - type: word
        words:
          - "server"
          - "listen"
          - "server_name"
        condition: and

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