🔍 CVE-2023-34108

8.8
CVSS Score
HIGH
2023-06-07
2026-06-17 06:02
✅ 완료

🇰🇷 한글 설명

mailcow 메일 서버 스위트에서 Dovecot 내부 변수를 조작할 수 있는 취약점이 발견되었습니다. 공격자가 특수하게 제작된 비밀번호를 사용하여 인증 과정 중 passwd-verify.lua 스크립트의 반환 값을 조작함으로써 Dovecot의 내부 동작에 영향을 줄 수 있습니다. 이로 인해 보안 통제 우회 및 사용자 계정에 대한 무단 접근이 발생할 수 있습니다.

💡 쉬운 설명

비밀번호를 입력할 때 특정 명령어를 섞어서 넣으면, 서버가 이를 비밀번호가 아닌 시스템 설정 명령으로 착각하게 만드는 취약점입니다. 이를 통해 공격자는 서버의 보안 설정을 마음대로 바꾸거나 다른 사람의 계정에 접속할 수 있습니다.

🇺🇸 원문 (English)

mailcow is a mail server suite based on Dovecot, Postfix and other open source software, that provides a modern web UI for user/server administration. A vulnerability has been discovered in mailcow which allows an attacker to manipulate internal Dovecot variables by using specially crafted passwords during the authentication process. The issue arises from the behavior of the `passwd-verify.lua` script, which is responsible for verifying user passwords during login attempts. Upon a successful login, the script returns a response in the format of "password=<valid-password>", indicating the successful authentication. By crafting a password with additional key-value pairs appended to it, an attacker can manipulate the returned string and influence the internal behavior of Dovecot. For example, using the password "123 mail_crypt_save_version=0" would cause the `passwd-verify.lua` script to return the string "password=123 mail_crypt_save_version=0". Consequently, Dovecot will interpret this string and set the internal variables accordingly, leading to unintended consequences. This vulnerability can be exploited by an authenticated attacker who has the ability to set their own password. Successful exploitation of this vulnerability could result in unauthorized access to user accounts, bypassing security controls, or other malicious activities. This issue has been patched in version `2023-05a`. Users are advised to upgrade. There are no known workarounds for this vulnerability.

📍 영향받는 시스템

mailcow (version 2023-05a 미만 버전)

⚔️ 공격 벡터

인증 과정에서 특수하게 조작된 키-값 쌍이 포함된 비밀번호를 입력하여 Dovecot 내부 변수 조작

🛡️ 대응 방법

mailcow를 버전 2023-05a 이상으로 즉시 업그레이드하십시오.

🔧 검증 코드

출력된 버전 정보가 2023-05a보다 낮은지 확인하여 취약 여부를 판단합니다.

Shell / Script
docker exec mailcowdockerized-mailcow-webui-1 mailcow-dockerized-mailcow-webui-1 | grep 'version'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

IBM Security Verify Access