{"id":44643,"date":"2026-10-23T00:38:10","date_gmt":"2026-10-22T16:38:10","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-61791"},"modified":"2026-10-23T00:38:10","modified_gmt":"2026-10-22T16:38:10","slug":"cve-2026-61791","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-61791","title":{"rendered":"CVE-2026-61791 [HIGH] &#8211; OCO-Server is a self-hosted endpoint management application for computer inventory, softwa"},"content":{"rendered":"<p>OCO-Server is a self-hosted endpoint management application for computer inventory, software deployment, and mobile device management. Prior to 1.2.1, `Html::commandButton()` in `lib\/Html.class.php` embeds an action URL containing a stored computer hostname into a JavaScript string in an inline `onclick` handler, using `htmlspecialchars(ENT_QUOTES)` only for HTML escaping. Browsers decode the HTML entities before interpreting the handler as JavaScript, allowing a crafted hostname to escape the string and execute script in an administrator&#8217;s authenticated session when an affected command button is activated. `frontend\/views\/computer-details.php` passes `$computer-&gt;hostname` to this helper using `Computer::DEFAULT_COMPUTER_COMMANDS` in `lib\/Models\/Computer.class.php`, whose VNC, RDP, SSH, and Ping entries use `new_tab=false` and the vulnerable `window.location` branch. A remote attacker who possesses the shared `agent-registration-key` can use the `oco.agent.hello` handler in `frontend\/api-agent.php` to store an unchecked hostname when `agent-self-registration-enabled` is enabled; self-registration is disabled by default. The vulnerable default command buttons require no custom command configuration. The injected script can abuse the administrator&#8217;s privileges, including permission to deploy software jobs to managed computers. This issue is fixed in version 1.2.1.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OCO-Server is a self-hosted endpoint management application for computer inventory, software deployment, and mobile device management. Prior to 1.2.1, `Html::commandButton()` in `lib\/Html.class.php` e<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-44643","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/44643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=44643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=44643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=44643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}