🇰🇷 한글 설명
x-ui 0.3.2 버전에서 반사형 XSS 취약점이 발견되었습니다. 관리 인터페이스가 요청 URI를 사이드바 메뉴 강조를 위한 클라이언트 측 템플릿 바인딩 표현식에 그대로 반영하며, 서버 측 HTML 엔티티 이스케이프가 브라우저의 디코딩 과정에서 무력화되어 임의의 스크립트 실행이 가능합니다.
💡 쉬운 설명
로그인한 관리자가 악성 링크를 클릭하면 해커가 작성한 코드가 관리자 페이지에서 실행될 수 있습니다. 이를 통해 관리자의 세션 정보를 훔치거나 관리자 권한으로 원치 않는 동작을 수행할 수 있습니다.
🇺🇸 원문 (English)
A reflected cross-site scripting vulnerability exists in x-ui 0.3.2. The management interface reflects the raw request URI into a client-side template binding expression used for sidebar menu highlighting. Server-side HTML entity escaping is ineffective in this context: the browser decodes the entities before the client-side framework evaluates the content as a JavaScript expression. A logged-in panel user who visits a crafted URL allows arbitrary script execution in the same-origin context of the management page, enabling data theft and unauthorized actions through the victim's session.
⚔️ 공격 벡터
로그인된 사용자가 조작된 URL을 클릭하도록 유도하는 반사형 XSS 공격
🛡️ 대응 방법
x-ui를 최신 보안 패치가 적용된 버전으로 업데이트하거나, 입력값에 대한 클라이언트 측 템플릿 샌드박싱을 강화해야 합니다.
🔧 검증 코드
응답 결과에 취약한 버전인 x-ui 0.3.2가 포함되어 있는지 확인합니다.
curl -s http://<target_ip>/<path> | grep -E 'x-ui/0.3.2'