id: dropbox-short-token

info:
  name: Dropbox Short Lived API Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/dropbox-short-lived-api-token.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/dropbox-short-lived-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}(sl\.[a-z0-9\-=_]{135})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4a0a004730450221009642e5edbc6b447aa14f9a20f0d7524d84aa4a180d750a7935313473ae9791eb02202d926961f56ac7523b187d442e2673d3318751b40e9dbb761d2de29843079f36:922c64590222798bb761d5b6d8e72950