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

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: 490a00463044022021db9344fdafb25a3d6ba66b216960c8d4a65dfb6c6af2402144fb9dd0bcda9602205c1552b4a2913aad128cd9e539f32160906e093dfa8dae3f54ceadf12a61ffcb:922c64590222798bb761d5b6d8e72950