CVE-2025-51045
BaseFortify
Publication date: 2025-07-29
Last updated on: 2025-08-07
Assigner: MITRE
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| phpgurukul | pre-school_enrollment_system | 1.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-89 | The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
CVE-2025-51045 is a SQL injection vulnerability in the Pre-School Enrollment System version 1.0, specifically in the /admin/password-recovery.php file. The issue occurs because the username parameter is not properly validated or sanitized before being used in SQL queries. This allows attackers to inject malicious SQL code, potentially manipulating the database in unauthorized ways without needing to log in. [1]
How can this vulnerability impact me? :
This vulnerability can lead to unauthorized database access, data leakage, data tampering, full system compromise, and potential service disruption. Attackers can exploit it without any authentication, which makes it highly critical. The exploitation can allow attackers to manipulate SQL queries to extract sensitive information or alter data. [1]
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by testing the /admin/password-recovery.php endpoint for SQL injection on the username parameter. Tools like sqlmap can be used to automate detection and database enumeration. Example command: sqlmap -u "http://target/admin/password-recovery.php" --data="username=admin&mobileno=1234567890&newpassword=test&confirmpassword=test&resetpwd=Reset" --risk=3 --level=5 --batch [1]
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include: 1) Implement prepared statements with parameter binding to prevent SQL injection. 2) Enforce strict input validation and filtering on the username parameter to ensure only expected input is accepted. 3) Minimize database user privileges by avoiding use of high-privilege accounts for routine operations. These steps help protect system security and maintain data integrity. [1]