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

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

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