TP-Link CVE-2023-33538 Exploitation Attempts Fail, but Firmware Analysis Confirms Vulnerability

· Original article ↗

Summary

Unit 42 found observed Mirai-like botnet attempts against end-of-life TP-Link routers were flawed, but firmware analysis confirmed authenticated command injection via ssid1 in CVE-2023-33538; default credentials may enable exploitation.

Key points

  • Telemetry showed automated attempts against several end-of-life TP-Link router models, but the observed requests used the wrong parameter, lacked authentication, or relied on unavailable utilities.
  • Firmware emulation and reverse engineering confirmed command injection through the ssid1 parameter at /userRpm/WlanNetworkRpm.htm.
  • Exploitation requires authenticated access to the router's web interface; the researchers identified default credentials in the analyzed firmware.
  • In emulation, researchers confirmed injected commands could modify a boot script, demonstrating potential persistence; a reboot command could also cause denial of service.
  • The analyzed arm7 binary was Mirai-like and included command-and-control, binary-update, and HTTP-serving capabilities for distributing payloads across architectures.
  • The affected devices are end-of-life, and TP-Link said no patches are available; its recommendation is to replace them and avoid default credentials.

Article Details

Attack Vectors
  • CVE-2023-33538 allows command injection through the unsanitized ssid1 parameter in authenticated GET requests to /userRpm/WlanNetworkRpm.htm. The researchers confirmed command execution in emulated TL-WR940N v4 firmware.
  • The observed scans attempted to use admin:admin credentials, download an ELF payload such as arm7, change its permissions, and execute it. The article reports that most observed attempts failed because they used ssid instead of ssid1 and relied on wget, which was absent from the tested firmware.
  • The Mirai-like arm7 binary communicates with hard-coded C2 infrastructure, downloads multi-architecture updates, and serves malware binaries over HTTP to other devices.
Defensive Notes
  • TP-Link stated that the affected devices are end-of-life and have no vendor patches available; it recommends replacing them with supported hardware and not using default credentials.
  • Palo Alto Networks said Advanced URL Filtering and Advanced DNS Security identify known malicious URLs and domains associated with the campaign, and that Advanced WildFire analysis was updated with the shared indicators.

Indicators of compromise

TypeIndicatorContext
DOMAINbot[.]ddosvps[.]ccAttacker-used domain hosting top1hbt malware binaries and associated with C2 infrastructure.
DOMAINcnc[.]vietdediserver[.]shopDomain identified as malicious and associated with Mirai-like botnet C2 infrastructure.
IPV451[.]38[.]137[.]113Attacker-used host that served malware binaries and was hard-coded as C2 infrastructure in the Mirai-like samples.
SHA2563fbd2a2e82ceb5e91eadbad02cb45ac618324da9b1895d81ebe7de765dca30e7SHA-256 hash of the malicious arm payload.
SHA2564caaa18982cd4056fead54b98d57f9a2a1ddd654cf19a7ba2366dfadbd6033daSHA-256 hash of the malicious arm5 payload.
SHA256534b654531a6a540a144da9545ee343e1046f843d7de4c1091b46c3ee66a508bSHA-256 hash of the malicious mips payload.
SHA25656f21f412e898ad9e3ee05d5f44c44d9d7bcb9ecbfbdb9de11b8fa5a637aeef6SHA-256 hash of the malicious x86_64 payload.
SHA2567bbb21fec19512d932b7a92652ed0c8f0fedea89f34b9d6f267cf39de0eb9b20SHA-256 hash of the malicious arm7 payload, described as a Mirai variant.
SHA256919f292a07a37f163f88527e725406187c8ecc637387ad24853fe49ce4e6ddf4SHA-256 hash of the malicious sh4 payload.
SHA2569df711c3aef2bba17b622ddfd955452f8d8eb55899528fbc13d9540c52f13402SHA-256 hash of the malicious arm6 payload.
URLhxxp[:]//51[.]38[.]137[.]113/armMalware payload-download URL for the arm binary.
URLhxxp[:]//51[.]38[.]137[.]113/arm5Malware payload-download URL for the arm5 binary.
URLhxxp[:]//51[.]38[.]137[.]113/arm6Malware payload-download URL for the arm6 binary.
URLhxxp[:]//51[.]38[.]137[.]113/arm7Malware payload-download URL for the arm7 binary.
URLhxxp[:]//51[.]38[.]137[.]113/mipsMalware payload-download URL for the mips binary.
URLhxxp[:]//51[.]38[.]137[.]113/sh4Malware payload-download URL for the sh4 binary.
URLhxxp[:]//51[.]38[.]137[.]113/x86_64Malware payload-download URL for the x86_64 binary.
URLhxxp[:]//bot[.]ddosvps[.]cc/top1hbt[.]armMalware payload-download URL for the top1hbt.arm binary.
URLhxxp[:]//bot[.]ddosvps[.]cc/top1hbt[.]arm5Malware payload-download URL for the top1hbt.arm5 binary.
URLhxxp[:]//bot[.]ddosvps[.]cc/top1hbt[.]arm6Malware payload-download URL for the top1hbt.arm6 binary.
URLhxxp[:]//bot[.]ddosvps[.]cc/top1hbt[.]arm7Malware payload-download URL for the top1hbt.arm7 binary.
URLhxxp[:]//bot[.]ddosvps[.]cc/top1hbt[.]mipsMalware payload-download URL for the top1hbt.mips binary.
URLhxxp[:]//bot[.]ddosvps[.]cc/top1hbt[.]mpslMalware payload-download URL listed in the article's threat-infrastructure indicators.
URLhxxp[:]//bot[.]ddosvps[.]cc/top1hbt[.]sh4Malware payload-download URL for the top1hbt.sh4 binary.
URLhxxp[:]//bot[.]ddosvps[.]cc/top1hbt[.]x86_64Malware payload-download URL for the top1hbt.x86_64 binary.

MITRE ATT&CK

CVE

Malware

Vendors

Products

Tools

Related Articles