CVE-2025-15551

5.6 MEDIUM

📋 TL;DR

This vulnerability allows attackers to execute arbitrary JavaScript code on affected TP-Link router admin portals via Man-in-the-Middle attacks. The router's web interface improperly uses eval() without validation on responses, enabling code execution. Users of specific TP-Link router models with vulnerable firmware are affected.

💻 Affected Systems

Products:
  • TP-Link Archer MR200
  • TP-Link Archer C20
  • TP-Link TL-WR850N
  • TP-Link TL-WR845N
Versions: v5.2 for MR200, v6 for C20, v3 for WR850N, v4 for WR845N
Operating Systems: Router firmware
Default Config Vulnerable: ⚠️ Yes
Notes: Vulnerability exists in web interface response handling; all configurations using affected firmware versions are vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete router compromise allowing attacker to change DNS settings, intercept all network traffic, install persistent backdoors, or disable security features.

🟠

Likely Case

Session hijacking, credential theft, network traffic redirection, or router configuration changes leading to further network compromise.

🟢

If Mitigated

Limited impact if HTTPS is enforced and network segmentation isolates router management interface.

🌐 Internet-Facing: MEDIUM - Requires MitM position but router admin portals often accessible from LAN only.
🏢 Internal Only: HIGH - Attackers on local network can exploit via ARP poisoning or compromised devices to gain router control.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: MEDIUM

Exploitation requires MitM position but no authentication needed. JavaScript execution occurs automatically when user visits admin portal.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Check vendor links for latest firmware

Vendor Advisory: https://www.tp-link.com/en/support/download/

Restart Required: Yes

Instructions:

1. Visit TP-Link support page for your router model. 2. Download latest firmware. 3. Log into router admin portal. 4. Navigate to System Tools > Firmware Upgrade. 5. Upload and install new firmware. 6. Router will reboot automatically.

🔧 Temporary Workarounds

Disable remote management

all

Prevents admin portal access from WAN interface

Use wired connection for management

all

Reduces MitM attack surface by avoiding wireless for admin access

🧯 If You Can't Patch

  • Segment router management to dedicated VLAN isolated from user devices
  • Implement HTTPS enforcement and certificate pinning if supported

🔍 How to Verify

Check if Vulnerable:

Check router firmware version in admin portal under System Tools > Firmware Upgrade

Check Version:

Login to router admin portal and navigate to System Tools > Firmware Upgrade

Verify Fix Applied:

Verify firmware version matches latest from TP-Link website and test admin portal functionality

📡 Detection & Monitoring

Log Indicators:

  • Unusual JavaScript execution in router logs
  • Multiple failed login attempts followed by configuration changes

Network Indicators:

  • ARP spoofing detection
  • Unusual DNS queries from router
  • HTTPS to HTTP downgrade attempts

SIEM Query:

source="router_logs" AND (event="eval" OR event="javascript_execution")

🔗 References

📤 Share & Export