CVE-2023-46413

9.8 CRITICAL

📋 TL;DR

This vulnerability allows remote attackers to execute arbitrary commands on TOTOLINK X6000R routers via the sub_4155DC function. Attackers can gain full control of affected devices, potentially compromising network security. All users running the vulnerable firmware version are affected.

💻 Affected Systems

Products:
  • TOTOLINK X6000R
Versions: v9.4.0cu.652_B20230116
Operating Systems: Embedded Linux (router firmware)
Default Config Vulnerable: ⚠️ Yes
Notes: Only this specific firmware version is confirmed vulnerable. Other versions may also be affected but not confirmed.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete device takeover leading to network compromise, data exfiltration, lateral movement to other devices, and persistent backdoor installation.

🟠

Likely Case

Router compromise allowing traffic interception, DNS hijacking, credential theft, and use as attack platform.

🟢

If Mitigated

Limited impact if device is behind firewall with restricted WAN access and proper network segmentation.

🌐 Internet-Facing: HIGH - Routers are typically internet-facing devices, making them directly accessible to attackers.
🏢 Internal Only: MEDIUM - Internal attackers could exploit if they gain network access, but external exposure is primary concern.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Public GitHub repository contains technical details and proof-of-concept. The CWE-77 (Command Injection) nature makes exploitation straightforward.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Check vendor website for latest firmware

Vendor Advisory: https://www.totolink.cn/index.php/home/menu/detail.html?menu_listtpl=download&id=88&ids=36

Restart Required: Yes

Instructions:

1. Visit TOTOLINK support website. 2. Download latest firmware for X6000R. 3. Log into router admin interface. 4. Navigate to System Tools > Firmware Upgrade. 5. Upload and install new firmware. 6. Reboot router.

🔧 Temporary Workarounds

Network Isolation

all

Place router behind firewall with strict inbound rules to limit exposure

Access Restriction

linux

Disable remote management and restrict admin interface to trusted IPs only

iptables -A INPUT -p tcp --dport 80 -s TRUSTED_IP -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j DROP

🧯 If You Can't Patch

  • Replace vulnerable device with patched or different model
  • Implement strict network segmentation to isolate router from critical assets

🔍 How to Verify

Check if Vulnerable:

Check firmware version in router admin interface under System Status > Firmware Version

Check Version:

curl -s http://router-ip/cgi-bin/luci/ | grep firmware

Verify Fix Applied:

Confirm firmware version is newer than v9.4.0cu.652_B20230116 after update

📡 Detection & Monitoring

Log Indicators:

  • Unusual command execution in system logs
  • Unexpected process creation
  • Suspicious network connections from router

Network Indicators:

  • Unexpected outbound connections from router
  • DNS queries to malicious domains
  • Port scanning originating from router

SIEM Query:

source="router.log" AND ("command injection" OR "sub_4155DC" OR unusual shell activity)

🔗 References

📤 Share & Export