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,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - '\b(shpat_[a-fA-F0-9]{32})\b'
# digest: 4b0a004830460221009445c6e9ec7a4ffbc1150f9ba22b9bbdf0c06d09859d88188fccafbf48441984022100bd01524d9afb070935f7fdb847dcf1f37f07f274426fd54ca7929c25add7d494:922c64590222798bb761d5b6d8e72950