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

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

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