Where
-Infinity
0
Severity
6.5
SQL Injection
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

The InfiniteWP Client plugin for WordPress is vulnerable to SQL Injection via the getcomments action in versions up to, and including, 1.13.9. This is due to insufficient escaping on the array-key names supplied in the JSON request body before use in a SQL statement: IWPMMBComment::getcomments() calls extract() on $args (which silently skips keys that are not valid PHP variable names) but a second foreach($args as $checkbox => $checkboxval) processes every key, strips the 'iwpgetcomments' prefix with strreplace(), wraps the remainder in single quotes, and imploded it into an IN(...) clause that is executed via $wpdb->getresults() with no prepare(). Because the request body is read from php://input and JSON-decoded, wpmagicquotes() never touches the data, so quote characters in keys pass through unaltered. This makes it possible for authenticated attackers, with administrator-level access and above (an administrator can register their own public key via addsite using the plugin's WP-admin-generated activationkey and then issue signed getcomments requests), to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.

First published (updated )

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203