🔍 CVE-2025-6386

7.5
CVSS Score
HIGH
2025-07-07
2026-04-15 00:35
✅ 완료

🇰🇷 한글 설명

parisneo/lollms의 authenticate_user 함수에 타이밍 공격 취약점이 존재합니다. 기본 문자열 비교 연산자를 사용하여 문자를 순차적으로 비교하므로, 일치하는 초기 문자 수에 따라 응답 시간이 달라져 공격자가 유효한 사용자명을 열거하고 비밀번호를 점진적으로 추측할 수 있습니다.

💡 쉬운 설명

프로그램이 비밀번호를 확인할 때 첫 글자부터 하나씩 비교하는데, 맞는 글자가 많을수록 더 오래 걸립니다. 공격자가 이 시간 차이를 측정하면 비밀번호를 알아낼 수 있습니다.

🇺🇸 원문 (English)

The parisneo/lollms repository is affected by a timing attack vulnerability in the `authenticate_user` function within the `lollms_authentication.py` file. This vulnerability allows attackers to enumerate valid usernames and guess passwords incrementally by analyzing response time differences. The affected version is the latest, and the issue is resolved in version 20.1. The vulnerability arises from the use of Python's default string equality operator for password comparison, which compares characters sequentially and exits on the first mismatch, leading to variable response times based on the number of matching initial characters.

📍 영향받는 시스템

parisneo/lollms 최신 버전 (20.1 미만)

⚔️ 공격 벡터

네트워크 요청의 응답 시간 분석을 통해 유효한 사용자명 열거 및 비밀번호 문자 단위 추측

🛡️ 대응 방법

lollms를 버전 20.1 이상으로 업그레이드하거나 constant-time 문자열 비교 함수(예: hmac.compare_digest) 사용

🔧 검증 코드

설치된 경우 버전 번호를 확인하고 20.1 이상이면 패치됨, 미설치면 'Not installed' 표시

Shell / Script
pip show lollms 2>/dev/null | grep Version || echo 'Not installed'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Python