kcve.ai취약점 정보 · 내 자산 확인

CVE-2023-22496 Netdata vulnerable to command injection

명령 주입에 취약한 Netdata

설명

Netdata is an open source option for real-time infrastructure monitoring and troubleshooting. An attacker with the ability to establish a streaming connection can execute arbitrary commands on the targeted Netdata agent. When an alert is triggered, the function `health_alarm_execute` is called. This function performs different checks and then enqueues a command by calling `spawn_enq_cmd`. This command is populated with several arguments that are not sanitized. One of them is the `registry_hostname` of the node for which the alert is raised. By providing a specially crafted `registry_hostname` as part of the health data that is streamed to a Netdata (parent) agent, an attacker can execute arbitrary commands at the remote host as a side-effect of the raised alert. Note that the commands are executed as the user running the Netdata Agent. This user is usually named `netdata`. The ability to run arbitrary commands may allow an attacker to escalate privileges by escalating other vulnerabilities in the system, as that user. The problem has been fixed in: Netdata agent v1.37 (stable) and Netdata agent v1.36.0-409 (nightly). As a workaround, streaming is not enabled by default. If you have previously enabled this, it can be disabled. Limiting access to the port on the recipient Agent to trusted child connections may mitigate the impact of this vulnerability.

Netdata는 실시간 인프라 모니터링 및 문제 해결을 위한 오픈 소스 옵션입니다. 스트리밍 연결을 설정할 수 있는 공격자는 대상 Netdata 에이전트에서 임의의 명령을 실행할 수 있습니다. 경고가 트리거되면, `health_alarm_execute` 함수가 호출된다. 이 함수는 다른 검사를 수행하고 `spawn_enq_cmd`를 호출하여 명령을 대기시킵니다. 이 명령은 세정되지 않은 여러 인자로 채워집니다. 그 중 하나는 경고가 제기되는 노드의 `registry_hostname`입니다. Netdata(parent) 에이전트로 스트리밍되는 건강 데이터의 일부로서 특별히 제작된 `registry_hostname`을 제공함으로써, 공격자는 발생된 경보의 부작용으로서 원격 호스트에서 임의의 명령을 실행할 수 있다. 명령이 Netdata Agent를 실행하는 사용자로 실행된다는 점에 유의하십시오. 이 사용자는 보통 'netdata'라고 불린다. 임의의 명령을 실행할 수 있는 능력은 공격자가 시스템의 다른 취약점을 사용자로 확장하여 권한을 확대할 수 있게 합니다. 문제는 Netdata 에이전트 v1.37 (안정적) 및 Netdata 에이전트 v1.36.0-409 (밤마다)에서 해결되었습니다. 해결 방법으로 스트리밍은 기본적으로 활성화되지 않습니다. 이전에 이 기능을 활성화했다면 비활성화할 수 있습니다. 수신자 에이전트의 포트에 대한 액세스를 신뢰할 수 있는 자식 연결로 제한하면 이 취약성의 영향을 완화할 수 있습니다.

영향 받는 제품 제품 1개

  • netdata

    netdata

    해결 버전 있음

    영향 받는 버전

    • 1.36.0-409 미만
    • 1.37 미만

    해결 버전

    • 1.36.0-409 이상
    • 1.37 이상

참고 자료 1건

‹ 목록

점검 지원 범위 문의

도입 문의