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,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-z0-9]{20})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4a0a0047304502202794e151841bea954950edd217b61e4e25b2bc5333a437bcf3dacafc020ece13022100f2be508bdd862db19f89a8e52a84865b35ec9de302fa4cd309e79df5b809a892:922c64590222798bb761d5b6d8e72950