🇰🇷 한글 설명
GV-I/O Box 4E의 DVRSearch 서비스에서 발생하는 스택 기반 버퍼 오버플로우 취약점입니다. 공격자가 UDP 10001 포트로 조작된 메시지를 전송하면 gateway 필드 처리 과정에서 메모리 오버플로우가 발생하여 시스템 제어권을 탈취할 수 있습니다.
💡 쉬운 설명
네트워크 장비의 특정 서비스가 입력받은 데이터의 길이를 제대로 확인하지 않아 발생하는 문제입니다. 해커가 특수한 신호를 보내면 장비의 메모리를 넘치게 만들어 장비를 마음대로 조종할 수 있습니다.
🇺🇸 원문 (English)
GV-I/O Box 4E is a smart embedded device with 4 input and 4 relays output that can be controlled over Ethernet and RS-485.
DVRSearch is a service running by default on the IOBox listening for UDP messages on port 10001. Any user on the network can send messages to this service and interact with it.
Upon receiving a UDP message, the server reads at most 1460 bytes into a local buffer and a pointer to the buffer is stored in a global variable:
#### Gateway field stack overflow
The following code is vulnerable to a stack overflow that is attacker-controlled:
v7 = strlen(g_network_config->gateway);
memcpy(&reply_buf[216], g_network_config->gateway, v7);
📍 영향받는 시스템
GV-I/O Box 4E (DVRSearch 서비스가 실행 중인 모든 장치)
⚔️ 공격 벡터
네트워크를 통해 UDP 10001 포트로 조작된 페이로드를 전송하는 방식
🛡️ 대응 방법
제조사에서 제공하는 최신 보안 패치를 적용하거나, 네트워크 방화벽을 통해 UDP 10001 포트 접근을 차단하십시오.
🔧 검증 코드
해당 명령어로 10001 포트가 열려 있는지 확인하여 공격 가능성을 점검합니다.
nc -u -z -v <target_ip> 10001
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
💻 영향받는 소프트웨어
Spring Cloud Gateway Server