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

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: 4a0a00473045022028309fbb4839c7b2a3ac8bc5a770ad85b3f1bbf34e647632bb040c9896644cc2022100f7b9eac5bf8f4294fdec4aae98a29e4a53444037443418765233fad1381c3bda:922c64590222798bb761d5b6d8e72950