id: dropbox-token

info:
  name: Dropbox API Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/dropbox-api-token.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/dropbox-api-token.go
  metadata:
    verified: true
    max-request: 1
  tags: dropbox,exposure,tokens,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)(?:dropbox)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{15})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 490a00463044022014248371c80ecf0c033f45f18200f67e3519139f2d21c3ade790c5a5c103634802206f466b5218aed8a28e35d69c4f101f75cf333cac0d58c721a595e9cacce961c8:922c64590222798bb761d5b6d8e72950