id: openapi

info:
  name: OpenAPI - Detect
  author: pdteam,ynnirc
  severity: info
  description: OpenAPI was detected.
  reference:
    - https://www.openapis.org/
  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: exposure,api

http:
  - method: GET
    path:
      - "{{BaseURL}}/openapi.json"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - openapi
          - paths
        condition: and

      - type: word
        part: header
        words:
          - application/openapi+json
          - application/json
        condition: or

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