OCO-Serverでホスト名経由の保存型XSSにより管理者権限を悪用される
Summary
OCO-Serverのコマンドボタンに保存されたホスト名を介して、スクリプトが実行される脆弱性です。細工されたホスト名により管理者のセッションで任意の操作を行われるおそれがあり、深刻度は high、CVSS v3 は 7.4 です。1.2.1 で修正されているため、1.2.1 以降へ更新してください。
AI summary
Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.
OCO-Serverのコマンドボタンに保存されたホスト名を介して、スクリプトが実行される脆弱性です。細工されたホスト名により管理者のセッションで任意の操作を行われるおそれがあり、深刻度は high、CVSS v3 は 7.4 です。1.2.1 で修正されているため、1.2.1 以降へ更新してください。
Affected packages
| Ecosystem | Package | Affected | Fixed |
|---|---|---|---|
| schorschii | OCO-Server | — | — |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- web github.com