id: shopify-public-token

info:
  name: Shopify Access Token (Public App)
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/data/default/rules/shopify.yml
    - https://shopify.dev/apps/auth
    - https://shopify.dev/changelog/app-secret-key-length-has-increased
  metadata:
    verified: true
    max-request: 1
  tags: shopify,token,exposure

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

    extractors:
      - type: regex
        part: body
        regex:
          - '\b(shpat_[a-fA-F0-9]{32})\b'

# digest: 4a0a004730450220429dcd1e7f72b2f23b0198ef7685db5510a26db01e1ba4ddca28b68b8791adcc022100ab3390e8350ed60c98c9d5da18863960924341b89c3d203f68e7dfe9dde5c310:922c64590222798bb761d5b6d8e72950
