🇰🇷 한글 설명
FUXA 1.2.8 및 이전 버전에서 인증 우회로 인한 원격 코드 실행(RCE) 취약점이 발견되었습니다. server/api/jwt-helper.js 미들웨어가 HTTP 'Referer' 헤더를 부적절하게 신뢰하여 내부 요청을 검증함으로써 발생합니다. 공격자는 Referer 헤더를 조작하여 JWT 인증을 우회하고 /api/runscript 엔드포인트를 통해 서버에서 임의의 Node.js 코드를 실행할 수 있습니다.
💡 쉬운 설명
웹사이트가 '어디서 접속했는지'를 알려주는 정보를 너무 쉽게 믿어서 발생하는 보안 구멍입니다. 해커가 이 정보를 가짜로 꾸며 보내면, 로그인 없이도 서버에 명령을 내려 컴퓨터를 마음대로 조종할 수 있습니다.
🇺🇸 원문 (English)
FUXA 1.2.8 and prior contains an Authentication Bypass vulnerability leading to Remote Code Execution (RCE). The vulnerability exists in the server/api/jwt-helper.js middleware, which improperly trusts the HTTP "Referer" header to validate internal requests. A remote unauthenticated attacker can bypass JWT authentication by spoofing the Referer header to match the server's host. Successful exploitation allows the attacker to access the protected /api/runscript endpoint and execute arbitrary Node.js code on the server.
📍 영향받는 시스템
FUXA 1.2.8 및 그 이전 모든 버전
⚔️ 공격 벡터
HTTP 'Referer' 헤더를 서버 호스트와 일치하도록 조작하여 JWT 인증을 우회한 후 /api/runscript 엔드포인트에 악성 코드 전송
🛡️ 대응 방법
FUXA를 최신 보안 패치가 적용된 버전으로 즉시 업데이트하고, Referer 헤더 기반의 인증 검증 로직을 제거해야 합니다.
🔧 검증 코드
출력된 버전이 1.2.8 이하인지 확인하여 취약 여부를 판단합니다.
npm list -g fuxa 2>/dev/null | grep -E 'fuxa@'