We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2024-52294

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



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.

Reserved 2024-11-06 | Published 2024-12-30 | Updated 2024-12-30 | Assigner GitHub_M


MEDIUM: 4.3CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Problem types

CWE-639: Authorization Bypass Through User-Controlled Key

Product status

< 1.29.0
affected

References

github.com/...i/khoj/security/advisories/GHSA-hq4h-w933-jm6c

github.com/...ommit/47d3c8c23597900af708bdc60aced3ae5d2064c1

cve.org (CVE-2024-52294)

nvd.nist.gov (CVE-2024-52294)

Download JSON

Share this page
https://cve.threatint.com/CVE/CVE-2024-52294

Support options

Helpdesk Chat, Email, Knowledgebase
Subscribe to our newsletter to learn more about our work.