Skip to content
Memory corruption Write-up Advanced

!exploitable Episode One - Breaking IoT

A buffer overflow was reported in the Tenda AC15 firmware via the urls parameter of saveParentControlInfo, though the write-up found the advisory's stack-based claim inconsistent and the overflow actually on the heap.

blog.doyensec.com

Published on blog.doyensec.com

For our last company retreat, the Doyensec team went on a cruise along the coasts of the Mediterranean Sea. As amazing as each stop was, us being geeks, we had to break the monotony of daily pool parties with some much-needed hacking sessions.

Savio Sisco, on blog.doyensec.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the endpoint copies the user-supplied urls value into a fixed-size buffer without checking its length.

Impact

An authenticated user could crash the affected router process; the text does not demonstrate code execution.

What the attacker needed

Access to the router control panel; valid login credentials; emulated or real Tenda AC15 device

How it was found

  1. Set up the vulnerable firmware using the EMUX emulator and open the router control panel.
  2. Log in and create a new parental control rule from the sidebar.
  3. Send the resulting saveParentControlInfo request with an oversized urls value.
  4. Observe the crash and attach GDB to the server process to inspect it.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A buffer overflow happens when a program copies more data into a fixed-size memory space than it can hold, so the extra data spills over into neighbouring memory. Here the router's web interface takes a value from a form and copies it without checking the length, so a very long value can crash the program. The author only confirms a crash, not full control of the device.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.