ADVERTISEMENT

‘Amazon’s Choice’ best-selling TP-Link router ships with vulnerable firmware

TP-Link ships with vulnerable firmware
Edvardas Mikalauskas
Edvardas Mikalauskas Senior Researcher
September 2, 2021 Updated: February 21, 2023 7 min read
router-amazon
Shockingly, it also ships with an outdated version of firmware that is susceptible to numerous known security vulnerabilities.

What we discovered

  • The router is shipped with outdated firmware that is vulnerable to dozens of known security flaws.
  • WPS is enabled by default, potentially allowing threat actors to brute-force the router.
  • Session tokens are not deleted server-side after logging out of the router app and are accepted for subsequent authorization procedures.
  • The router’s administrator credentials and configuration backup files are encrypted using weak protocols and can be easily decrypted by attackers.
  • The default version of the router’s web interface app suffers from multiple bad security practices and vulnerabilities, including clickjacking, charset mismatch, cookie slack, private IP disclosures, weak HTTPS encryption, and more.

Numerous known vulnerabilities in the default firmware version

  • Most likely present
  • Likely present
  • Possibly present
  • Unexploitable
vulnerabilities-in-tplink-router
  • The ‘Use-after-free’ vulnerability allows potential threat actors to mount Denial of Service attacks against the router by removing a network namespace.
  • The ‘PPPoL2TP’ feature allows potential attackers to gain privileges on the network by leveraging data-structure differences between the router’s sockets.
  • Multiple integer overflows in the router’s kernel let threat actors mount Denial of Service attacks or gain privileges.
  • This cURL vulnerability, if exploited by an attacker, can lead to the disclosure of sensitive information by leaking the credentials of the owner of the router.
  • Another cURL vulnerability allows potential threat actors to steal user data and mount Denial of Service attacks.
  • An scp.c vulnerability in Dropbear lets potential attackers bypass access restrictions and modify the permissions of target directories.
  • The CVE-2014-3158 vulnerability allows threat actors to access privileged options on the network and "[corrupt] security-relevant variables."

TP-Link web interface app code reveals subpar security practices

unencrypted-communications
(A host of potential issues found during a Burp scan)
  • The app does not support HTTPS by default, allowing potential attackers to intercept web traffic.
  • When enabled, HTTPS within the interface is implemented using weak TLS 1.0 and TLS 1.1 encryption protocols.
  • The app is using Base64 encoding schemes, which can be easily decoded by potential a-man-in-the-middle attackers.
  • The interface suffers from the Cookie Slack flaw, which potentially allows for fingerprinting by threat actors.
  • Charset mismatch allows potential threat actors to force web browsers into content-sniffing mode.
  • Content-type is incorrectly stated on images within the app, potentially leading to attacks where threat actors can camouflage malicious scripts as images.
  • X-Content-Type-Options headers are not set, allowing for content sniffing.
  • The ‘Eval()’ function is used in the app’s JavaScript code, which could allow potential attackers to inject malicious code into the function.
  • The router’s web interface is vulnerable to reverse tabnabbing attacks, where attackers can use framed pages in order to rewrite them and replace them with phishing pages.
  • The Content Security Policy header is not set, allowing web browsers to load any type of content within the web interface page, including malicious code.
  • The interface allows Private IP disclosures, which lets potential threat actors identify victims within a local network
  • Frameable response within the interface can be used by malicious actors to trick users into unintentionally clicking on a button or link on a different page instead of the intended page (also known as clickjacking).
  • Flooding the router with enough requests per second, it becomes unresponsive, which means that a Denial of Service vulnerability is present.

A critical two-year-old vulnerability

ADVERTISEMENT
  • Administrator password
  • WPS key for wifi access
  • Hardware Version
  • Software version
  • Network name (SSID)

Why shipping routers with outdated firmware is dangerous

How we collected and analyzed the data

Disassembling the router

uart-serial-port
router
(Connecting the router to another computer for analysis)
commands
(The TP-Link AC1200 Archer C50 boot sequence)

Extracting the data

  • The router’s boot loading sequence.
  • The contents of the /etc/passwd folder, which is used to keep track of all registered users and store their information, including usernames and passwords.
  • The contents of /var/tmp/dropbear folder, which stores the router’s SSH keys and the SSH password.
  • The list of available commands, the $PATH variable, and the list of available services.
commands2
(The TP-Link AC1200 Archer C50’s list of available commands)

More from CyberNews:

ADVERTISEMENT