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

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: 4a0a00473045022100dac83d72474b7c17637aea44480271b2f2e4dd5049f2a29861316dbe408b253002204edf01cc9ed1a54de222bfddc7036f62201a90554d8dfafa18a3d7caede6ce63:922c64590222798bb761d5b6d8e72950