id: shopify-app-secret

info:
  name: Shopify App Secret
  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(shpss_[a-fA-F0-9]{32})\b'
# digest: 490a0046304402205a59f0f88a4f93933762ea470781bb06807736d741428f20ff885b75afa5d5ad022052314bf57c5869e51540c1a748c50109c2b8fd2f5f7e1182dc6d6359e68301af:922c64590222798bb761d5b6d8e72950