id: digitalocean-refresh

info:
  name: DigitalOcean Refresh 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(dor_v1_[a-f0-9]{64})\b
# digest: 4a0a0047304502202e309412cfabbd220ad1875eb0967d0c3bd799c15c8aa15e3bf5861b767765aa022100d85d2049a484d013755ea6d1bf308c23da5d89d447ed31c9cb86d675dea71a15:922c64590222798bb761d5b6d8e72950