LoLLMs is vulnerable to Improper Access Control through weak secret key
The application used a weak secret key to sign JSON Web Tokens (JWTs), allowing an attacker to brute-force the key offline. Once the key was recovered, the attacker could forge administrative tokens and gain access to restricted endpoints.
parisneo/lollms
Originally disclosed on huntr
In parisneo/lollms version 2.1.0, the application's session management is vulnerable to improper access control due to the use of a weak secret key for signing JSON Web Tokens (JWT). This vulnerability allows an attacker to perform an offline brute-force attack to recover the secret key. Once the secret key is obtained, the attacker can forge administrative tokens by modifying the JWT payload and resigning it with the cracked secret. This enables unauthorized users to escalate privileges, impersonate the administrator, and gain access to restricted endpoints. The issue is resolved in version 2.2.0.
From the GitHub Advisory Database (GHSA-9296-v3fr-j92j, CC BY 4.0).
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
Likely the application used a weak, guessable secret key for signing JWTs, making offline brute-force feasible.
Impact
An attacker could escalate privileges, impersonate the administrator, and access restricted endpoints.
What the attacker needed
Access to a signed JWT; ability to run offline brute-force
The fix
The issue was fixed in version 2.2.0.
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.
A JSON Web Token (JWT) is like a signed pass that a website gives you after login. If the secret used to sign it is weak, someone can guess it and then create fake passes that say they are an administrator. This report says that happened here, so an attacker could pretend to be the admin.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.