提交 #992173: github.com/Travisun/Opptrix Opptrix Server v0.4.0 Command Injection信息

标题github.com/Travisun/Opptrix Opptrix Server v0.4.0 Command Injection
描述A self-hosted Opptrix server (open source, github.com/Travisun/Opptrix) exposes all API endpoints without authentication from first launch until the owner completes account setup, which is the default claimed:false state of a fresh deployment. In this setup window, POST /api/auth/setup is first-come-first-served: whoever reaches it first receives the single administrator account permanently, while the legitimate owner is locked out with HTTP 409. The schedule API then accepts a job of kind shell_script whose argv may be ["node","-e","<arbitrary JavaScript>"]; the command blocklist only rejects shell wrappers and the exact -c / /c arguments. Running the job via POST /api/schedule/jobs/{id}/run executes that argv with the privileges of the service process, and a non-zero exit code routes the command's stdout into the run record, giving the attacker output readback (demonstrated with whoami, hostname, and reading the key-vault key file). The APIs carry no CORS headers, but JSON POSTs against a locally running instance can be reached same-origin through DNS rebinding because the server performs no Host header validation, so a malicious web page can drive the entire chain against a victim's local deployment with no interaction beyond browsing. Verified against v0.4.0 (current main branch, self-reported via /api/health) on Windows. Impact: permanent takeover of fresh deployments, arbitrary command execution with service privileges, and command output disclosure; the executed code reaches the data directory including the user database and key vault. Advisory / Exploit(三行,Drive 链接换成你自己的): https://github.com/Travisun/Opptrix [Google Drive link - POC video] [Google Drive link - POC html] --- 提交 2 — 漏洞2(更新包导入 → 重启后任意代码执行) ┌───────────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ 字段 │ 填写 │ A self-hosted Opptrix server (open source, github.com/Travisun/Opptrix) exposes all API endpoints without authentication from first launch until the owner completes account setup, which is the default claimed:false state of a fresh deployment. In this setup window, POST /api/auth/setup is first-come-first-served: whoever reaches it first receives the single administrator account permanently, while the legitimate owner is locked out with HTTP 409. The schedule API then accepts a job of kind shell_script whose argv may be ["node","-e","<arbitrary JavaScript>"]; the command blocklist only rejects shell wrappers and the exact -c / /c arguments. Running the job via POST /api/schedule/jobs/{id}/run executes that argv with the privileges of the service process, and a non-zero exit code routes the command's stdout into the run record, giving the attacker output readback (demonstrated with whoami, hostname, and reading the key-vault key file). The APIs carry no CORS headers, but JSON POSTs against a locally running instance can be reached same-origin through DNS rebinding because the server performs no Host header validation, so a malicious web page can drive the entire chain against a victim's local deployment with no interaction beyond browsing. Verified against v0.4.0 (current main branch, self-reported via /api/health) on Windows. Impact: permanent takeover of fresh deployments, arbitrary command execution with service privileges, and command output disclosure; the executed code reaches the data directory including the user database and key vault.
来源⚠️ https://drive.google.com/drive/folders/1-ENuA8hKauFSTrn55IRYPQBeKwMV9xwR?usp=sharing
用户
 fifker (UID 101353)
提交2026-09-19 15時03分 (1 月前)
管理2026-10-24 02時49分 (1 month later)
状态已接受
VulDB条目426050 [Travisun Opptrix 0.4.0 Schedule API /api/auth/setup 权限提升]
积分20

Might our Artificial Intelligence support you?

Check our Alexa App!