CVE-2025-5628 in Food Menu Managerinfo

Summary

by MITRE • 06/05/2025

A vulnerability, which was classified as problematic, has been found in SourceCodester Food Menu Manager 1.0. Affected by this issue is some unknown functionality of the file /index.php of the component Add Menu Handler. The manipulation of the argument name/description leads to cross site scripting. The attack may be launched remotely. The exploit has been disclosed to the public and may be used.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 06/06/2025

CVE-2025-5628 represents a cross site scripting vulnerability within the SourceCodester Food Menu Manager version 1.0 application. This weakness specifically affects the Add Menu Handler functionality accessible through the /index.php file, where user input parameters including name and description fields are not properly sanitized before being processed and rendered back to users. The vulnerability stems from insufficient input validation and output encoding mechanisms that fail to neutralize malicious script code injected through the vulnerable parameters.

The technical flaw resides in the application's failure to implement proper sanitization controls for user-supplied data entering the system through the menu creation interface. When an attacker submits malicious payloads through the name or description fields, these inputs are directly incorporated into the application's response without adequate filtering or encoding. This creates an environment where attacker-controlled javascript code can be executed within the context of other users' browsers, potentially leading to session hijacking, credential theft, or further exploitation of the victim's browser session.

This vulnerability operates under the Common Weakness Enumeration category CWE-79 which specifically addresses Cross Site Scripting flaws in web applications. The attack vector is remotely exploitable as demonstrated by the public disclosure of the exploit, meaning malicious actors can target users without requiring physical access to the system or local network presence. The remote nature of the exploit significantly increases the attack surface and potential impact scope, as users can be compromised simply by visiting the vulnerable application or interacting with maliciously crafted menu entries.

The operational impact of this vulnerability extends beyond simple script execution, potentially allowing attackers to perform unauthorized actions on behalf of authenticated users. An attacker could craft malicious menu entries that, when viewed by other users, would execute malicious code in their browsers. This could lead to session theft, data exfiltration, or even the redirection of users to phishing sites. The disclosure of the exploit to the public community means that this vulnerability is actively being used in the wild, increasing the urgency for remediation.

Mitigation strategies should focus on implementing robust input validation and output encoding mechanisms throughout the application. The primary defense involves sanitizing all user inputs before processing and ensuring that all dynamic content is properly encoded when rendered to users. Implementing Content Security Policy headers can provide additional protection against script execution. The application should also employ proper parameter validation and escape all output to prevent malicious code from being executed in browser contexts. Regular security testing and code reviews should be conducted to identify and remediate similar vulnerabilities in other application components, particularly focusing on areas where user input is processed and displayed.

Responsible

VulDB

Disclosure

06/05/2025

Moderation

accepted

CPE

ready

Exploit

Download

EPSS

0.00270

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!