You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Security Issue] lollms accepts administrator JWTs signed with its shipped weak key #20
When SECRET_KEY is unset, lollms uses the public default a_very_secret_key_that_should_be_changed_for_production to sign HS256 JWTs. An unauthenticated attacker can use that key to forge an administrator token.
Details
The forged token uses {"sub":"admin","exp":<future>} and is accepted by the administrator authorization dependency. No valid account credentials are required.
PoC
Run the real backend with its default configuration, then create an HS256 token with the shipped key and request:
GET /api/admin/users
Authorization: Bearer <forged-token>
Activity