🔍 CVE-2026-61791

7.4
CVSS Score
HIGH
2026-10-22
2026-10-29 12:17
✅ 완료

🇰🇷 한글 설명

OCO-Server 1.2.1 미만 버전에서 발생하는 취약점으로, 컴퓨터 호스트네임이 JavaScript 문자열 내에 부적절하게 삽입되어 발생하는 저장형 XSS 취약점입니다. 공격자가 에이전트 등록 키를 이용해 악성 호스트네임을 저장하면, 관리자가 해당 컴퓨터의 명령 버튼을 클릭할 때 관리자 권한으로 악성 스크립트가 실행될 수 있습니다.

💡 쉬운 설명

컴퓨터 이름에 몰래 악성 코드를 숨겨두어, 관리자가 그 컴퓨터의 정보를 확인하려고 버튼을 누르는 순간 관리자의 권한을 탈취하는 공격입니다. 이를 통해 공격자는 관리자 대신 소프트웨어를 설치하거나 시스템을 조작할 수 있습니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

OCO-Server 1.2.1 미만 버전

⚔️ 공격 벡터

에이전트 등록 기능을 통해 악성 호스트네임을 저장한 후, 관리자가 관리 콘솔에서 해당 컴퓨터의 명령 버튼을 클릭하도록 유도

🛡️ 대응 방법

OCO-Server를 최신 보안 패치가 적용된 1.2.1 버전 이상으로 업데이트하십시오.

🔧 검증 코드

설치된 OCO-Server의 버전을 확인하여 1.2.1 미만인 경우 즉시 업데이트가 필요합니다.

Shell / Script
php -r 'include "lib/Html.class.php"; echo "Check version 1.2.1 or higher";' 2>/dev/null || echo "Manual version check required"

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N

💻 영향받는 소프트웨어

Oracle Java SE