id: freshbooks-accesstoken

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

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)(?:freshbooks)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{64})(?:['|\"|\n|\r|\s|\x60|;]|$)

# digest: 4a0a0047304502201b54c75d177ae3c27c0d1da936c649a7222c1ddc71d5b96b1f3c7464a6f130ea022100a55249506268c8db7e11a9ebaac938999785a6befe85d07e291b5ebf04d111d6:922c64590222798bb761d5b6d8e72950
