Headline
CVE-2023-3023: Changeset 2923668 for wp-easycart/trunk/admin/inc/wp_easycart_admin_table.php – WordPress Plugin Repository
The WP EasyCart plugin for WordPress is vulnerable to time-based SQL Injection via the ‘orderby’ parameter in versions up to, and including, 5.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 administrator-level or above permissions, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
Timestamp:
06/08/2023 11:19:05 PM (5 weeks ago)
levelfourstorefront
Message:
Committing version 5.4.11, check the change log for more info.
File:
- wp-easycart/trunk/admin/inc/wp_easycart_admin_table.php (1 diff)
Legend:
Unmodified
Added
Removed
wp-easycart/trunk/admin/inc/wp_easycart_admin_table.php
r2917958
r2923668
76
76
77
77
if ( isset( $\_GET\['orderby'\] ) && $\_GET\['orderby'\] != '' ) {
78
$this->current\_sort\_column = sanitize\_text\_field( $\_GET\['orderby'\] );
79
}
80
if ( isset( $\_GET\['order'\] ) && $\_GET\['order'\] != '' ) {
81
$this->current\_sort\_direction = sanitize\_key( $\_GET\['order'\] );
78
$this->current\_sort\_column = sanitize\_text\_field( preg\_replace( '/\[^a-zA-Z0-9\\\_\]/', $\_GET\['orderby'\] ) );
79
}
80
if ( isset( $\_GET\['order'\] ) && 'desc' == strtolower( $\_GET\['order'\] ) ) {
81
$this->current\_sort\_direction = 'desc';
82
} else {
83
$this->current\_sort\_direction = 'asc';
82
84
}
83
85
if ( isset( $\_GET\['pagenum'\] ) && $\_GET\['pagenum'\] != '' ) {
Note: See TracChangeset for help on using the changeset viewer.