WeGIA SQL Injection Vulnerability in Dependente Documento Endpoint

Vulnerability

A SQL injection vulnerability has been identified in WeGIA versions prior to 3.5.1. The issue resides in the '/html/funcionario/dependente_documento.php' endpoint, specifically within the 'id_dependente' parameter. This vulnerability allows attackers to execute arbitrary SQL commands, potentially compromising the database's confidentiality, integrity, and availability.

Impact

Exploitation of this vulnerability allows for arbitrary SQL execution, which could lead to unauthorized data access, data manipulation, and disruption of database operations. Additionally, this vulnerability could be exploited to escalate privileges to remote code execution, depending on the database configuration.

Reproduction

To reproduce this vulnerability, send a POST request to the '/html/funcionario/dependente_documento.php' endpoint with a payload in the 'id_dependente' parameter. The payload can be crafted to include SQL injection techniques, such as union-based injections or time-based blind injections. For example, injecting '1 UNION SELECT version()' could be used to extract the database version, demonstrating the vulnerability.

Remediation

Users are advised to update WeGIA to version 3.5.1 or later, where this vulnerability has been patched.

Added: Oct 13, 2025, 10:26 PM
Updated: Oct 13, 2025, 10:26 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
10.0
exploitability
4.2
remediation
7.7
relevance
0.7
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.