CVE-2024-39784

9.1 CRITICAL

📋 TL;DR

This CVE describes multiple command injection vulnerabilities in the Wavlink AC3000 router's nas.cgi add_dir() functionality. An authenticated attacker can send specially crafted HTTP requests to execute arbitrary commands on the device. This affects Wavlink AC3000 M33A8.V5030.210505 firmware users.

💻 Affected Systems

Products:
  • Wavlink AC3000
Versions: M33A8.V5030.210505
Operating Systems: Embedded Linux
Default Config Vulnerable: ⚠️ Yes
Notes: Requires authenticated access to web interface. Default credentials may increase risk.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full device compromise allowing attacker to install persistent backdoors, pivot to internal networks, steal credentials, or use device as botnet node.

🟠

Likely Case

Attacker gains shell access to router, modifies configurations, intercepts network traffic, or installs malware.

🟢

If Mitigated

Limited impact due to network segmentation, strong authentication controls, and restricted administrative access.

🌐 Internet-Facing: HIGH
🏢 Internal Only: HIGH

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploitation requires authentication but command injection is straightforward once authenticated.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: Not available

Restart Required: Yes

Instructions:

1. Check Wavlink support for firmware updates. 2. Download latest firmware. 3. Backup configuration. 4. Upload firmware via web interface. 5. Reboot device.

🔧 Temporary Workarounds

Disable web administration

all

Disable remote web administration interface

Network segmentation

all

Isolate router on separate VLAN with restricted access

🧯 If You Can't Patch

  • Change default credentials and implement strong authentication
  • Restrict administrative access to specific IP addresses only

🔍 How to Verify

Check if Vulnerable:

Check firmware version in web interface: System Status > Firmware Version

Check Version:

Not applicable - check via web interface

Verify Fix Applied:

Verify firmware version is newer than M33A8.V5030.210505

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to nas.cgi
  • Multiple failed authentication attempts followed by successful login
  • Commands in disk_part parameter

Network Indicators:

  • HTTP POST requests to /cgi-bin/nas.cgi with shell metacharacters
  • Outbound connections from router to unusual destinations

SIEM Query:

source="router_logs" AND uri="/cgi-bin/nas.cgi" AND method="POST" AND (param="disk_part" AND value CONTAINS "|" OR value CONTAINS ";" OR value CONTAINS "`" OR value CONTAINS "$")

🔗 References

📤 Share & Export