id: digitalocean-app-token

info:
  name: DigitalOcean Application Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/rules/digitalocean.yml
    - https://docs.digitalocean.com/reference/api/
  metadata:
    verified: true
    max-request: 1
  tags: digitalocean,exposure,token

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)\b(doo_v1_[a-f0-9]{64})\b
# digest: 4b0a00483046022100ada02adc8bbb907c7fc7814782c1d0e5cbb4f48b2416071f42cd4c7b64e2f3250221009e6d93f2fb025ff3a530d220b8c18d175c3bef73134d8a2eae5c35dc846924b2:922c64590222798bb761d5b6d8e72950