🇰🇷 한글 설명
D-Link DIR-823G 라우터 펌웨어의 timelycheck 및 sysconf 바이너리에서 커맨드 인젝션 취약점이 발견되었습니다. /var/system/linux_vlan_reinit 파일의 내용을 검증하는 과정이 불충분하여, 해당 파일에 쓰기 권한이 있는 공격자가 임의의 명령어를 실행할 수 있습니다.
💡 쉬운 설명
라우터 내부의 특정 설정 파일을 조작하여 해커가 원하는 명령을 강제로 실행할 수 있는 보안 약점입니다. 공격자가 이 파일을 수정할 수 있다면 기기 전체의 제어권을 뺏길 수 있습니다.
🇺🇸 원문 (English)
A command injection vulnerability exists in the D-Link DIR-823G router firmware DIR823G_V1.0.2B05_20181207.bin in the timelycheck and sysconf binaries, which process the /var/system/linux_vlan_reinit file. The vulnerability occurs because content read from this file is only partially validated for a prefix and then formatted using vsnprintf() before being executed with system(), allowing an attacker with write access to /var/system/linux_vlan_reinit to execute arbitrary commands on the device.
📍 영향받는 시스템
D-Link DIR-823G (펌웨어 버전: DIR823G_V1.0.2B05_20181207.bin)
⚔️ 공격 벡터
파일 시스템 내 /var/system/linux_vlan_reinit 파일에 악성 명령어가 포함된 데이터를 주입하여 실행
🛡️ 대응 방법
제조사에서 제공하는 최신 보안 패치 적용 또는 취약한 버전의 펌웨어 업데이트
🔧 검증 코드
명령어 결과에서 해당 바이너리의 함수 호출 패턴이 확인되고 파일이 존재하며 쓰기 권한이 있다면 취약할 가능성이 높습니다.
strings /usr/sbin/timelycheck | grep -E 'vsnprintf|system' && ls -l /var/system/linux_vlan_reinit