id: fastapi-docs

info:
  name: FastAPI Docs Panel - Detect
  author: github.com/its0x08
  severity: info
  description: FastAPI Docs panel was detected.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
  metadata:
    max-request: 3
  tags: fastapi,tech,panel

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

    matchers:
      - type: word
        words:
          - "<title>FastAPI - Swagger UI</title>"
          - "<title>FastAPI - ReDoc</title>"
          - '{"title":"FastAPI"'
        condition: or
# digest: 4a0a00473045022100f3969d7f9dc55bc8005893f91acb3d6ac30c2324fdabb59dcec7cc0be60faa92022050fe2bffbc5e45aaf74255b79b20863e0ce1049f6073aa6119b03fdab67393b8:922c64590222798bb761d5b6d8e72950