CVE-2025-7163
BaseFortify
Publication date: 2025-07-08
Last updated on: 2026-04-29
Assigner: VulDB
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| phpgurukul | zoo_management_system | 2.1 |
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. |
| CWE-74 | The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a critical SQL injection flaw in the PHPGurukul Zoo Management System version 2.1, specifically in the /admin/add-animals.php file. It occurs because the 'cnum' parameter is not properly sanitized or validated before being used in SQL queries. Attackers can inject malicious SQL code through this parameter, allowing them to manipulate database queries. This can lead to unauthorized access to the database, data leakage, data tampering, and potentially full control over the system. [1, 2, 3]
How can this vulnerability impact me? :
Exploiting this vulnerability can allow attackers to bypass authorization, extract sensitive information, modify or delete data, and disrupt services. Since the attack can be launched remotely without authentication, it poses a significant risk of unauthorized database access and potential full system compromise. This can result in data breaches, loss of data integrity, and denial of service. [1, 3]
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by testing the 'cnum' parameter in the /admin/add-animals.php file for SQL injection. One method is to use a time-based blind SQL injection payload such as: cnum=12301' AND (SELECT 1255 FROM (SELECT(SLEEP(5)))JCpo)-- JVRp, which causes a delay in the database response if vulnerable. Additionally, the sqlmap tool can be used to automate detection targeting the 'cnum' parameter. Vulnerable targets can also be identified using Google dorking with the query: inurl:admin/add-animals.php. [1, 3]
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include: 1) Implementing prepared statements with parameter binding to separate SQL code from user input, preventing injection; 2) Enforcing strict input validation and filtering to ensure inputs conform to expected formats; 3) Minimizing database user permissions by avoiding the use of high-privilege accounts for routine operations. If possible, replacing the affected software with an alternative product is also suggested. [1, 3]