CVE-2024-5133CWE-200

Account Takeover via Exposed Recovery Token in lunary-ai/lunary

Critical · published June 6, 2024

CVSS v3.0
9.1
EPSS
1%
Percentile
44.8
In the wild
Unconfirmed
What it is

In lunary-ai/lunary version 1.2.4, an account takeover vulnerability exists due to the exposure of password recovery tokens in API responses. Specifically, when a user initiates the password reset process, the recovery token is included in the response of the `GET /v1/users/me/org` endpoint, which lists all users in a team. This allows any authenticated user to capture the recovery token of another user and subsequently change that user's password without consent, effectively taking over the account. The issue lies in the inclusion of the `recovery_token` attribute in the users object returned by the API.

The record
Technical detail
CVSS v3.0
9.1 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00543 · 44.8th percentile
Weakness
CWE-200 · Exposure of Sensitive Information to an Unauthorized Actor
Published
2024-06-06T18:21Z
EPSS history
Timeline
  • 06 JUN 18:21Z
    Account Takeover via Exposed Recovery Token in lunary-ai/lunary
    cvelistv5