Read the docs
TI-2026-79274 Aliases CVE-2026-61791

Stored cross-site scripting in OCO-Server via agent hostnames

Priority LOW 32CWE-83Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
None · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA.

Summary

OCO-Server before 1.2.1 is affected. The Html::commandButton helper places a stored hostname into a JavaScript string in an inline onclick handler and escapes it only for HTML, so a crafted hostname can break out of the string (CWE-83). A remote attacker with the shared agent registration key can store such a hostname when self-registration is enabled, which is off by default. The script then runs in an administrator's session when that administrator activates a default command button.

Written with Claude Haiku 5.5 from the sources below · 2026-10-29

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00287 21st percentileScored 2026-11-07
Fix Fixed OCO-Server (schorschii): 1.2.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
schorschiiOCO-Serverbefore 1.2.11.2.1Patch availableCNA
  • OCO-Server Vendorschorschii Affected before 1.2.1 Fixed in 1.2.1 Patch available CNA

Remediation

Upgrade OCO-Server to version 1.2.1, which fixes this issue.

Written with Claude Haiku 5.5 from the sources below · 2026-10-29

  • Fix · CNA OCO-Server (schorschii) Fixed in 1.2.1

Timeline

  1. 2026-10-22 Threatist record created from CVE-2026-61791
  2. 2026-10-23 Priority changed: MEDIUM → LOW
  3. 2026-10-29 CISA SSVC decision points changed

References

  • TI-2026-79418 OCO-Server MDM endpoint accepts self-signed enrollment signatures CVSS 3.1CRITICAL 9.1
  • TI-2026-79292 Authorization bypass in OCO-Server Self-Service Portal uninstall jobs CVSS 3.1MEDIUM 6.5

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences