id: adobe-oauth-secret

info:
  name: Adobe OAuth Client Secret
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/adobe.yml
    - https://developer.adobe.com/developer-console/docs/guides/authentication/
    - https://developer.adobe.com/developer-console/docs/guides/authentication/OAuthIntegration/
    - https://developer.adobe.com/developer-console/docs/guides/authentication/OAuth/
  classification:
    cwe-id: CWE-522,CWE-540
  metadata:
    verified: true
    max-request: 1
  tags: adobe,oauth,exposure,tokens,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - '(?i)\b(p8e-[a-z0-9-]{32})(?:[^a-z0-9-]|$)'
# digest: 4b0a0048304602210084dcaaa3bd488d1227d87f3fd80c9badfe093487830106378d130c8576af59470221008a39c505385b28df89d84536116e06d102af00f583b64e070aa10015b6819544:922c64590222798bb761d5b6d8e72950