No-CMS 1.0 SQL Injection Vulnerability (CVE-2018-25431)
No-Cms 1.0 is vulnerable to SQL injection (CVE-2018-25431) in the order_by parameter of the manage_privilege export endpoint, allowing authenticated attackers to manipulate database queries and potentially extract sensitive information.
No-CMS 1.0 is susceptible to an SQL injection vulnerability within the order_by parameter of the /nocms/main/manage_privilege/index/export endpoint. This flaw, identified as CVE-2018-25431, allows an authenticated attacker to inject arbitrary SQL code into database queries. Successful exploitation enables the attacker to extract sensitive information from the database. The vulnerability exists because the application fails to properly sanitize user-supplied input to the order_by parameter, leading to unintended execution of attacker-controlled SQL commands. Defenders should prioritize patching or mitigating this vulnerability to prevent unauthorized data access.
Attack Chain
- An attacker authenticates to the No-CMS 1.0 application.
- The attacker crafts a malicious POST request targeting the
/nocms/main/manage_privilege/index/exportendpoint. - The POST request includes a modified
order_by[0]parameter containing malicious SQL code. - The application receives the request and processes the
order_by[0]parameter without proper sanitization. - The unsanitized SQL code is injected into a database query executed by the application.
- The attacker’s injected SQL code manipulates the query to extract sensitive information.
- The database executes the modified query and returns the results to the application.
- The application displays or otherwise exposes the extracted sensitive information to the attacker.
Impact
Successful exploitation of this SQL injection vulnerability (CVE-2018-25431) can lead to unauthorized access to sensitive data stored in the No-CMS database. This may include user credentials, personal information, financial records, or other confidential data. The impact of this vulnerability is high, as it allows an attacker with low privileges (authenticated user) to potentially compromise the entire database.
Recommendation
- Apply available patches or updates to No-CMS to remediate CVE-2018-25431.
- Deploy the Sigma rule “Detect CVE-2018-25431 Exploitation Attempt — No-CMS SQL Injection via order_by Parameter” to your SIEM to identify malicious POST requests.
- Implement input validation and sanitization measures to prevent SQL injection attacks in the
order_byparameter. - Monitor web server logs for suspicious POST requests to
/nocms/main/manage_privilege/index/exportcontaining SQL syntax in theorder_by[0]parameter (see Sigma rule and logsource). - Review and restrict database user privileges to minimize the impact of successful SQL injection attacks.
Detection coverage 2
Detect CVE-2018-25431 Exploitation Attempt — No-CMS SQL Injection via order_by Parameter
highDetects CVE-2018-25431 exploitation attempt — SQL injection in No-CMS 1.0 via the order_by parameter in POST requests to /nocms/main/manage_privilege/index/export
Detect No-CMS admin panel access
lowDetect access to No-CMS admin panel
Detection queries are available on the platform. Get full rules →