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