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
  classification:
    cwe-id: CWE-522,CWE-540
  metadata:
    verified: true
    max-request: 1
  tags: dropbox,exposure,tokens,vuln

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

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