header-logo
Suggest Exploit
vendor:
WeBid
by:
Saif El-Sherei
8.8
CVSS
HIGH
persistent XSS through SQLi
89
CWE
Product Name: WeBid
Affected Version From: 1.0.2
Affected Version To: 1.0.2
Patch Exists: NO
Related CWE: N/A
CPE: a:webid:webid:1.0.2
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Firefox 4, XAMPP
2011

persistent XSS through SQLi WeBid 1.0.2

An attacker could inject malicious HTML/JS through a SQL injection flow in the adsearch.php. The SQL injection flaw exists in the 'maxprice' field. The SQL injection attack cannot be elevated, so the attacker leverages the SQL injection to trigger an error that would write the malicious HTML/JS to the error log. The XSS attack happens when the admin or any user capable of viewing the error log from the ACP.

Mitigation:

Ensure that user input is properly sanitized and validated before being used in SQL queries.
Source

Exploit-DB raw data:

# Exploit Title: presistent XSS through SQLi WeBid 1.0.2
# Google Dork: "powered by WeBid"
# Date: 15-06-2011
# Author: Saif El-Sherei
# Software Link: http://sourceforge.net/projects/simpleauction/
# Version: 1.0.2
# Tested on: Firefox 4, XAMPP


Info:

Open source php/mysql fully featured auction script. Perfect for those who
want to start their own auction site.

Details:

an attacker could inject malicous HTML/JS through a SQL injection flow in
the adsearch.php. the SQl injection flaw exist in the "maxprice" field (see
POC I). the SQL

injection attack cannot be elevated, so we leverage the SQL injection to
trigger an error that would write our malicious HTML/JS to the error log.
the XSS attack

happens when the admin or any user capable of viewing the error log from the
ACP.

POC I (SQL injection):

'0') ----> this will trigger the error
'0') OR (1)=(1 ------> will not trigger error


POC II (XSS through SQLi):


'0') <script>alert('XSS');</script>

Time Line:

15-06-2011 Vulnerability discovered
15-06-2011 Vendor notified
17-06-2011 No response from vendor, public disclosure



Regards,


Saif el-Sherei

OSCP