id: stripe-restricted-key

info:
  name: Stripe Restricted Key Disclosure
  author: Ice3man
  severity: info
  reference:
    - https://stripe.com/docs/keys
  metadata:
    max-request: 1
  tags: exposure,token,stripe

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

    extractors:
      - type: regex
        part: body
        regex:
          - 'rk_(?:live|test)_[0-9a-zA-Z]{24}'
# digest: 490a004630440220087cc5d9042c33e7c773c979d3370feba320d77a79fd717842606e29c43ea7d502206f9f0309225936e59e039e84660985d14f6cb5615895e53b440a67de56ae7c3f:922c64590222798bb761d5b6d8e72950