id: shopify-app-secret

info:
  name: Shopify App Secret
  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
  classification:
    cwe-id: CWE-522,CWE-540
  metadata:
    verified: true
    max-request: 1
  tags: shopify,token,exposure,vuln

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

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