SourceCodester Best House Rental Management System POST Request ajax.php cross-site request forgery
Description
A vulnerability, which was classified as problematic, was found in SourceCodester Best House Rental Management System 1.0. Affected is an unknown function of the file /rental/ajax.php?action=delete_user of the component POST Request Handler. The manipulation leads to cross-site request forgery. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
SourceCodester Best House Rental Management System 1.0's delete_user endpoint lacks CSRF protection, allowing attackers to delete admin accounts by tricking an authenticated user into submitting a crafted request.
Vulnerability
The /rental/ajax.php?action=delete_user endpoint in SourceCodester Best House Rental Management System 1.0 is vulnerable to Cross-Site Request Forgery (CSRF) [1]. This problematic behavior allows an attacker to forge a POST request that deletes a user (specified by the id parameter) without any CSRF token or other origin validation [1]. The endpoint is part of the POST Request Handler component.
Exploitation
An attacker does not need authentication but must trick an authenticated admin user into visiting a malicious page or clicking a crafted link [1]. The attacker crafts an HTML form that auto-submits a POST request to http://localhost/rental/ajax.php?action=delete_user with a body parameter id=<target_user_id> [1]. When the victim, who has an active session, loads the attacker's page, the form submission triggers the deletion of the specified user account [1]. The attacker can set the id parameter to any existing user ID, potentially deleting all admin accounts in sequence.
Impact
Successful exploitation results in the unauthorized deletion of admin or user accounts [1]. An attacker could lock out legitimate administrators by deleting all admin accounts, leading to complete administrative lockout, loss of user management capabilities, and severe disruption of business operations [1]. The impact is primarily on availability, as user accounts (including admin accounts) can be removed.
Mitigation
The vendor, SourceCodester, has not yet released a patched version as of the publication date [2]. The recommended mitigation is to implement CSRF protection by using CSRF tokens that validate the authenticity of each request [1]. As no official fix is available, administrators should be aware of the exposure and consider applying a web application firewall rule to block unexpected POST requests to /rental/ajax.php?action=delete_user or disable the endpoint if not needed.
AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2- Range: = 1.0
- Range: 1.0
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
5- github.com/YasserREED/YasserREED-CVEs/blob/main/Best%20house%20rental%20management%20system%20project%20in%20php/Cross-Site%20Request%20Forgery%20(CSRF).mdmitreexploit
- vuldb.commitrethird-party-advisory
- vuldb.commitresignaturepermissions-required
- vuldb.commitrevdb-entry
- www.sourcecodester.commitreproduct
News mentions
0No linked articles in our index yet.