Unauthenticated RCE in Motorola's MR2600 Router
The Motorola MR2600 router has an unauthenticated remote code execution vulnerability because the firmware upload and validation endpoints lack proper authentication checks. An attacker can upload a malicious firmware image and trigger its flashing, leading to full compromise of the router.
mrbruh.com
Published on mrbruh.com
I’m currently on a quest to find at least one Remote Code Execution vulnerability per router vendor. This is the story of how I found an unauthenticated RCE in Motorola’s MR2600 router.
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 authentication check for the firmware upload endpoint occurs after the file is written, and the check for the firmware validation endpoint can be bypassed by appending an allowlisted string to the URI, due to inconsistent comparison operators.
Impact
An attacker on the LAN can exploit this without authentication, and if remote management is enabled, it can also be exploited from the internet, allowing full control of the router.
What the attacker needed
Access to the router's network (LAN or remote management)
How it was found
- Upload a malicious firmware image to the fwupload.cgi endpoint without authentication.
- Trigger the LoadFirmwareValidation SOAP action with a URI that bypasses authentication.
- The router validates the firmware and flashes it.
- The router reboots and runs the malicious firmware.
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 router lets you update its software (firmware) through a web page. The researcher found that the part of the router that handles updates does not check if you are logged in before accepting a new firmware file. So anyone who can reach the router can replace its software with their own, taking control of it.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.