id: flickr-accesstoken

info:
  name: Flickr Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/flickr-access-token.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/flickr-access-token.go
  metadata:
    verified: true
    max-request: 1
  tags: flickr,exposure,tokens,vuln

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

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