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: 490a0046304402200a5b56f768333d19bc527607be06578b14ab2d739d1b2022890e6562c982dc1c02201d9032f9e984be718162d77ac00c3081335f61998d12e7542eab2a008abca792:922c64590222798bb761d5b6d8e72950
