CVE-2025-45751: n/a in n/a
SourceCodester Web Based Pharmacy Product Management System 1.0 is vulnerable to Cross Site Scripting (XSS) in add-admin.php via the Fullname text field.
AI Analysis
Technical Summary
CVE-2025-45751 is a medium-severity Cross Site Scripting (XSS) vulnerability identified in the SourceCodester Web Based Pharmacy Product Management System version 1.0. The vulnerability exists specifically in the add-admin.php script, where the Fullname text field does not properly sanitize user input. This lack of input validation allows an attacker to inject malicious scripts that execute in the context of the victim's browser when the vulnerable page is viewed. The vulnerability is classified under CWE-79, which pertains to improper neutralization of input during web page generation, leading to XSS. According to the CVSS 3.1 vector (AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N), the attack requires network access with low attack complexity, no privileges, and no user interaction, but it is limited to adjacent network access (AV:A), such as within the same local network or VPN. The impact affects confidentiality and integrity but not availability. No patches or known exploits in the wild have been reported yet. The vulnerability was published on May 5, 2025, and has a CVSS score of 5.4, indicating a medium risk level.
Potential Impact
For European organizations, especially those in the healthcare and pharmaceutical sectors using the SourceCodester Web Based Pharmacy Product Management System, this vulnerability poses a risk of unauthorized script execution within administrative interfaces. Exploitation could lead to theft of sensitive administrative credentials or session hijacking, enabling attackers to manipulate administrative functions or access confidential patient and product data. Given the sensitive nature of healthcare data protected under GDPR, any compromise could result in significant regulatory penalties and reputational damage. The requirement for adjacent network access somewhat limits remote exploitation, but insider threats or compromised internal networks could facilitate attacks. The integrity of administrative data could be undermined, potentially affecting inventory management and patient safety indirectly. Although availability is not impacted, the breach of confidentiality and integrity in a healthcare context is critical.
Mitigation Recommendations
To mitigate this vulnerability, European organizations should implement strict input validation and output encoding on the Fullname field within add-admin.php to neutralize malicious scripts. Employing Content Security Policy (CSP) headers can help restrict the execution of unauthorized scripts. Network segmentation should be enforced to limit access to the administrative interface to trusted hosts only, reducing the risk from adjacent network attackers. Regular security audits and code reviews of web applications should be conducted to identify and remediate similar vulnerabilities. Since no official patch is available, organizations should consider applying custom fixes or using web application firewalls (WAFs) with rules to detect and block XSS payloads targeting this specific endpoint. Additionally, monitoring administrative access logs for unusual activity can help detect exploitation attempts early.
Affected Countries
Germany, France, United Kingdom, Italy, Spain, Netherlands
CVE-2025-45751: n/a in n/a
Description
SourceCodester Web Based Pharmacy Product Management System 1.0 is vulnerable to Cross Site Scripting (XSS) in add-admin.php via the Fullname text field.
AI-Powered Analysis
Technical Analysis
CVE-2025-45751 is a medium-severity Cross Site Scripting (XSS) vulnerability identified in the SourceCodester Web Based Pharmacy Product Management System version 1.0. The vulnerability exists specifically in the add-admin.php script, where the Fullname text field does not properly sanitize user input. This lack of input validation allows an attacker to inject malicious scripts that execute in the context of the victim's browser when the vulnerable page is viewed. The vulnerability is classified under CWE-79, which pertains to improper neutralization of input during web page generation, leading to XSS. According to the CVSS 3.1 vector (AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N), the attack requires network access with low attack complexity, no privileges, and no user interaction, but it is limited to adjacent network access (AV:A), such as within the same local network or VPN. The impact affects confidentiality and integrity but not availability. No patches or known exploits in the wild have been reported yet. The vulnerability was published on May 5, 2025, and has a CVSS score of 5.4, indicating a medium risk level.
Potential Impact
For European organizations, especially those in the healthcare and pharmaceutical sectors using the SourceCodester Web Based Pharmacy Product Management System, this vulnerability poses a risk of unauthorized script execution within administrative interfaces. Exploitation could lead to theft of sensitive administrative credentials or session hijacking, enabling attackers to manipulate administrative functions or access confidential patient and product data. Given the sensitive nature of healthcare data protected under GDPR, any compromise could result in significant regulatory penalties and reputational damage. The requirement for adjacent network access somewhat limits remote exploitation, but insider threats or compromised internal networks could facilitate attacks. The integrity of administrative data could be undermined, potentially affecting inventory management and patient safety indirectly. Although availability is not impacted, the breach of confidentiality and integrity in a healthcare context is critical.
Mitigation Recommendations
To mitigate this vulnerability, European organizations should implement strict input validation and output encoding on the Fullname field within add-admin.php to neutralize malicious scripts. Employing Content Security Policy (CSP) headers can help restrict the execution of unauthorized scripts. Network segmentation should be enforced to limit access to the administrative interface to trusted hosts only, reducing the risk from adjacent network attackers. Regular security audits and code reviews of web applications should be conducted to identify and remediate similar vulnerabilities. Since no official patch is available, organizations should consider applying custom fixes or using web application firewalls (WAFs) with rules to detect and block XSS payloads targeting this specific endpoint. Additionally, monitoring administrative access logs for unusual activity can help detect exploitation attempts early.
Affected Countries
For access to advanced analysis and higher rate limits, contact root@offseq.com
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- mitre
- Date Reserved
- 2025-04-22T00:00:00.000Z
- Cisa Enriched
- true
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 682d981ac4522896dcbd8fda
Added to database: 5/21/2025, 9:08:42 AM
Last enriched: 7/5/2025, 10:39:47 AM
Last updated: 11/22/2025, 9:02:05 PM
Views: 28
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
China-Linked APT31 Launches Stealthy Cyberattacks on Russian IT Using Cloud Services
MediumCVE-2025-2655: SQL Injection in SourceCodester AC Repair and Services System
MediumCVE-2023-30806: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Sangfor Net-Gen Application Firewall
CriticalCVE-2024-0401: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in ASUS ExpertWiFi
HighCVE-2024-23690: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Netgear FVS336Gv3
HighActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need enhanced features?
Contact root@offseq.com for Pro access with improved analysis and higher rate limits.