中风险
上传会把本地文件及文件名披露给所连接的 Google Drive 账户
原文依据:6 处发现了什么
命令接收任意本地文件路径并上传;默认还会沿用源文件名。确认提示能降低误操作风险,但没有展示内容检查、敏感信息过滤或目标账户验证。
为什么需要注意
若用户或代理选错文件、Google 账户或父文件夹,文件内容及可能敏感的文件名会进入错误的云端位置,并受该位置的共享、保留和访问规则影响。
该技能明确把用户指定的本地文件上传到 Google Drive,并默认使用本地源文件名;因此,执行后文件内容和文件名会进入当前已认证的 Drive 账户。此传输符合技能声明的用途,不代表恶意行为,而且文档要求执行前获得用户确认。不过,所示说明没有要求在上传前核对目标账户或检查敏感内容。用户可要求先确认本地路径、目标账户、父文件夹及远端文件名,并且只授权上传明确选定的文件。
```bashgws drive +upload <file>```查看另外 5 个位置
|------|----------|---------|-------------|| `<file>` | ✓ | — | Path to file to upload || `--parent` | — | — | Parent folder ID || `--name` | — | — | Target filename (defaults to source filename) |- MIME type is detected automatically.- Filename is inferred from the local path unless --name is given.> [!CAUTION]> This is a **write** command — confirm with the user before executing.```bashgws drive +upload <file>```| Flag | Required | Default | Description ||------|----------|---------|-------------|| `<file>` | ✓ | — | Path to file to upload || `--parent` | — | — | Parent folder ID || `--name` | — | — | Target filename (defaults to source filename) |