id: finicity-token

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

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

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