Submit #806403: crocodilestick Calibre-Web-Automated v1.0.0-v4.0.6 IDOR in auth-token generation leading to account takeoverinfo

Titlecrocodilestick Calibre-Web-Automated v1.0.0-v4.0.6 IDOR in auth-token generation leading to account takeover
DescriptionAn Insecure Direct Object Reference (IDOR) vulnerability in crocodilestick/Calibre-Web-Automated allows an authenticated user to impersonate any other user on the platform. The endpoint /kobo_auth/generate_auth_token/<int:user_id> does not validate if the requester has administrative privileges or matches the targeted user_id. An attacker can generate a long-lived auth token for a victim and use it against the /kobo/<auth_token>/v1/initialization route. user_id is an integer that increments from 1, so it is easy to guess the administrator's user_id. Because the application calls login_user(user) based on the token owner within the requires_kobo_auth decorator, this leads to a complete session takeover and persistent impersonation of the victim.
Source⚠️ https://gist.github.com/menelausx/ef98aa78ed2869ccaa316ff45ed1a440
User
 JasperX (UID 97281)
Submission04/16/2026 08:52 (4 months ago)
Moderation05/03/2026 09:59 (17 days later)
StatusAccepted
VulDB entry360889 [crocodilestick Calibre-Web-Automated up to 4.0.6 Kobo auth-token Route cps/kobo_auth.py generate_auth_token improper authorization]
Points20

Do you want to use VulDB in your project?

Use the official API to access entries easily!