🔍 CVE-2021-3882

6.8
CVSS Score
MEDIUM
2021-10-14
2026-06-17 04:05
✅ 완료

🇰🇷 한글 설명

LedgerSMB가 리버스 프록시 뒤에 있을 때 HTTPS 사용 시 세션 인증 쿠키에 'Secure' 속성을 설정하지 않는 취약점입니다. 공격자가 사용자를 비암호화된 HTTP 연결로 유도할 경우, 네트워크 트래픽을 가로채 인증 쿠키를 탈취하여 해당 사용자로 로그인할 수 있습니다.

💡 쉬운 설명

인터넷 연결이 암호화되지 않은 상태에서 로그인 정보가 담긴 쿠키가 노출될 수 있는 문제입니다. 해커가 이 쿠키를 훔치면 사용자의 비밀번호를 몰라도 해당 계정으로 접속할 수 있습니다.

🇺🇸 원문 (English)

LedgerSMB does not set the 'Secure' attribute on the session authorization cookie when the client uses HTTPS and the LedgerSMB server is behind a reverse proxy. By tricking a user to use an unencrypted connection (HTTP), an attacker may be able to obtain the authentication data by capturing network traffic. LedgerSMB 1.8 and newer switched from Basic authentication to using cookie authentication with encrypted cookies. Although an attacker can't access the information inside the cookie, nor the password of the user, possession of the cookie is enough to access the application as the user from which the cookie has been obtained. In order for the attacker to obtain the cookie, first of all the server must be configured to respond to unencrypted requests, the attacker must be suitably positioned to eavesdrop on the network traffic between the client and the server *and* the user must be tricked into using unencrypted HTTP traffic. Proper audit control and separation of duties limit Integrity impact of the attack vector. Users of LedgerSMB 1.8 are urged to upgrade to known-fixed versions. Users of LedgerSMB 1.7 or 1.9 are unaffected by this vulnerability and don't need to take action. As a workaround, users may configure their Apache or Nginx reverse proxy to add the Secure attribute at the network boundary instead of relying on LedgerSMB. For Apache, please refer to the 'Header always edit' configuration command in the mod_headers module. For Nginx, please refer to the 'proxy_cookie_flags' configuration command.

📍 영향받는 시스템

LedgerSMB 1.8 및 그 이상의 버전 (단, 1.7 및 1.9 버전은 영향 없음)

⚔️ 공격 벡터

사용자를 HTTP 연결로 유도하여 네트워크 트래픽을 스니핑하고 세션 쿠키를 탈취함

🛡️ 대응 방법

패치된 버전으로 업그레이드하거나, Apache(mod_headers) 또는 Nginx(proxy_cookie_flags) 설정을 통해 쿠키에 Secure 속성을 강제로 추가함

🔧 검증 코드

출력 결과에 LedgerSMB 버전이 1.8 이상(1.8.x 등)으로 나타나면 취약할 가능성이 있습니다.

Shell / Script
grep -r "LedgerSMB" /etc/ /var/www/ 2>/dev/null | grep -E '1\.[89]'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

💻 영향받는 소프트웨어

Apache HTTP Server