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,vuln

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

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