SecurityContext

CVE-2024-6087: lunary-ai - Broken Access Control

  • Cve: CVE-2024-6087
  • Name: lunary-ai - Broken Access Control
  • Description: An improper access control vulnerability exists in lunary-ai/lunary at the latest commit (a761d83) on the main branch. The vulnerability allows an attacker to use the auth tokens issued by the 'invite user' functionality to obtain valid JWT tokens. These tokens can be used to compromise target users upon registration for their own arbitrary organizations. The attacker can invite a target email, obtain a one-time use token, retract the invite, and later use the token to reset the password of the target user, leading to full account takeover.
  • Impact: Attackers can take over user accounts by reusing invite tokens, leading to full account compromise.
  • Remediation: Implement proper token validation and restrict token reuse; update to the latest commit with security fixes.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: privilege_escalation, information_disclosure
  • Requirement type: user_interaction
  • Requirements: Attacker needs to generate and reuse invite tokens
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
  • Epss score: 0.0044
  • Epss percentile: 0.3898
  • Assignee: [email protected]
  • Published at: 2024-09-13T17:15:13Z
  • Age in days: 802
  • Modified at: 2026-06-17T08:17:15Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-6087
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-639Authorization Bypass Through User-Controlled Key
NVD-CWE-Other—

Public exploits

UrlSourceAdded date
https://huntr.com/bounties/bd9f2301-11c7-4cbd-8d77-3e9225bd67e8nvd2024-09-13

References

UrlSourceTags
https://github.com/lunary-ai/lunary/commit/844e8855c7a713dc7371766dba4125de4007b1cfnvdPatch
https://huntr.com/bounties/bd9f2301-11c7-4cbd-8d77-3e9225bd67e8nvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
lunary:lunary< 1.4.9nonvd/v1/products/lunary/lunary

Projects

RepositoryLink kindsIndexedUrl
lunary-ai/lunarycommityes/v1/repositories/lunary-ai/lunary

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2024-09-13
  • 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