Skip to content
RCE Write-up Intermediate

Logic Flaw Leading to RCE in Dynamicweb 9.5.0 – 9.12.7

A logic flaw in the setup endpoint allowed unauthenticated attackers to re-run setup actions, including creating a new administrator user. After logging in with that account, an attacker could upload an ASPX webshell and execute commands on the server.

blog.assetnote.io

Published on blog.assetnote.io

The advisory for this issue can be found here.

The author, on blog.assetnote.io

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 a boolean logic error in the setup page's access check: the condition used '&&' instead of '||', so providing any Action parameter bypassed the redirect to authentication.

Impact

An unauthenticated attacker could create an administrator account and then upload a webshell, leading to remote code execution on the server.

What the attacker needed

Network access to the target; No authentication required

The fix

The vendor fixed the logic flaw and released hotfixed versions; users should upgrade to one of the listed versions.

How it was found

  1. Send a request to the setup endpoint with an Action parameter set to createadministrator and supply admin credentials.
  2. Log in to the admin panel using the newly created administrator account.
  3. Upload an ASPX webshell through the admin panel to achieve command execution.

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 has a setup page meant only for first-time configuration, but a coding mistake let anyone reach it later. By sending a special request, an outsider could add themselves as an administrator and then upload a malicious file to take over the server.

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.