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/
  metadata:
    verified: true
    max-request: 1
  tags: facebook,token,exposure

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

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