CVE-2025-7159
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?
CVE-2025-7159 is a SQL injection vulnerability in the PHPGurukul Zoo Management System version 2.1, specifically in the /admin/manage-animals.php file. The vulnerability arises because the 'id' parameter is used directly in SQL queries without proper sanitization or validation, allowing attackers to inject malicious SQL code. This enables attackers to manipulate SQL queries and perform unauthorized database operations remotely. [1, 2]
How can this vulnerability impact me? :
Exploiting this vulnerability allows attackers to access, modify, or delete sensitive data in the database. They can perform unauthorized database operations, potentially gaining full system control and disrupting services. This can lead to data breaches, loss of data integrity, and service outages. [2]
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by testing the "id" parameter in the /admin/manage-animals.php file for SQL injection. A proof-of-concept command involves sending a crafted HTTP GET request with a time-based blind SQL injection payload, such as: GET /zms/admin/manage-animals.php?id=9' RLIKE (SELECT 3794 FROM (SELECT(SLEEP(5)))vIYx)-- HYME&del=delete HTTP/1.1 Host: <target_host> Alternatively, automated tools like sqlmap can be used to detect and exploit the vulnerability by targeting the "id" parameter to confirm SQL injection presence. [2]
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include: 1. Employ prepared statements with parameter binding to separate SQL code from user input, preventing SQL injection. 2. Implement strict input validation and filtering on the "id" parameter to ensure inputs conform to expected formats. 3. Minimize database user permissions by avoiding the use of elevated privilege accounts (such as root or admin) for routine database operations. These measures help protect system security and maintain data integrity. [2]