springboot-openai-chatgpt Business Logic Vulnerability in Data Addition API

Vulnerability

A critical business logic vulnerability has been identified in the springboot-openai-chatgpt application, specifically in version e84f6f5. The issue arises in the API endpoint '/api/mjkj-chat/cgform-api/addData/', where the 'chatUserID' parameter can be manipulated. This vulnerability allows normal users to bypass permission checks and add data on behalf of other users, potentially leading to unauthorized actions or data manipulation.

Impact

Exploitation of this vulnerability allows for unauthorized data addition on behalf of other users, bypassing normal permission checks. This could be used to manipulate application data or user accounts.

Reproduction

To reproduce this vulnerability, a normal user must log into the application and retrieve the 'chatUserID' from their chat history. Once obtained, the user can send a POST request to the 'addData' API endpoint, using the 'chatUserID' parameter. The request can include any data the user wishes to add, effectively allowing them to manipulate data on behalf of the target user.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
0.6
exploitability
6.6
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.