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: 4a0a00473045022100d413ec500609d40b9a60a1aaf311f610a27b2f59e1ef78abaa37f2d932b9f875022018923b5fcc602ef85470604ef98d4a376baa9f99b1437c3c3244d81a09a58425:922c64590222798bb761d5b6d8e72950