CVE-2025-40682
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-07-29

Last updated on: 2025-08-04

Assigner: Spanish National Cybersecurity Institute, S.A. (INCIBE)

Description
SQL injection vulnerability in Human Resource Management System version 1.0, which allows an attacker to retrieve, create, update and delete databases via the “city” and “state” parameters in the /controller/ccity.php endpoint.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-07-29
Last Modified
2025-08-04
Generated
2026-05-27
AI Q&A
2025-07-29
EPSS Evaluated
2026-05-25
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
oretnom23 human_resource_management_system 1.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
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?

This vulnerability is a SQL injection in the Human Resource Management System version 1.0. It occurs in the /controller/ccity.php endpoint through the 'city' and 'state' parameters. An attacker with low privileges can exploit this flaw to retrieve, create, update, and delete database records without authorization. [1]


How can this vulnerability impact me? :

This vulnerability can have a severe impact as it allows an attacker to manipulate the database directly. They can access sensitive data, modify or delete records, and potentially disrupt the normal operation of the system. This can lead to data breaches, loss of data integrity, and operational downtime. [1]


How can this vulnerability be detected on my network or system? Can you suggest some commands?

This SQL injection vulnerability can be detected by testing the /controller/ccity.php endpoint, specifically the "city" and "state" parameters, for SQL injection flaws. Common detection methods include sending crafted HTTP requests with SQL injection payloads to these parameters and observing the responses for database errors or unexpected behavior. For example, using curl commands to inject SQL syntax such as single quotes or SQL keywords into the parameters can help identify the vulnerability. Example commands: 1) curl -G "http://<target>/controller/ccity.php" --data-urlencode "city=' OR '1'='1" --data-urlencode "state=test" 2) curl -G "http://<target>/controller/ccity.php" --data-urlencode "city=test" --data-urlencode "state=' OR '1'='1" Monitoring for error messages or abnormal responses can indicate the presence of the vulnerability. [1]


What immediate steps should I take to mitigate this vulnerability?

Immediate mitigation steps include restricting access to the vulnerable endpoint /controller/ccity.php to trusted users only, applying input validation and sanitization on the "city" and "state" parameters to prevent SQL injection, and monitoring logs for suspicious activity targeting these parameters. Since no patches or solutions have been reported yet, consider implementing Web Application Firewall (WAF) rules to block SQL injection attempts and limiting privileges of users interacting with the system to reduce potential impact. [1]


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart