Damn Vulnerable Router Firmware - Hardware Bring-up

The Damn Vulnerable Router Firmware (DVRF) is a deliberately vulnerable firmware for Linksys E1550 routers. The author writes: "the goal of this project is to simulate a real world environment to help people learn about other CPU architectures outside of the x86_64 space."

Before we overwrite the original firmware, we save a copy of the latest version: FW_E1550_1.0.03.002_US_20120201_code.bin.

We install the DVRF via the firmware update page of the Linksys E1550.

UART connection

According to the project's README.md file, we need UART access to run the "pwnable" binaries. We can reach the UART pins easily once a 1x5 pin header (2.54 mm pitch) sits on DJ12.

Opening the housing

Housing of the Linksys E1550

Pull the mains plug before opening the housing to avoid short circuits!

The Linksys E1550 has an external power supply, so there are no hazardous voltages inside the housing. Even so, pull the mains plug before opening the housing to avoid short circuits!

To open the housing, we remove the three screw covers on the back of the device. Important: anyone who removes or alters warranty seals and barcodes loses the warranty.

We undo the screws without any trouble using a Phillips screwdriver. Then we lift the lid with a special opening tool made of soft plastic.

Soldering on the pin header

PCB of the Linksys E1550

The UART pins sit at DJ12, right above the serial flash IC (Winbond 25Q128BVFG). We solder a 1x5 pin header (2.54 mm pitch) to DJ12.

Pinout

  • Pin1: 3.3 V

  • Pin2: Tx (the Linksys E1550 transmits on this pin)

  • Pin3: Rx (the Linksys E1550 receives on this pin)

  • Pin4: ?

  • Pin5: GND

Installing the firmware

Downloading DVRF

git clone https://github.com/praetorian-inc/DVRF.git
file DVRF/Firmware/DVRF_v03.bin
   DVRF/Firmware/DVRF_v03.bin: data

Installing DVRF

We connect the PC to the Linksys E1550 via Ethernet. The PC should get an IP address via DHCP; the default subnet is 192.168.1.0/24. In the browser we open the device's firmware update page and upload the file DVRF/Firmware/DVRF_v03.bin. After the installation the device restarts automatically.

After the restart we open the router's default page and should see the following:

Default page of the router after installing the DVRF