提交 #918395: Phpgurukul Old Age Home Management System v1.0 SQL Injection信息

标题Phpgurukul Old Age Home Management System v1.0 SQL Injection
描述NAME OF AFFECTED PRODUCT(S) Old Age Home Management System Vendor Homepage https://phpgurukul.com/old-age-home-management-system-using-php-and-mysql/ AFFECTED AND/OR FIXED VERSION(S) submitter 你的vuldb名称 Vulnerable File /admin/profile.php VERSION(S) V1.0 Software Link https://phpgurukul.com/projects/Old-Age-Home-MS-using-PHP.zip PROBLEM TYPE Vulnerability Type SQL injection Root Cause A SQL injection vulnerability was found in the '/admin/profile.php' file of the 'Old Age Home Management System' project. The reason for this issue is that attackers inject malicious code from the parameter 'adminname' and use it directly in SQL queries without the need for appropriate cleaning or validation. This allows attackers to forge input values, thereby manipulating SQL queries and performing unauthorized operations. Impact Attackers can exploit this SQL injection vulnerability to achieve unauthorized database access, sensitive data leakage, data tampering, comprehensive system control, and even service interruption, posing a serious threat to system security and business continuity. DESCRIPTION During the security review of "Old Age Home Management System",I discovered a critical SQL injection vulnerability "/admin/profile.php" file. This vulnerability stems from insufficient user input validation of the 'adminname' parameter, allowing attackers to inject malicious SQL queries. Therefore, attackers can gain unauthorized access to databases, modify or delete data, and access sensitive information. Immediate remedial measures are needed to ensure system security and protect data integrity. No login or authorization is required to exploit this vulnerability Vulnerability details and POC Vulnerability lonameion: 'adminname‘ parameter Payload: PParameter: adminname (POST) Type: time-based blind Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP) Payload: adminname=1' AND (SELECT 4479 FROM (SELECT(SLEEP(5)))SYMc) AND 'gnpI'='gnpI&username=admin&contactnumber=1&[email protected]&submit= The following are screenshots of some specific information obtained from testing and running with the sqlmap tool: sqlmap -u "http://10.20.33.25/oahms/admin/profile.php" --data="adminname=1&username=admin&contactnumber=1&email=admin%40gmail.com&submit=" --dbs Image Suggested repair Use prepared statements and parameter binding: Preparing statements can prevent SQL injection as they separate SQL code from user input data. When using prepare statements, the value entered by the user is treated as pure data and will not be interpreted as SQL code. Input validation and filtering: Strictly validate and filter user input data to ensure it conforms to the expected format. Minimize database user permissions: Ensure that the account used to connect to the database has the minimum necessary permissions. Avoid using accounts with advanced permissions (such as' root 'or' admin ') for daily operations. Regular security audits: Regularly conduct code and system security audits to promptly identify and fix potential security vulnerabilities.
来源⚠️ https://github.com/zyb26252/CVE/issues/3
用户 zybo (UID 82781)
提交2026-08-07 08時24分 (1 月前)
管理2026-09-13 10時43分 (1 month later)
状态重复
VulDB条目303261 [PHPGurukul Old Age Home Management System 1.0 /admin/profile.php adminname/contactnumber SQL注入]
积分0

Interested in the pricing of exploits?

See the underground prices here!