id: shopify-legacy-token

info:
  name: Shopify Access Token (Legacy Private 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(shppa_[a-fA-F0-9]{32})\b'

# digest: 4a0a004730450220108104c477458f5dd0df881d2c4c2550274ef491054523f1dafc542bf71532950221009824f68a88c4caf2189d67bbf61c906226dabe42e9b69571d898377b39136056:922c64590222798bb761d5b6d8e72950
