id: finicity-clientsecret

info:
  name: Finicity Client Secret
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/finicity-client-secret.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/finicity-client-secret.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-z0-9]{20})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4b0a00483046022100b97186e5d7cd68f9fea0863664336148d6aef95e1a58ce2c867ddc7bb673d95b022100a106e07d642a739f086134835e7434878b039d8a5b7588e25ba4f68fe295e045:922c64590222798bb761d5b6d8e72950