VikRentCar Car Rental Management System <= 1.4.10 - Authenticated (Contributor+) SQL Injection via 'catid' Block Attribute
Impact
The VikRentCar Car Rental Management System plugin for WordPress is vulnerable to blind SQL Injection via the 'catid' parameter in all versions up to, and including, 1.4.10 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 contributor-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. A Contributor-level user can store a malicious block via the REST API in a…
Source excerpt · WordfenceAffected packages
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
e4jvikwp · VikRentCar Car Rental Management System
Other versions: unaffected
| Version / range | Source status |
|---|---|
| 0 through 1.4.10 (inclusive) | affected |
Original source description
The VikRentCar Car Rental Management System plugin for WordPress is vulnerable to blind SQL Injection via the 'catid' parameter in all versions up to, and including, 1.4.10 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 contributor-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. A Contributor-level user can store a malicious block via the REST API in a pending post and trigger server-side rendering by previewing that post, bypassing wp_magic_quotes since the attribute is sourced from post_content via parse_blocks rather than a superglobal.
References
- Security advisory www.wordfence.com/threat-intel/vulnerabilities/id/c956f1d0-f3fc-4da2-b6d8-3a294a033f3c
- Source reference plugins.trac.wordpress.org/browser/vikrentcar/tags/1.4.10/modules/mod_vikrentcar_cars/helper.php
- Source reference plugins.trac.wordpress.org/browser/vikrentcar/tags/1.4.10/libraries/adapter/module/widget.php
- Source reference plugins.trac.wordpress.org/browser/vikrentcar/tags/1.4.11/modules/mod_vikrentcar_cars/helper.php