CVE-2023-24140

9.8 CRITICAL

📋 TL;DR

This vulnerability allows remote attackers to execute arbitrary commands on TOTOLINK CA300-PoE routers by injecting malicious input into the NetDiagPingNum parameter. Attackers can gain full control of affected devices, potentially compromising network security. Organizations using these routers are affected.

💻 Affected Systems

Products:
  • TOTOLINK CA300-PoE
Versions: V6.2c.884
Operating Systems: Embedded router firmware
Default Config Vulnerable: ⚠️ Yes
Notes: Affects the specific firmware version mentioned; other versions may also be vulnerable but unconfirmed.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

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

🟠

Likely Case

Router compromise allowing traffic interception, credential theft, and use as pivot point for further attacks.

🟢

If Mitigated

Limited impact with proper network segmentation and monitoring, though device integrity remains compromised.

🌐 Internet-Facing: HIGH - Routers are typically internet-facing devices, making them directly accessible to attackers.
🏢 Internal Only: MEDIUM - If not internet-facing, still vulnerable to internal threats or compromised internal systems.

🎯 Exploit Status

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

Public proof-of-concept available on GitHub; command injection vulnerabilities are often easily weaponized.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: Unknown

Restart Required: No

Instructions:

Check TOTOLINK vendor website for firmware updates. If available, download latest firmware and apply through router admin interface.

🔧 Temporary Workarounds

Network Segmentation

all

Isolate affected routers from critical network segments

Access Control

all

Restrict access to router admin interface to trusted IPs only

🧯 If You Can't Patch

  • Replace affected devices with patched or different models
  • Implement strict network monitoring and intrusion detection for suspicious router traffic

🔍 How to Verify

Check if Vulnerable:

Check router firmware version in admin interface. If version is V6.2c.884, device is vulnerable.

Check Version:

Login to router admin interface and check firmware version in system settings

Verify Fix Applied:

Verify firmware version has been updated to a version later than V6.2c.884

📡 Detection & Monitoring

Log Indicators:

  • Unusual command execution in router logs
  • Multiple failed authentication attempts followed by successful access
  • Changes to router configuration from unexpected sources

Network Indicators:

  • Unusual outbound connections from router
  • Traffic patterns indicating command and control communication
  • Port scanning originating from router

SIEM Query:

source="router_logs" AND ("command injection" OR "NetDiagPingNum" OR suspicious_command=*)

🔗 References

📤 Share & Export