🇰🇷 한글 설명
Fastify 웹 프레임워크의 Web Streams 응답 처리에서 서비스 거부 취약점이 발견되었습니다. 이 취약점은 원격 클라이언트가 서버 메모리를 고갈시키는 것을 허용합니다. 이 문제는 버전 5.7.3에서 수정되었습니다.
💡 쉬운 설명
Fastify 웹 프레임워크의 버그로 인해 서버가 과부하되어 멈출 수 있습니다. 버전 5.7.3 이전의 버전에서 발생합니다. 서버에 연결된 클라이언트가 데이터를 읽지 않으면 서버 메모리가 고갈됩니다.
🇺🇸 원문 (English)
Fastify is a fast and low overhead web framework, for Node.js. Prior to version 5.7.3, a denial-of-service vulnerability in Fastify’s Web Streams response handling can allow a remote client to exhaust server memory. Applications that return a ReadableStream (or Response with a Web Stream body) via reply.send() are impacted. A slow or non-reading client can trigger unbounded buffering when backpressure is ignored, leading to process crashes or severe degradation. This issue has been patched in version 5.7.3.
📍 영향받는 시스템
Fastify 버전 5.7.3 이전
⚔️ 공격 벡터
원격 클라이언트가 서버에 연결하여 데이터를 읽지 않음
🛡️ 대응 방법
Fastify 버전을 5.7.3 이상으로 업그레이드합니다.
🔧 검증 코드
로컬에서 Python이 설치되어 있어야 합니다. pip로 fastify를 설치한 경우에만 이 코드를 사용할 수 있습니다. 코드를 실행하기 전에 pip로 fastify를 설치해야 합니다.
python -c "import pkg_resources; print('Fastify 버전:', pkg_resources.get_distribution('fastify').version); if pkg_resources.get_distribution('fastify').version < '5.7.3': print('{"result": "취약", "reason": "Fastify 버전이 5.7.3 미만"}'); else: print('{"result": "양호", "reason": "Fastify 버전이 5.7.3 이상"}')"