vedees / wcms

🖖 Best CMS for landing-page
Apache License 2.0
252 stars 50 forks source link

Reflected XSS vulnerability in wcms/wcms/wex/cssjs.php #9

Open nenf opened 4 years ago

nenf commented 4 years ago

Hi, dev team!

There is Reflected XSS vulnerability in wcms/wcms/wex/cssjs.php file.

The vulnerable code is:

64: type='<?php echo $_GET['type'];?>'>

Example POC: Just send any js code in type parameter like: type=<script>alert()</script>

Reflected cross-site scripting (or XSS) arises when an application receives data in an HTTP request and includes that data within the immediate response in an unsafe way. If an attacker can control a script that is executed in the victim's browser, then they can typically fully compromise that user.

To prevent xss use next manual: https://portswigger.net/web-security/cross-site-scripting/preventing.

Please let me know about any fixes, I would like to register CVE number.