🇰🇷 한글 설명
Siyuan 3.7.3 이하 버전의 속성 보기 템플릿 계산 기능에서 서버 측 템플릿 주입(SSTI) 취약점이 발견되었습니다. 공격자는 악성 템플릿 공식을 주입하여 실행 중인 계정의 환경 변수를 읽거나 서버 네트워크 위치에서 DNS 조회를 수행할 수 있습니다.
💡 쉬운 설명
프로그램의 특정 계산 기능을 악용하여 컴퓨터 내부의 중요한 비밀 정보를 몰래 빼낼 수 있는 보안 약점입니다. 공격자가 입력한 특수한 코드가 시스템 명령처럼 실행되어 개인 정보나 설정값이 유출될 위험이 있습니다.
🇺🇸 원문 (English)
siyuan versions <= 3.7.3 (fixed in v3.7.4) contain a server-side template injection vulnerability in the attribute-view Template calculation feature (introduced in v3.7.0-beta.1). The feature's template engine uses Sprig's unmodified function map, which still exposes the env, expandenv, and getHostByName functions that were removed elsewhere for CVE-2024-55660. A local, unauthenticated attacker (the kernel binds to 127.0.0.1 by default with no per-UID access control) can inject a malicious Template calculation formula to read environment variables belonging to the account running siyuan — including from a separate, unprivileged OS account — and to perform DNS lookups from the server's network position.
📍 영향받는 시스템
Siyuan versions <= 3.7.3
⚔️ 공격 벡터
로컬에서 인증되지 않은 공격자가 악성 템플릿 계산 공식을 주입하여 공격
🛡️ 대응 방법
Siyuan을 최신 버전인 v3.7.4 이상으로 업데이트하십시오.
🔧 검증 코드
명령어 결과에 3.7.3 이하의 버전 번호가 출력되면 취약한 버전이 설치된 상태입니다.
siyuan --version 2>/dev/null | grep -E '3\.[0-7]\.[0-3]'