Impact
A reflected cross‑site scripting flaw exists in the add_category.php component of the SourceCodester Online Food Ordering System. By submitting a specially crafted value for the category_title parameter, an attacker can cause arbitrary JavaScript to execute in the browser of any user who views the impacted page. The vulnerability is triggered by remote input and can lead to credential theft, session hijacking, or phishing attacks against site visitors.
Affected Systems
All installations of SourceCodester Online Food Ordering System version 1.0 that expose the admin/add_category.php page. The flaw is located in the Category Management module and affects the anonymous or authenticated usage of that endpoint.
Risk and Exploitability
The CVSS score of 4.8 indicates moderate severity. The EPSS score is not publicly available, and the vulnerability is not currently listed in the CISA KEV catalog, but a public exploit exists. Attackers can trigger the flaw remotely via a crafted HTTP request. Successful exploitation would allow execution of malicious JavaScript in the victim’s browser, potentially compromising personal data, session cookies, and other sensitive information on the same domain.
OpenCVE Enrichment