Skip to content
RCE Write-up Advanced

Molding Lies Into Reality || Exploiting CVE-2024-4358

The Telerik Report Server deserialised attacker-supplied XML from a report package using a custom serialiser whose type resolver allowed arbitrary types to be instantiated, leading to remote code execution. The author also found an authentication bypass so the chain could be triggered without logging in.

Sina Kheirkhah Follow

Published on summoning.team

Progress made a mistake and published an advisory for a deserialization bug with CVSS 9.9 even though it required authentication, shortly after the patch, I managed to find an authentication bypass but got stuck when trying to exploit the deserialization issue that was found by an anonymous researcher however with…

Sina Kheirkhah (@SinSinology), on summoning.team

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 custom XML serialiser's type resolver allowed attacker-chosen types to be instantiated during deserialisation of the report definition.

Impact

An unauthenticated attacker could achieve remote code execution on the report server, though the original advisory only claimed a low-privilege user was needed.

What the attacker needed

Network access to the report server; crafted report package uploaded

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 server accepts report files from users and rebuilds them on the server side. Its custom code that turns the file back into objects trusted the file to name any class it liked, so a crafted file could make the server run code. The author also found a way to reach this without a valid login.

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 Sina Kheirkhah

View all

17 more disclosed reports, best first.

More from Progress (Telerik)

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.