Projectworlds Expense Management System Cross-Site Scripting Vulnerability

Vulnerability

A critical persistent cross-site scripting (XSS) vulnerability exists in version 1.0 of the Projectworlds Expense Management System. The issue is located in the Users Page, specifically within the file '/public/admin/users/create'. This vulnerability allows authenticated attackers to inject malicious scripts that are stored in the application's database and executed in the browsers of users who view the affected pages, including administrators.

Impact

Exploitation of this vulnerability allows attackers to hijack user sessions by stealing session cookies, which can be used to impersonate the victim and perform actions on their behalf. Additionally, injected scripts could be used for phishing attacks, keystroke logging, or defacing the website.

Reproduction

To reproduce this vulnerability, log into the application and navigate to the 'Add Users' page. Once there, fill out the form with valid information, but insert a JavaScript payload into one of the text fields, such as 'Name'. After submitting the form, the payload will be stored in the database. The XSS vulnerability can be triggered by accessing the page as any user, including an administrator, and clicking 'Print', which will execute the injected script in the browser.

Remediation

To address this vulnerability, it is recommended to encode output from user-controlled data before rendering it in HTML. This can be done by using the 'htmlspecialchars()' function to convert special characters into HTML entities, preventing the browser from interpreting them as code.

Added: Oct 27, 2025, 6:21 AM
Updated: Oct 27, 2025, 2:38 PM

Vulnerability Rating

Custom Algorithm
spread
0.8
impact
5.4
exploitability
6.3
remediation
0.0
relevance
0.8
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.