CVE-2024-5133: Lunary AI - Account Takeover
- Cve: CVE-2024-5133
- Name: Lunary AI - Account Takeover
- Description: 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.
- Impact: Authenticated users can capture recovery tokens of others and change their passwords, leading to account takeover.
- Remediation: Remove the recovery_token attribute from API responses and implement proper access controls.
- Vulnerability type: broken_access_control
- Vulnerability impact: privilege_escalation, information_disclosure
- Requirement type: logged_in
- Requirements: Attacker needs to be authenticated
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- Epss score: 0.00543
- Epss percentile: 0.46475
- Assignee: [email protected]
- Published at: 2024-06-06T19:16:05Z
- Age in days: 901
- Modified at: 2026-06-17T08:15:15Z
- Patch available: yes
- Public exploits total: 1
- References total: 1
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-5133
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-200 | Exposure of Sensitive Information to an Unauthorized Actor |
| NVD-CWE-noinfo | — |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://huntr.com/bounties/6057598d-93c4-4a94-bb80-5bd508013c5b | nvd | 2024-06-06 |
References
| Url | Source | Tags |
|---|---|---|
| https://huntr.com/bounties/6057598d-93c4-4a94-bb80-5bd508013c5b | nvd | Exploit, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| lunary:lunary | < 1.2.14 | no | nvd | /v1/products/lunary/lunary |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2024-06-06
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts