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
  classification:
    cwe-id: CWE-540
  metadata:
    verified: true
    max-request: 1
  tags: exposure,finicity,file,token,vuln

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: 4a0a00473045022100eed7b035bcc85ae2997ccf4b42a174e398a57bb11bc2d333699298a001e62a45022052818738607ff7ca8dee9a22c8ae058656d4f5a36cb91ae8b0302d23c96777aa:922c64590222798bb761d5b6d8e72950