Vulnerability · Published Sep 13, 2024 · Assigned by @huntr_ai

CVE-2024-6087Improper Access Control in lunary-ai/lunary

Medium 6.5

In plain English

A medium-severity authorization bypass via user-controlled key in lunary-ai/lunary from lunary-ai. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)6.5Medium
Exploit odds (30 days)0.4%top 61.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmlunary1.4.9GHSA-6p2q-8qfq-wq7x

Affected products (as reported)

VendorProductVersions
lunary-ai lunary-ai/lunary unspecified – before 1.4.9

Weakness: CWE-639 · Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

References