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,vuln

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: 490a0046304402202c5900546c3cce2bc2a799091c4a5c0d9cc2d3e38d07d89c26ee8c5ea7f9f7560220605856ad1da1e7540626a0907235a708eec53b32ff297e26c9a1c977615c4653:922c64590222798bb761d5b6d8e72950