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/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(shppa_[a-fA-F0-9]{32})\b'
# digest: 4b0a00483046022100ad0222a43b9d8648add4bde8886ef04e9f6aceee2eae92a0ac23ef152a4840c8022100a6d50a07814e94ea701336da5778ef0a90a5436925da697a72b251455072b854:922c64590222798bb761d5b6d8e72950