MISP is an open source threat intelligence and sharing platform. Prior to 2.5.37, a SQL injection vulnerability existed in the handling of user-controlled ordering parameters in the event and shadow attribute listing endpoints. The affected code accepted order or sort values from request parameters and incorporated them into database query ordering clauses without sufficient validation of the requested field name. An attacker with access to the affected endpoints could craft a malicious ordering parameter to manipulate the generated SQL query. Depending on database permissions and query context, this could potentially allow unauthorized access to data, modification of query behavior, or other database-level impact. This vulnerability is fixed in 2.5.37.
The vulnerable endpoints responsible for listing events and shadow attributes accepted values of the 'order' or 'sort' parameters directly from HTTP requests. These values were then included in the ORDER BY clauses of SQL queries without sufficient field name validation. The lack of proper sanitization enables an attacker to craft a malicious sorting parameter that modifies the structure of the executed SQL query. The consequences depend on database permissions and query context.
An attacker can gain unauthorized access to data stored in the database or modify the behavior of database queries, which may lead to disclosure of sensitive intelligence information or violation of data integrity.
MISP should be updated to version 2.5.37 or later, where the vulnerability has been removed. Detailed information is available in the vendor references at: https://github.com/MISP/MISP/security/advisories/GHSA-4cxp-22wm-j6jr
MISP in versions prior to 2.5.37
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XMisp Project Misp
APPMisp-Project< 2.5.37
Related vulnerabilities
MISP: RCE przez złośliwy plik konfiguracyjny rdkafka (CWE-829)
MISP: błędna kontrola dostępu w masowym usuwaniu obiektów (CWE-862)
MISP: Wielokrotne słabości implementacji OAuth 2.0 z AAD – session fixation i inne
MISP: Nieprawidłowa weryfikacja przesyłanego logo organizacji
MISP: Nieprawidłowa walidacja uploadu pliku umożliwia RCE