Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-5097 Overview
CVE-2024-5097 is a Cross-Site Request Forgery (CSRF) vulnerability [CWE-352] in SourceCodester Simple Inventory System 1.0, developed by Argie. The flaw resides in an unknown function of the file /tableedit.php#page=editprice, where manipulation of the itemnumber argument allows an attacker to forge requests on behalf of an authenticated user. Attackers can exploit the issue remotely without authentication, and the exploit has been publicly disclosed under VulDB identifier VDB-265080.
Critical Impact
Remote attackers can trick authenticated administrators into submitting unintended item price modifications, compromising the integrity of inventory records.
Affected Products
- Argie Simple Inventory System 1.0
- SourceCodester Simple Inventory System (distribution channel)
- /tableedit.php price-edit endpoint
Discovery Timeline
- 2024-05-19 - CVE-2024-5097 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-5097
Vulnerability Analysis
The vulnerability is a classic Cross-Site Request Forgery weakness in the price-editing workflow of Simple Inventory System 1.0. The /tableedit.php endpoint, when invoked with the page=editprice parameter, accepts state-changing requests without validating that the request originated from the application's own user interface.
Because the endpoint does not enforce an anti-CSRF token, origin check, or referer validation, any cross-origin request carrying the authenticated user's session cookie is processed as legitimate. An attacker who entices a logged-in administrator to visit a malicious page can trigger arbitrary item price updates through the itemnumber argument.
The scope of impact is limited to data integrity within the inventory application. There is no direct code execution or data exfiltration path through this flaw.
Root Cause
The root cause is the absence of request-origin validation on a state-changing HTTP endpoint. Simple Inventory System 1.0 does not generate or verify unique per-session CSRF tokens, and it does not inspect the Origin or Referer headers before applying price changes to the backing database.
Attack Vector
Exploitation requires an authenticated administrator to visit attacker-controlled content while an active session is present. The attacker hosts an HTML page containing a hidden form or image tag that issues a crafted request to /tableedit.php#page=editprice with a chosen itemnumber value. The victim's browser automatically attaches the session cookie, and the server performs the price modification. See the GitHub PoC CSRF Analysis and the VulDB #265080 - Detailed Report for the published proof of concept.
Detection Methods for CVE-2024-5097
Indicators of Compromise
- Unexpected or unauthorized changes to item prices in the inventory database, especially outside of normal administrative hours.
- HTTP POST or GET requests to /tableedit.php with page=editprice where the Referer header is absent, external, or does not match the application origin.
- Repeated requests to /tableedit.php originating from the same client session across unrelated referrers.
Detection Strategies
- Deploy a web application firewall (WAF) rule to alert on state-changing requests to /tableedit.php that lack a same-origin Referer or Origin header.
- Enable application-level audit logging for all price modifications, capturing user, timestamp, source IP, and request headers.
- Correlate inventory change events against administrator browsing activity to identify requests not initiated from the application UI.
Monitoring Recommendations
- Monitor web server access logs for anomalous spikes in requests to /tableedit.php with the itemnumber parameter.
- Alert on administrative sessions that generate price-change requests immediately after visiting external domains.
- Review database change logs daily for price edits that cannot be tied to a recorded operator action.
How to Mitigate CVE-2024-5097
Immediate Actions Required
- Restrict access to the Simple Inventory System 1.0 administrative interface to trusted internal networks or VPN users only.
- Require administrators to use a dedicated browser profile for the application to prevent cross-site cookie reuse.
- Terminate active administrator sessions when not in use and enforce short session timeouts.
Patch Information
No vendor patch is listed in the NVD or VulDB references at the time of publication. Operators should consult the VulDB #265080 - Threat Overview for updated remediation status and consider migrating to an actively maintained inventory platform.
Workarounds
- Implement a reverse proxy or WAF rule that rejects requests to /tableedit.php when the Origin or Referer header does not match the application's host.
- Add a server-side anti-CSRF token to all forms that invoke tableedit.php, and validate the token on every state-changing request.
- Enforce the SameSite=Strict attribute on session cookies to prevent browsers from attaching them to cross-site requests.
# Example Nginx configuration to block cross-origin requests to the vulnerable endpoint
location /tableedit.php {
if ($http_referer !~* "^https?://inventory\.internal\.example\.com/") {
return 403;
}
proxy_pass http://backend_inventory;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

