dsh-auth-gate
github.com/TecFancy/dsh-auth-gate
v0.17.3
会话与记忆
可执行外部程序以 shell 执行命令写入文件
Login gate for DeepSeek Harness (dsh) web instances: password or shared-token sign-in, optional TOTP two-factor, session cookies, rate limiting, self-service password change and a user-management CLI
该插件尚未翻译,显示作者原文。
dshdsh-plugindeepseek-harnessauthauthenticationloginpasswordtoken
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注4需留意4一般14未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注1 处命中package.json:91"prepare": "node -e \"try { require.resolve('husky') } catch { process.exit(0) } require('node:child_process').execSync(…- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 以 shell 执行命令
shell-exec高关注1 处命中package.json:91"prepare": "node -e \"try { require.resolve('husky') } catch { process.exit(0) } require('node:child_process').execSync(…- 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
- 写入文件
writes-files需留意11 处命中lib/integration-auth-helpers.js:116rmSync(root, { recursive: true, force: true });lib/integration-p2-helpers.js:143rmSync(stack.root, { recursive: true, force: true });…ation-password-change-helpers.js:86rmSync(stack.root, { recursive: true, force: true });lib/integration-totp-helpers.js:74rmSync(root, { recursive: true, force: true });- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意11 处命中lib/client.js:680return fetch(PASSWORD_TARGET, {lib/client.js:1130const res = await fetch(USERS_TARGET, {lib/client.js:1187return fetch(RESET_TARGET, {lib/client.js:1704fetch(STATUS_TARGET, {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 可终止进程
kills-processes需留意1 处命中lib/shared/users-file.js:217/** `process.kill(pid, 0)` 抛 ESRCH 即进程已死;EPERM(他人进程)视为活着。 */lib/shared/users-file.js:220process.kill(pid, 0);- 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
- R013 清单可疑
manifest-obfuscation需留意1 处命中- 安装脚本: prepare
- 清单被刻意写乱时,加载行为会难以预测。看原文而不是看渲染结果。
- 接触凭据或密钥
credentials一般923 处命中lib/admin-wiring.js:2import { hashPassword, verifyPassword } from "./features/password/index.js";lib/admin-wiring.js:12hash: hashPassword,lib/admin-wiring.js:13verify: verifyPassword,lib/admin-wiring.js:14verifyTotp: (secretB32, code, nowMs) => verifyTotpCode(secretB32, code, nowMs),- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 动态加载模块
dynamic-import一般11 处命中lib/client/account-fields.d.ts:12export declare function PasswordFields({ t, values, isInvalid, onChange }: PasswordFieldsProps): import("react").JSX.Ele…lib/client/account-fields.d.ts:16}): import("react").JSX.Element;lib/client/account-form.d.ts:11export declare function AccountPasswordForm({ t }: AccountPasswordFormProps): import("react").JSX.Element;lib/client/account-section.d.ts:14export declare function SettingsAccountSection({ t }: SettingsAccountSectionProps): import("react").JSX.Element;- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 读取文件
reads-files一般2 处命中lib/shared/users-file.js:51text = await fs.readFile(filePath, "utf8");lib/shared/users-file.js:197const parsed = JSON.parse(await fs.readFile(lockPath, "utf8"));- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般2 处命中lib/proxy-cli.js:93const { options } = parseProxyArgs(argv, process.env);lib/shared/users-file.js:29return process.env["DSH_HOME"] ?? path.join(os.homedir(), ".dsh");- 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 1 |
| 以 shell 执行命令 | shell-exec | 高关注 | 1 |
| 写入文件 | writes-files | 需留意 | 11 |
| 发起网络请求 | network | 需留意 | 11 |
| 可终止进程 | kills-processes | 需留意 | 1 |
| R013 清单可疑 | manifest-obfuscation | 需留意 | 1 |
| 接触凭据或密钥 | credentials | 一般 | 923 |
| 动态加载模块 | dynamic-import | 一般 | 11 |
| 读取文件 | reads-files | 一般 | 2 |
| 读取环境变量 | reads-env | 一般 | 2 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 176 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
这个插件声明的依赖中,有 3 条已公开的安全公告 (最高等级:中):
| 等级 | 依赖包 | 编号 | 摘要 |
|---|---|---|---|
| 中 | yaml | CVE-2023-2251 | Uncaught Exception in yaml 修复版本:2.2.2 详情 → |
| 低 | yaml | CVE-2026-33532 | yaml is vulnerable to Stack Overflow via deeply nested YAML collections 修复版本:1.10.3, 2.8.3 详情 → |
| 低 | zod | CVE-2023-4316 | Zod denial of service vulnerability 修复版本:3.22.3 详情 → |
查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0),
不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响——
所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自
OSV.dev。