CVE-2024-52294CWE-639

khoj has an IDOR in subscription management that allows unauthorized subscription modifications

Medium · published December 30, 2024

CVSS v3.1
4.3
EPSS
0%
Percentile
32.0
In the wild
Unconfirmed
What it is

Khoj is a self-hostable artificial intelligence app. Prior to version 1.29.10, an Insecure Direct Object Reference (IDOR) vulnerability in the update_subscription endpoint allows any authenticated user to manipulate other users' Stripe subscriptions by simply modifying the email parameter in the request. The vulnerability exists in the subscription endpoint at `/api/subscription`. The endpoint uses an email parameter as a direct reference to user subscriptions without verifying object ownership. While authentication is required, there is no authorization check to verify if the authenticated user owns the referenced subscription. The issue was fixed in version 1.29.10. Support for arbitrarily presenting an email for update has been deprecated.

The record
Technical detail
CVSS v3.1
4.3 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00391 · 32.0th percentile
Weakness
CWE-639 · Authorization Bypass Through User-Controlled Key
Published
2024-12-30T16:14Z
EPSS history
Timeline
  • 30 DEC 16:14Z
    khoj has an IDOR in subscription management that allows unauthorized subscription modifications
    cvelistv5