id: dropbox-access-token

info:
  name: Dropbox Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/dropbox.yml
    - https://developers.dropbox.com/oauth-guide
    - https://www.dropbox.com/developers/
    - https://www.dropbox.com/developers/documentation/http/documentation
  metadata:
    verified: true
    max-request: 1
  tags: dropbox,exposure,tokens

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

    extractors:
      - type: regex
        part: body
        regex:
          - \b(sl\.[a-zA-Z0-9_-]{130,152})(?:$|[^a-zA-Z0-9_-])
# digest: 4a0a00473045022100c3f01397512cba718f1ebf0cd4fddbd8f5b981b242b532944cb101d3e037075a02201c4e2269933f1adf4731d2352f3cc967a0827518ac37733207f7cb09a1ce79cf:922c64590222798bb761d5b6d8e72950