Establishing a UART Root Connection to a TP-Link Wireless Router

Feb. 16, 2023

Background

Many IoT devices today use a serial communication interface known as the Univeral Asynchronous Receiver Transmitter (UART). The purpose of this interface is to give direct access to the IoT operating system via a command line interface (CLI) for debugging. In many cases, the underlying operating system is just a Unix system, which means backdooring these systems should be (hopefully) very simple.

I worked on this a while ago but finally was able to get all of the images together and uploaded. I found an unused TP-Link router and thought I’d mess with it a little. I noticed it had a UART connection which gave me an easy root shell. Then I modded the firmware and flashed it onto the device. It was easy enough… But I may have soft locked it 😛

Recon

Here is the device in question:

TP-Link Technologies Co., Ltd. 300Mbps Wireless N Router WR841NV14

FCCID: TE7WR841NV14

I threw the ID into fccid.io and found its documentation along with internal photographs:

fcc.id/TE7WR841NV14

I took mine apart and found that the internals were pretty much the same (obviously):

Then I looked around at the various chips and discovered a row of 4 pins which looks to be a UART connection interface! (I soldered on the header pins after I found it)

I grabbed my UART to USB interface adapter and plugged in everything:

Then I opened up PuTTY and connected to COM7 which was the serial device that appeared in the Windows Device Manager:

I set the baud rate to 115200 because the device was relatively new and I figured it would be a good first starting guess. And I was right!

And just like that I had a root shell on the router.

Pilfering

After gaining access like a total 1337 h4x0r I took a look at /etc/passwd

This made it easy enough to throw into hashcat and I came across a pretty funny result:

This will give us SSH access to the router with the user admin, and based off of the running processes, ssh an active service:

Modding the Firmware

I wanted to install some sort of backdoor but the filesystem is read-only. So I had to resort to modding the firmware and reflashing it.

I went to the TP-Link site and downloaded their latest firmware image

I downloaded it, unzipped it, and then used firmware-mod-kit to extract it. I could have just use binwalk to extract, but doing it this way allowed me to repack it with relative ease.

After making a seemingly minor addition to one of the web files and repacking the firmware, I flashed it onto my device.

After the router rebooted, I traveled to its IP address and found that my changes were applied successfully! However, the page it now broken and I cannot access any of the routers functions. Sloppy front end development on my part. Hopefully I can fix it soon.

Conclusion

Being able to identify certain aspects of SBCs can be very valuable for hardware hacking! This was a great experiment in firmware modding and the UART interface.

Read More
Qiana Center

Latest

I’m filling in at The Verge for 6 weeks. Ask me anything!

David Imel is a technology reporter who has been covering the industry since 2007. He co-hosts the Waveform podcast with MKBHD. A former engineer, he now specializes in topics like computational photography and social media protocols. Hello my friends! My protocol pals! My computational compadres! I’m David, a technology reporter and cohost of the Waveform

Is an air-conditioning revolution coming to Europe?

The AC culture wars may be solved by advances in environmentally friendly technology. If you’re reading this while the blinds are drawn against yet another heat wave and wondering whether it’s finally time to buy an air conditioner, you’re far from alone. At the end of June, as temperatures climbed well above 40° Celsius across

CW@60: Living with the digital revolution

Parliamentarian Lord Tim Clement-Jones highlights the growing impact of technology in politics across his career By Lord Tim Clement-Jones Published: 10 Jul 2026 On 22 September 2026, Computer Weekly turns 60. To mark the milestone, we asked some of our friends - experts, parliamentarians, IT leaders and suppliers - for their perspectives on how tech

Circular IT turns sustainability ambitions into measurable technology for UAE organisations

As the UAE accelerates its Net Zero 2050 Strategy, CIOs are embedding sustainability into technology lifecycle management, circular IT and data-driven decision-making to reduce emissions, improve efficiency and tackle the growing challenge of e-waste By Andrea Benito , Computer Weekly Published: 09 Jul 2026 10:30 Sustainability is no longer a standalone environmental initiative, it is

Newsletter

Don't miss

I’m filling in at The Verge for 6 weeks. Ask me anything!

David Imel is a technology reporter who has been covering the industry since 2007. He co-hosts the Waveform podcast with MKBHD. A former engineer, he now specializes in topics like computational photography and social media protocols. Hello my friends! My protocol pals! My computational compadres! I’m David, a technology reporter and cohost of the Waveform

Is an air-conditioning revolution coming to Europe?

The AC culture wars may be solved by advances in environmentally friendly technology. If you’re reading this while the blinds are drawn against yet another heat wave and wondering whether it’s finally time to buy an air conditioner, you’re far from alone. At the end of June, as temperatures climbed well above 40° Celsius across

CW@60: Living with the digital revolution

Parliamentarian Lord Tim Clement-Jones highlights the growing impact of technology in politics across his career By Lord Tim Clement-Jones Published: 10 Jul 2026 On 22 September 2026, Computer Weekly turns 60. To mark the milestone, we asked some of our friends - experts, parliamentarians, IT leaders and suppliers - for their perspectives on how tech

Circular IT turns sustainability ambitions into measurable technology for UAE organisations

As the UAE accelerates its Net Zero 2050 Strategy, CIOs are embedding sustainability into technology lifecycle management, circular IT and data-driven decision-making to reduce emissions, improve efficiency and tackle the growing challenge of e-waste By Andrea Benito , Computer Weekly Published: 09 Jul 2026 10:30 Sustainability is no longer a standalone environmental initiative, it is

Elon Musk SpaceX AI Predicts Incredible Bitcoin Price For Next 30 Days

Author Ahmed Barakat Author Ahmed Barakat Part of the Team Since Aug 2025 About Author Ahmed Balaha is a journalist and copywriter based in Georgia with a growing focus on blockchain technology, DeFi, AI, privacy, digital assets, and fintech innovation. Last updated:  June 13, 2026 Here is the thing about capitulation calls. They only sound

Breitbart Business Digest: Stacking Those $250 Trump Bills

Weekly Wrap: Making It Rain with Trump Bills Welcome back to Friday! This is the Breitbart Business Digest weekly wrap, our septidialogic sweep through the economic and financial news. This week the economy failed to get indigestion from the high price of gas, Treasury Secretary Scott Bessent told us about getting fed at the Fed, Trump

Business seminar in Munich highlights Hong Kong’s strategic roles amidst global shifts (with photos)

Business seminar in Munich highlights Hong Kong's strategic roles amidst global shifts (with photos) ******************************************************************************************      The Hong Kong Economic and Trade Office, Berlin (HKETO Berlin), promoted Hong Kong's unique advantages and strategic roles at the seminar "Hong Kong's strategic role amidst geopolitical tensions" on June 18 (Munich time) in Munich, Germany.             Senior executives, investors

AI for business services: From job fears to productivity

AI for business services: From job fears to productivity