langflow
cpe:2.3:a:langflow:langflow:*:*:*:*:*:*:*
- <= 1.3.2
A directory traversal vulnerability has been identified in Langflow versions prior to 1.7.1. The issue arises in the 'download_profile_picture' function of the '/profile_pictures/{folder_name}/{file_name}' endpoint, where the 'folder_name' and 'file_name' parameters are not properly validated. This lack of strict filtering enables the reading of the 'secret_key' across different directories. The 'secret_key' is crucial for JWT authentication, and its exposure could allow attackers to forge authentication tokens and gain unauthorized access to the system.
Exposing the 'secret_key' used for JWT authentication could lead to unauthorized access by allowing attackers to forge authentication tokens and log into the system.
The vulnerability can be reproduced by sending a request to the '/api/v1/files/profile_pictures/../secret_key' endpoint. This can be done using a tool like 'curl', with the '--path-as-is' option to bypass normal path sanitization and access the 'secret_key' file.
Users are advised to update Langflow to version 1.7.1 or later, where this vulnerability has been patched.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.