🇰🇷 한글 설명
Algernon 웹 서버의 Windows 환경에서 파일 확장자 검증 미흡으로 인해 발생하는 취약점입니다. 공격자가 NTFS 특수 접미사를 사용하여 서버 측 스크립트 파일을 직접 요청함으로써 소스 코드를 탈취할 수 있습니다. 이로 인해 데이터베이스 자격 증명이나 API 키와 같은 민감한 정보가 노출될 위험이 있습니다.
💡 쉬운 설명
윈도우용 Algernon 서버에서 파일 이름 뒤에 특수한 문자를 붙여 보내면, 원래는 실행되어야 할 프로그램 코드가 화면에 그대로 글자로 나타나는 문제입니다. 이를 통해 해커가 서버의 중요한 비밀번호나 열쇠를 훔쳐갈 수 있습니다.
🇺🇸 원문 (English)
Algernon is a small self-contained pure-Go web server. Prior to 1.17.9, Algernon on Windows selects a file handler in engine/handlers.go by calling filepath.Ext() without first rejecting NTFS-equivalent names such as x.lua::$DATA, x.lua., and x.lua . An unauthenticated client can append one of these suffixes to a public server-side script using the .lua, .tl, .po2, .amber, or .frm extension. The request path passes through URL2filename in utils/files.go, skips the renderer and execution cases, and reaches FilePage, os.Open, ReadAndLogErrors, and ToClient, while NTFS resolves the alias to the underlying script. The server consequently returns raw script source and can expose database credentials, API keys, and the SetCookieSecret value, which may permit forged session cookies. Linux and macOS hosts are not affected by this issue. This issue is fixed in version 1.17.9.
📍 영향받는 시스템
Algernon (Windows 환경, 1.17.9 미만 버전)
⚔️ 공격 벡터
공격자가 스크립트 파일 확장자 뒤에 '::$DATA'와 같은 NTFS 특수 접미사를 붙여 HTTP 요청을 전송
🛡️ 대응 방법
Algernon을 1.17.9 버전 이상으로 업데이트
🔧 검증 코드
설치된 Algernon의 버전을 확인하여 1.17.9 미만인지 확인합니다.
go version | grep -i 'algernon' || echo 'Check installed version manually'
💻 영향받는 소프트웨어
NVIDIA Cloud Gaming Guest Driver for Linux