id: shopify-public-token

info:
  name: Shopify Access Token (Public App)
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/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: 4b0a00483046022100d6d42ee989f0b862d6e5bc4030b5980113ebe2657139306564759986e28d5541022100869fe6e8e547256d38143c94b39d60f0bc0152001e2e73c057ccc37866b893cb:922c64590222798bb761d5b6d8e72950