id: shopify-private-app-access-token

info:
  name: Shopify Private App Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/shopify-private-app-access-token.yaml
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/shopify-private-app-access-token.go
    - https://shopify.dev/apps/auth
    - https://shopify.dev/changelog/length-of-the-shopify-access-token-is-increasing
  metadata:
    verified: true
    max-request: 1
  tags: shopify,token,exposure,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - shppa_[a-fA-F0-9]{32}
# digest: 4a0a004730450221008f5972c0d72d195465036a5f736a1f4e0038129bda95ed7ea6809b7285467a7702201242a02e9b9d3dbbb401e80f389d156544fa0fc30e955d76ed6c283fdb3605a2:922c64590222798bb761d5b6d8e72950