Event Tickets and Registration <= 5.29.5 - Authenticated (Contributor+) SQL Injection via 'orderby' Parameter
What fixes it
No source in this snapshot names a fixed version.
Description
The Event Tickets and Registration plugin for WordPress is vulnerable to generic SQL Injection via the 'orderby' parameter in all versions up to, and including, 5.29.5 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 reach the vulnerable code path by supplying a post_id they authored, as the can_access_page() gate requires only post authorship rather than the edit_others_posts capability for post owners.
Text from CVE List
Affected versions 1
- Event Tickets and Registrationaffected: all versions through 5.29.5CVE List
References 8
- wordfence.com/threat-intel/vulnerabilities/id/ddf2625a-3fb4-40c3-80e3-2f03fbff6bfd?source=cveReferencevia CVE List
- plugins.trac.wordpress.org/browser/event-tickets/tags/5.29.5/src/Tickets/Commerce/Repositories/Order_Repository.php#L603Referencevia CVE List
- plugins.trac.wordpress.org/browser/event-tickets/tags/5.29.5/common/src/Tribe/Repository/Query_Filters.php#L992Referencevia CVE List
- plugins.trac.wordpress.org/browser/event-tickets/tags/5.29.5/src/Tickets/Commerce/Repositories/Order_Repository.php#L696Referencevia CVE List
- plugins.trac.wordpress.org/browser/event-tickets/tags/5.29.5/src/Tickets/Commerce/Repositories/Order_Repository.php#L822Referencevia CVE List
- plugins.trac.wordpress.org/browser/event-tickets/tags/5.29.5/src/Tickets/Commerce/Admin_Tables/Orders.php#L157Referencevia CVE List
- plugins.trac.wordpress.org/browser/event-tickets/tags/5.29.5/src/Tickets/Commerce/Reports/Orders.php#L253Referencevia CVE List
- plugins.trac.wordpress.org/changeset?reponame=&old=3711578%40event-tickets&new=3711578%40event-ticketsReferencevia CVE List