PT-2024-35160 · Khoj · Khoj
Adventure8812
+1
·
Published
2024-12-30
·
Updated
2024-12-30
·
CVE-2024-52294
CVSS v3.1
4.3
Medium
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
Khoj versions prior to 1.29.10
Description
The issue is related to an Insecure Direct Object Reference (IDOR) vulnerability in the update subscription endpoint, allowing any authenticated user to manipulate other users' Stripe subscriptions by modifying the
email parameter in the request. The vulnerability exists in the subscription endpoint at "/api/subscription", which 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.Recommendations
For versions prior to 1.29.10, update to version 1.29.10 or later to resolve the issue. As a temporary workaround, consider restricting access to the
/api/subscription endpoint to prevent unauthorized subscription modifications. Additionally, avoid using the email parameter in the affected API endpoint until the issue is resolved.Exploit
Fix
IDOR
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Khoj