id: digital-ocean-personal-token

info:
  name: DigitalOcean Personal 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(dop_v1_[a-f0-9]{64})\b

# digest: 4a0a00473045022076f7812ab2f9d8cc0a308818d9be8aa5a019c66cf625e186d8b455418bdcbc14022100f0322a5d29d2e959b5c98aec8a0dfb47996f6b6f2ef91d74ead0074673a49b78:922c64590222798bb761d5b6d8e72950
