🇰🇷 한글 설명
Roxy-WI 8.2.6.4 이전 버전의 POST /config/<service>/show API 엔드포인트에서 경로 순회 취약점이 존재합니다. configver 매개변수가 충분히 검증되지 않아 인증된 공격자가 ../ 시퀀스를 사용하여 의도된 디렉토리를 벗어나 임의 파일을 읽을 수 있습니다.
💡 쉬운 설명
Roxy-WI 관리 도구의 설정 파일 조회 기능에서 경로 검증이 부족합니다. 인증된 사용자가 폴더 경로에 상위 디렉토리 명령(../)을 넣어서 서버의 다른 파일들을 무단으로 읽을 수 있습니다.
🇺🇸 원문 (English)
Roxy-WI is a web interface for managing Haproxy, Nginx, Apache and Keepalived servers. Prior to version 8.2.6.4, the POST /config/<service>/show API endpoint accepts a configver parameter that is directly appended to a base directory path to construct a local file path, which is subsequently opened and its contents returned to the caller. The existing path traversal guard only inspects the base directory variable (which is never user-controlled) and entirely ignores the user-supplied configver value. An authenticated attacker can supply a configver value containing `../` sequences to escape the intended directory and read arbitrary files accessible to the web application process. Version 8.2.6.4 contains a patch for the issue.
📍 영향받는 시스템
Roxy-WI < 8.2.6.4 (Haproxy, Nginx, Apache, Keepalived 관리 웹 인터페이스)
⚔️ 공격 벡터
인증 후 POST /config/{service}/show?configver=../../../etc/passwd 형태로 요청하여 임의 파일 읽기
🛡️ 대응 방법
Roxy-WI를 8.2.6.4 이상으로 업그레이드
🔧 검증 코드
Version 항목에서 버전 번호 확인 후 8.2.6.4 미만이면 취약함
pip show roxy-wi 2>/dev/null | grep Version || echo 'Not installed'