Skip to content
Path traversal Write-up Advanced

Bypass IIS Authorisation with this One Weird Trick Three RCEs and Two Auth Bypasses in Sitecore 9.3

The report describes an IIS authorisation bypass in Sitecore 9.3 where a controller action calls Server.Execute with an unvalidated path, allowing an unauthenticated attacker to read files such as the license and configuration backups. Leaked Web.config secrets then enable a Telerik deserialisation RCE, and an authenticated unsafe reflection page allows arbitrary method invocation leading to BinaryFormatter deserialisation.

assetnote.io

Published on assetnote.io

It’s time to look at Sitecore again! In 2021 our security research team took a look at Sitecore and found some nice vulnerabilities.

The author, on 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 the Preview action passed an unvalidated previewPath into Server.Execute, and the Invoke page used reflection to call arbitrary instance methods without restricting dangerous types.

Impact

An unauthenticated attacker could read files in the webroot, and the leaked Web.config keys could lead to remote code execution; the Invoke.aspx reflection issue required authentication.

What the attacker needed

Sitecore 9.3 with the vulnerable handlers; network access to the Sitecore instance; for the reflection issue, an authenticated account

How it was found

  1. Enumerate .asp, .aspx, .ashx and .asmx files and try each without authentication.
  2. Read Web.config and App_Config/Sitecore.config to find handler path mappings.
  3. Decompile the DLLs and identify the SimulatorController Preview action.
  4. Send a request to the Preview action with a previewPath pointing at a file in the webroot.
  5. Brute-force the timestamped configuration backup zip names to obtain Web.config.
  6. Use the leaked Telerik keys with the deserialisation exploit to run code.

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.

A web server normally checks permissions before serving a file. Here a page passed a user-supplied file path to a built-in function that runs another file inside the same request, skipping those checks. That let someone read sensitive files, and the secrets in them were later used to run code on the server.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.