id: chatgpt-web-unauth

info:
  name: ChatGPT Web - Unauthorized Access
  author: SleepingBag945
  severity: high
  description: ChatGPT Web is exposed.
  classification:
    cpe: cpe:2.3:a:chanzhaoyu:chatgpt_web:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: chanzhaoyu
    product: chatgpt_web
    fofa-query: app="Chatgpt-web"
  tags: chatgpt,unauth,misconfig

http:
  - raw:
      - |
        POST /api/session HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"status":"Success"'
          - '"auth":false'
          - 'ChatGPTAPI'
        condition: and

      - type: word
        part: header
        words:
          - "application/json"

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