CVE-2025-3825 Details
Description
A vulnerability, which was classified as problematic, has been found in SourceCodester Web-based Pharmacy Product Management System 1.0. Affected by this issue is some unknown functionality of the file add-category.php. The manipulation of the argument txtcategory_name leads to cross site scripting. The attack may be launched remotely. The exploit has been disclosed to the public and may be used.
A stored cross-site scripting vulnerability has been identified in SourceCodester Web-Based Pharmacy Product Management System version 1.0. The issue arises in the file add-category.php, where user input from the txtcategory_name field is not properly sanitized before being displayed. This allows attackers to inject malicious scripts that are executed when the affected page is viewed. The vulnerability can be exploited remotely, affecting all users who access the compromised page.
To address this vulnerability, implement proper output encoding for user input using functions like htmlspecialchars() before displaying it. Additionally, validate input to ensure it meets expected formats, such as using regular expressions for email fields. Consider adopting a web security framework that handles XSS protection automatically, and provide security training for developers on best practices for input validation and output encoding.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 21, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/yaklang/IRifyScanResult/blob/main/Web-based%20Pharmacy%20Product%20Management%20System/xss_from_input_with_post.md | [email protected] | Exploit |
| https://vuldb.com/?ctiid.305732 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.305732 | [email protected] | Third Party AdvisoryVDB Entry |
| https://www.sourcecodester.com/ | [email protected] | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| senior-walter web-based pharmacy product management system | 1.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 30, 2025 | Initial Analysis | [email protected] |
| Apr 20, 2025 | New CVE Received | [email protected] |