Langgenius Dify Password Reset Vulnerability Allowing Unauthorized Password Changes

Vulnerability

A vulnerability in Langgenius Dify version 0.10.1 allows attackers to reset the passwords of any users, including administrators, through the '/forgot-password/resets' endpoint. The issue arises because the endpoint fails to verify the password reset code, enabling unauthorized password changes and potentially leading to a complete compromise of the application.

Impact

Exploitation of this vulnerability allows for unauthorized password resets, leading to account takeovers, including those of administrative users.

Reproduction

To reproduce this vulnerability, request a password reset for any user by entering their email address. After sending the request, extract the token from the URL of the response. Then, send a POST request to the '/console/api/forgot-password/resets' endpoint, including the extracted token, the email address of the user whose password is to be reset, and the new password details. This will reset the password for the specified user, regardless of the email used, as long as the token is valid.

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

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.0
exploitability
5.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.