id: twitter-client-id

info:
  name: Twitter Client ID
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/twitter.yml
    - https://developer.twitter.com/en/docs/authentication/overview
  metadata:
    verified: true
    max-request: 1
  tags: twitter,exposure,tokens,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)\btwitter.?(?:api|app|application|client|consumer|customer)?.?(?:id|identifier|key).{0,2}\s{0,20}.{0,2}\s{0,20}.{0,2}\b([a-z0-9]{18,25})\b
# digest: 4a0a0047304502203451eb552605fa450fbf7557ab27f2b5b9b002d2a706c4322737af4981f994d8022100f32292ac99499d9d1c0c01ad357b6fce42cf40e1e53bde50e125c91fc7d7ad01:922c64590222798bb761d5b6d8e72950