id: shopify-customapp-token

info:
  name: Shopify Access Token (Custom 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(shpca_[a-fA-F0-9]{32})\b'
# digest: 490a0046304402203f066e9b3bbaa0202dca0e955772627596a5b4acabc900d792ceb15f28bd344e02206481b211e993dfaaf2bfb15c79c080130b766f3bcd66b99a7fb8465a22c79fbf:922c64590222798bb761d5b6d8e72950