id: etsy-accesstoken

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

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

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