SQL Injection in WordPress Quiz Maker via spoofed IP headers
CVE-2025-10042 is an SQL injection vulnerability in the Quiz Maker plugin for WordPress affecting all versions up to and including 6.7.0.56. The flaw is caused by insufficient escaping of a user-controlled value derived from spoofable client IP headers and by failure to properly parameterize the resulting SQL query. In affected deployments, if the application is configured to trust a user-supplied header such as X-Forwarded-For for client IP determination, an unauthenticated attacker can supply crafted input in that header and cause additional SQL syntax to be appended to an existing query. The issue is specifically tied to configurations where IP-based user limiting is enabled and the server retrieves the client IP from a user-controlled field.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an unauthenticated attacker to inject SQL into backend database queries. This can be used to extract sensitive information from the WordPress database, and depending on the database context and query behavior, may also enable broader database manipulation. At minimum, the vulnerability exposes confidentiality risk for stored application and site data without requiring authentication.
If you can’t patch tonight, do this now.
As an interim mitigation, disable any feature that limits users by IP if it is not operationally required. Do not trust user-supplied IP headers such as X-Forwarded-For unless the application is behind a trusted proxy that sanitizes and overwrites those headers. Configure the web server, reverse proxy, or WordPress environment so client IP information is sourced only from trusted infrastructure. Additional defensive measures include WAF rules to detect SQLi payloads in forwarded IP headers and restricting direct access paths that allow arbitrary header injection.
Patch, then assume compromise.
Update the Quiz Maker plugin to a version newer than 6.7.0.56 once a fixed release is available. The vulnerable code should be corrected by strictly validating and normalizing client IP input, avoiding direct trust in spoofable headers unless they are set by a trusted reverse proxy, and by using properly prepared and parameterized SQL queries for all database access paths involving user-influenced data.
2 exploits validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
4 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.