🇰🇷 한글 설명
Python 기반의 Matrix 홈서버 패키지인 Synapse의 1.47.1 미만 버전에서 미디어 저장소가 활성화된 경우, 공격자가 원격 서버의 파일을 임의의 디렉토리에 다운로드하도록 유도할 수 있는 취약점이 발견되었습니다. 이 공격은 인증 없이 수행 가능하지만, 파일 경로의 일부가 무작위로 생성되어 공격자가 경로를 완전히 제어할 수 없다는 제한 사항이 있습니다.
💡 쉬운 설명
해커가 서버에 허락되지 않은 파일을 몰래 저장하게 만들 수 있는 보안 구멍이 발견되었습니다. 다만 파일이 저장되는 위치를 해커가 마음대로 정하기는 어렵습니다.
🇺🇸 원문 (English)
Synapse is a package for Matrix homeservers written in Python 3/Twisted. Prior to version 1.47.1, Synapse instances with the media repository enabled can be tricked into downloading a file from a remote server into an arbitrary directory. No authentication is required for the affected endpoint. The last 2 directories and file name of the path are chosen randomly by Synapse and cannot be controlled by an attacker, which limits the impact. Homeservers with the media repository disabled are unaffected. Homeservers with a federation whitelist are also unaffected, since Synapse will check the remote hostname, including the trailing `../`s, against the whitelist. Server administrators should upgrade to 1.47.1 or later. Server administrators using a reverse proxy could, at the expense of losing media functionality, may block the certain endpoints as a workaround. Alternatively, non-containerized deployments can be adapted to use the hardened systemd config.
📍 영향받는 시스템
Synapse (Python 3/Twisted 기반) 1.47.1 미만 버전 (미디어 저장소 활성화 시)
⚔️ 공격 벡터
인증이 필요 없는 엔드포인트를 통해 원격 서버의 파일을 서버 내 임의 디렉토리로 다운로드 유도
🛡️ 대응 방법
Synapse를 1.47.1 버전 이상으로 업그레이드하거나, 리버스 프록시를 통해 관련 엔드포인트를 차단합니다.
🔧 검증 코드
출력된 버전이 1.47.1 미만이면 해당 취약점에 노출된 상태입니다.
pip show matrix-synapse | grep Version