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