id: shopify-customapp-token

info:
  name: Shopify Access Token (Custom 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,vuln

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

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