SQL Injection in code-projects Content Management System
A SQL injection vulnerability in the user_name parameter of the login.php file in code-projects Content Management System 1.0 allows for remote, unauthenticated command execution.
CVE search metadata
CVE search record: CVE-2026-86168. Severity: high. CVSS: 7.3. KEV: no. Product: Content Management System (1.0). Brief: SQL Injection in code-projects Content Management System. Brief link: https://feed.craftedsignal.io/briefs/2026-09-cve-2026-86168/
A critical SQL injection vulnerability, identified as CVE-2026-86168, affects version 1.0 of the code-projects Content Management System. The vulnerability resides within the user_name argument in the /login.php endpoint, which fails to adequately sanitize user-supplied input before incorporating it into database queries. An attacker can exploit this flaw remotely without authentication to execute arbitrary SQL commands, potentially leading to unauthorized data access, modification, or administrative privilege escalation. Proof-of-concept exploit code is currently available in the public domain, increasing the likelihood of opportunistic exploitation against vulnerable instances. Organizations running this specific CMS version are at high risk of compromise and should prioritize remediation efforts to prevent potential exfiltration of database contents.
Attack Chain
- Attacker conducts reconnaissance to identify targets running code-projects Content Management System 1.0.
- Attacker crafts an HTTP POST request targeting the /login.php endpoint.
- Attacker injects malicious SQL payloads into the user_name parameter field.
- The web server passes the unsanitized input directly to the backend database query.
- The database executes the injected SQL commands, allowing the attacker to bypass authentication.
- The application returns the results of the injected queries in the HTTP response or confirms execution status.
- Attacker extracts data from the database or manipulates records to gain unauthorized administrative access.
Impact
Successful exploitation of this vulnerability allows for unauthorized access to the application's underlying database. This may result in full database exfiltration, including user credentials, configuration data, and sensitive application content. As this is a public-facing remote vulnerability, any organization hosting version 1.0 of this CMS is susceptible to potential data breach and site compromise.
Recommendation
- Immediately restrict access to the /login.php endpoint for code-projects Content Management System 1.0 until a patch is applied.
- Deploy Web Application Firewall (WAF) signatures to detect and block common SQL injection patterns targeting the user_name parameter.
- Monitor web server access logs for anomalous HTTP POST requests to /login.php containing SQL syntax characters (e.g., ', --, UNION, SELECT, OR 1=1).
- Upgrade the application to a secure version if available; otherwise, implement input validation logic to sanitize the user_name parameter on the server side.
Immediate actions
Deploy WAF rule to block SQL injection payloads directed at /login.php
Threat Hunt
Search logs for 404 or 500 status codes accompanying POST requests to /login.php following successful or unsuccessful exploitation
Data: Web server logs
Mitigations
Patch or upgrade code-projects Content Management System
CVE-2026-86168
Detection coverage 1
Detects CVE-2026-86168 Exploitation - SQL Injection in login.php
highDetects potential SQL injection attempts targeting the user_name parameter in /login.php
Detection queries are available on the platform. Get full rules →