id: facebook-token

info:
  name: Facebook API Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/facebook.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/facebook.go
  metadata:
    verified: true
    max-request: 1
  tags: facebook,exposure,tokens

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)(?:facebook)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([a-f0-9]{32})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 490a0046304402207783b4a3ae365b1887d1cac3daca219ea15cf44c9b13839b1af0da21f671e1230220379d4a91ca3fc3ff2e106fdf137163e2ad9ed2f04f827fc3e4532645aded8802:922c64590222798bb761d5b6d8e72950