Vulnerability

CVE-2024-52294

mediumCVSS 3.1 4.3Published 30 Dec 2024

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

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.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /khoj-ai/khoj/commit/47d3c8c23597900af708bdc60aced3ae5d2064…
  • github.com /khoj-ai/khoj/security/advisories/GHSA-hq4h-w933-jm6c

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning