Skip to content
RCE Write-up Advanced

WEEKEND DESTROYER RCE in Western Digital PR4100 NAS

The Western Digital PR4100 NAS device contains hard-coded credentials for the 'nobody' user (empty password) and a firmware update API endpoint that only requires user-level authentication, with no cryptographic verification of firmware images. An unauthenticated attacker on the local network can use these flaws to upload a malicious firmware image and gain root code execution, creating a persistent backdoor.

Pedro Ribeiro Follow

Published on flashback.sh

Written by Radek Domanski

Pedro Ribeiro (@pedrib1337), Radek Domanski (@RabbitPro), on flashback.sh

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

The device uses hard-coded credentials for a low-privilege user and allows that user to initiate firmware updates without cryptographic signature verification.

Impact

An attacker on the local network can gain root code execution and install a persistent backdoor, even after reboot.

What the attacker needed

Access to the local network; device running firmware up to 2.40.157

The fix

The firmware update endpoint should require administrative authentication, and firmware images should be cryptographically signed and verified before flashing.

How it was found

  1. Obtain the hard-coded credentials for the 'nobody' user (empty password).
  2. Send a POST request to the firmware_update API endpoint with the 'nobody' credentials and a multipart file upload containing a malicious firmware image.
  3. The device flashes the firmware and reboots, after which the attacker connects to a backdoor shell.

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.

This is about a security flaw in a network storage device. The device had a hidden user account with no password, and it allowed any logged-in user to install new firmware without checking if it was legitimate. An attacker on the same network could use this to take full control of the device.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Pedro Ribeiro

View all

1 more disclosed report, best first.

More from Western Digital

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.