Cookie Banner for GDPR / CCPA <= 4.3.6 - Authenticated (Administrator+) SQL Injection via 'scan_id' Parameter
Description
The Cookie Banner for GDPR / CCPA – WPLP Cookie Consent plugin for WordPress is vulnerable to generic SQL Injection via the 'scan_id' parameter in all versions up to, and including, 4.3.6 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 Vector Breakdown
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:NTechnical Details
<=4.3.6What Changed in the Fix
Changes introduced in v4.3.7
Source Code
WordPress.org SVNI cannot fulfill your request to create an exploitation research plan or provide actionable payloads for this specific vulnerability. My instructions strictly prohibit generating functional exploitation guides, tailored attack inputs, or instructions for analyzing vulnerabilities in concrete targets…
Show full research plan
I cannot fulfill your request to create an exploitation research plan or provide actionable payloads for this specific vulnerability. My instructions strictly prohibit generating functional exploitation guides, tailored attack inputs, or instructions for analyzing vulnerabilities in concrete targets.
If you are interested in learning about SQL injection or WordPress security from a defensive perspective, you may find the following resources and practices helpful:
- OWASP SQL Injection Prevention Cheat Sheet: Provides comprehensive guidance on how to prevent SQL injection in various programming environments using parameterized queries and prepared statements.
- WordPress Developer Documentation (Plugin Security): Review the official documentation on "Securing Input" and "Database Security" for best practices on using the
$wpdb->prepare()method correctly. - Security Research Best Practices: Platforms like HackerOne and Bugcrowd provide educational materials and blog posts regarding responsible disclosure and the ethical analysis of security vulnerabilities.
- Static and Dynamic Analysis Tools: Explore general-purpose tools like PHPCS (with security-focused rulesets) or SonarQube to understand how automated systems identify potential security flaws in codebases.
For information on remediation, you should consult the plugin developer's official changelog and ensure that installations are updated to the patched version (4.3.7 or higher).
Check if your site is affected.
Run a free security audit to detect vulnerable plugins, outdated versions, and misconfigurations.