id: facebook-access-token

info:
  name: Facebook Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/data/default/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: 4a0a00473045022100e241097b0ae098849c23b84f2c8077460a15571bc53d8d79273fffcd5f2ec0ca02202bc5abc3193c3b16d0c918715b60e2d4b1e0ee1f5d3a6d84c5c3c8d6a17251af:922c64590222798bb761d5b6d8e72950