WeGIA Reflected Cross-Site Scripting Vulnerability in 'cadastro_funcionario.php' Endpoint

Vulnerability

A reflected cross-site scripting vulnerability has been identified in the WeGIA application, specifically within the 'cadastro_funcionario.php' endpoint. This issue arises because the application does not properly validate and sanitize user inputs in the 'cpf' parameter, allowing attackers to inject malicious scripts. These scripts are then executed in the context of the user's browser. The vulnerability affects WeGIA versions prior to 3.2.6.

Impact

Exploitation of this vulnerability allows for reflected cross-site scripting, where injected scripts are executed in the context of the user's browser.

Reproduction

To reproduce this vulnerability, send a GET request to the 'cadastro_funcionario.php' endpoint with a payload in the 'cpf' parameter that includes a script tag, such as a JavaScript alert. The injected script will be executed in the browser, demonstrating the cross-site scripting vulnerability.

Remediation

Users are advised to upgrade to WeGIA version 3.2.6 or later.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
3.5
exploitability
5.8
remediation
7.7
relevance
0.0
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.