Skip to content
Info disclosure Disclosed report Advanced CVE-2025-6386

Lord of Large Language Models vulnerable to Observable Discrepancy attack via authenticate_user function

The authenticate_user function compared passwords using Python's default string equality, which exits early on the first mismatched character, causing response times to vary with the number of matching leading characters. An attacker could measure these timing differences to enumerate valid usernames and guess passwords incrementally.

parisneo/lollms

Originally disclosed on huntr

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 commit f78437f. 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.

From the GitHub Advisory Database (GHSA-j5pr-vrjj-9v4h, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The password comparison used Python's default string equality operator, which compares characters sequentially and returns on the first mismatch, producing response times that depend on the number of matching leading characters.

What the attacker needed

Ability to measure response times; network access to the login endpoint

The fix

The issue was fixed in commit f78437f, which presumably replaces the default string comparison with a constant-time comparison.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a program checks a password, it often compares characters one by one and stops as soon as it finds a difference. That early exit makes the check slightly faster or slower depending on how many characters match, and an attacker who can measure those tiny delays can learn the password one character at a time. This is called a timing attack.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from parisneo/lollms

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.