Skip to content
RCE Write-up Intermediate

SSD Advisory – MyLittleAdmin PreAuth RCE

MyLittleAdmin uses a hardcoded machineKey across all installations, allowing an attacker to craft a malicious serialised object that the ASP code deserialises, leading to remote command execution. An unauthenticated attacker can execute arbitrary commands in the context of the IIS application engine.

ssd-disclosure.com

Published on ssd-disclosure.com

Find out how we managed to execute arbitrary commands on MyLittleAdmin management tool using unauthenticated RCE vulnerability.

SSD Secure Disclosure technical team, on ssd-disclosure.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 application uses a hardcoded, shared machineKey for ASP.NET ViewState validation and deserialisation, allowing an attacker to forge a malicious ViewState payload that triggers unsafe deserialisation.

Impact

An unauthenticated attacker could execute arbitrary commands on the remote server within the context of the IIS application engine.

What the attacker needed

Network access to the MyLittleAdmin instance; knowledge of the hardcoded machineKey

The fix

The workaround is to generate a new machine key in IIS and restart the service; the vendor did not respond, so no official fix is mentioned.

How it was found

  1. Connect to the target server and retrieve the page containing ASP state and event values.
  2. Extract the __VIEWSTATEGENERATOR, __EVENTVALIDATION, and ServerName values from the page.
  3. Use the hardcoded machineKey with ysoserial to generate a serialized payload that executes a command.
  4. Send a POST request with the payload as the __VIEWSTATE parameter along with the extracted values.
  5. The server deserializes the payload and executes the command (e.g., calc.exe).

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.

The software uses a secret key to sign data, but that key is the same for every copy and is publicly known. An attacker can use that key to create a fake signed message that the server trusts, and when the server processes it, it runs the attacker's commands. This is like having a master key that opens every lock of the same brand.

What is RCE?

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

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.