CVE-2026-61791 Details
Description
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's authenticated session when an affected command button is activated. `frontend/views/computer-details.php` passes `$computer->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's privileges, including permission to deploy software jobs to managed computers. This issue is fixed in version 1.2.1.
A stored cross-site scripting vulnerability has been identified in OCO-Server versions prior to 1.2.1. The issue arises in the 'Html::commandButton()' function within 'lib/Html.class.php', where an action URL containing a computer hostname is embedded into a JavaScript string for an inline 'onclick' handler. The function uses 'htmlspecialchars(ENT_QUOTES)' for HTML escaping, but this only partially mitigates the risk. Browsers decode HTML entities before executing the JavaScript, allowing a crafted hostname to escape the string and execute scripts in an administrator's authenticated session when the affected command button is clicked. This vulnerability is triggered by default RDP, VNC, SSH, and Ping command buttons, which require no custom configuration. An attacker with the shared 'agent-registration-key' can exploit this by registering a computer with an unchecked hostname, taking advantage of the self-registration feature, which is enabled by default.
Users can upgrade to OCO-Server version 1.2.1 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 22, 2026CISA-ADP
Assessed Oct 29, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/schorschii/OCO-Server/commit/ef02f9768e5e1792c3ee53c72e8d7e4ea58ddaa8 | [email protected] | Source CodeVendor |
| https://github.com/schorschii/OCO-Server/releases/tag/v1.2.1 | [email protected] | Release NotesVendor |
| https://github.com/schorschii/OCO-Server/security/advisories/GHSA-9c2r-9j95-22pr | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-83 | Improper Neutralization of Script in Attributes in a Web Page | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| schorschii OCO-Server | <= 1.2.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 29, 2026 | CVE Modified | CISA-ADP |
| Oct 22, 2026 | New CVE Received | [email protected] |
Volerion