id: shopify-shared-secret-exposure

info:
  name: Shopify Shared Secret
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/shopify-shared-secret.yaml
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/shopify-shared-secret.go
    - https://shopify.dev/apps/auth
  metadata:
    verified: true
    max-request: 1
  tags: shopify,token,exposure,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - shpss_[a-fA-F0-9]{32}
# digest: 4b0a00483046022100f32349135142d3743a3dce2c895927d71373161298203dc2e9359896b26d02b9022100a41c3a93a45c2f20e40226fb48d5ef2799ebfc490b7a0329b092fe0f5793e778:922c64590222798bb761d5b6d8e72950