Itsourcecode Online House Rental System SQL Injection Vulnerability

Vulnerability

A SQL injection vulnerability has been identified in the Online House Rental System version 1.0. The issue arises in the '/ajax.php' file, specifically within an unknown function handling the 'login' action. The vulnerability allows remote attackers to inject malicious SQL code through the 'username' parameter, which is then executed in SQL queries without proper validation or sanitization. This flaw could lead to unauthorized database access, data manipulation, and exposure of sensitive information.

Impact

Exploitation of this vulnerability allows for SQL injection, which could be used to access, modify, or delete database information. Additionally, it could lead to unauthorized access to sensitive data or application functionality.

Reproduction

The vulnerability can be reproduced by sending a POST request to '/house_rental/ajax.php' with the 'action' parameter set to 'login'. The 'username' parameter can be manipulated to include SQL injection payloads, such as boolean-based blind, error-based, or time-based blind SQL injection techniques. The 'password' parameter can be set to any value, as it is not relevant to the exploitation of the vulnerability.

Remediation

To address this vulnerability, it is recommended to implement prepared statements and parameter binding to separate SQL code from user input, ensuring that injected data is not executed as part of a SQL command. Additionally, input validation and filtering should be applied to confirm that user data meets expected formats. Minimizing database user permissions and conducting regular security audits can further enhance the application's security.

Added: Jun 1, 2026, 1:26 PM
Updated: Jun 1, 2026, 1:26 PM

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
7.5
exploitability
9.7
remediation
0.0
relevance
9.7
threat
6.4
urgency
2.9
incentive
8.3

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.