CVE-2026-30568

Reflected XSS via limit Parameter in SourceCodester Sales and Inventory System

Published Mar 27, 2026 CVSS 3.1 · 4.8 Medium EPSS < 1% KEV · Not listed
Description
A Reflected Cross-Site Scripting (XSS) vulnerability exists in SourceCodester Sales and Inventory System 1.0 in in the view_purchase.php file via the "limit" parameter. The application fails to sanitize the input, allowing remote attackers to inject arbitrary web script or HTML via a crafted URL.

Analysis

AI-generated

Technical impact

This vulnerability is a Reflected Cross‑Site Scripting flaw located in the view_purchase.php file of SourceCodester Sales and Inventory System 1.0. The application accepts a 'limit' query parameter without sanitizing it, so a crafted URL can inject arbitrary JavaScript or HTML. A remote attacker can trigger the execution of the injected script in the victim's browser. The impact of this flaw is that an attacker can perform actions such as stealing session cookies, defacing the site, or injecting malware, thereby compromising the confidentiality and integrity of user data. The weakness is an instance of CWE‑79: Improper Neutralization of Input During Web Page Generation.

Affected Systems

The affected system is the SourceCodester Sales and Inventory System, version 1.0. No other vendors or versions are listed in the vulnerability data. The flaw resides in the view_purchase module, which is built on PHP and serves publicly accessible purchase list pages.

Risk and Exploitability

The CVSS score of 4.8 indicates moderate severity, while an EPSS score of <1% shows that current exploit prevalence is very low. The flaw is not listed in the CISA KEV catalog. Attackers would need to entice a user to visit a malicious URL containing a malicious 'limit' parameter; no authentication or privileged access is required. Exploitation is straightforward for someone with knowledge of XSS techniques, but environmental constraints such as additional input filtering could mitigate risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Add server‑side validation to the 'limit' parameter, ensuring it only accepts numeric values or a predefined whitelist.
  • Apply proper output encoding when rendering user‑supplied data to prevent script execution.
  • Update or patch the application once an official fix is released.
  • If a patch is not immediately available, restrict access to the view_purchase page through authentication or restrict the 'limit' parameter via a firewall rule.
  • Conduct regular security testing and code reviews to detect similar input validation weaknesses.

Generated by OpenCVE AI on March 30, 2026 at 18:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Reflected XSS via limit Parameter in SourceCodester Sales and Inventory System
Type Values Removed Values Added
First Time appeared Ahsanriaz26gmailcom
Ahsanriaz26gmailcom inventory System
CPEs cpe:2.3:a:ahsanriaz26gmailcom:inventory_system:1.0:*:*:*:*:*:*:*
Vendors & Products Ahsanriaz26gmailcom
Ahsanriaz26gmailcom inventory System
Type Values Removed Values Added
Description A Reflected Cross-Site Scripting (XSS) vulnerability exists in SourceCodester Inventory System 1.0 in in the view_purchase.php file via the "limit" parameter. The application fails to sanitize the input, allowing remote attackers to inject arbitrary web script or HTML via a crafted URL. A Reflected Cross-Site Scripting (XSS) vulnerability exists in SourceCodester Sales and Inventory System 1.0 in in the view_purchase.php file via the "limit" parameter. The application fails to sanitize the input, allowing remote attackers to inject arbitrary web script or HTML via a crafted URL.
Type Values Removed Values Added
First Time appeared Sourcecodester
Sourcecodester inventory System
Vendors & Products Sourcecodester
Sourcecodester inventory System
Type Values Removed Values Added
Title Reflected XSS via 'limit' parameter in SourceCodester Inventory System 1.0
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Reflected XSS via 'limit' parameter in SourceCodester Inventory System 1.0
Weaknesses CWE-79
Type Values Removed Values Added
Description A Reflected Cross-Site Scripting (XSS) vulnerability exists in SourceCodester Inventory System 1.0 in in the view_purchase.php file via the "limit" parameter. The application fails to sanitize the input, allowing remote attackers to inject arbitrary web script or HTML via a crafted URL.
References
Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Mar 30, 2026, 2:34 PM
Reserved
Mar 4, 2026, 12:00 AM
Status
Analyzed
Published
Mar 27, 2026, 6:16 PM
Modified
Nov 11, 2026, 7:10 PM