id: facebook-access-token

info:
  name: Facebook Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/facebook.yml
    - https://developers.facebook.com/docs/facebook-login/access-tokens/
  classification:
    cwe-id: CWE-522,CWE-540
  metadata:
    verified: true
    max-request: 1
  tags: facebook,token,exposure,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - '\b(EAACEdEose0cBA[a-zA-Z0-9]+)\b'
# digest: 490a00463044022016efc2a32be35df7cae63870b82c1564c84d857b989fe636b8b26f314950f1b4022015425cec31bc8678ce8d53df112f89208424f180df5a9e125093fb28409586a7:922c64590222798bb761d5b6d8e72950