Skip to content

CVE-2024-5386 Account Hijacking via Password Reset Token Leak in lunary-ai/lunary

HighCVSS 8.8 EPSS 0.53%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

Description

In lunary-ai/lunary version 1.2.2, an account hijacking vulnerability exists due to a password reset token leak. A user with a 'viewer' role can exploit this vulnerability to hijack another user's account by obtaining the password reset token. The vulnerability is triggered when the 'viewer' role user sends a specific request to the server, which responds with a password reset token in the 'recoveryToken' parameter. This token can then be used to reset the password of another user's account without authorization. The issue results from an excessive attack surface, allowing lower-privileged users to escalate their privileges and take over accounts.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
lunary < 1.2.14 1.2.14 Fixed
lunary-ai/lunary < 1.2.14 1.2.14 Fixed

Affected products

ProductAffected versionsFixed in
lunary-ai/lunary < 1.2.14 1.2.14
lunary < 1.2.14 1.2.14

References