Dynamics 365 Business Central - A Journey With Ups and Downs
The researcher audited Dynamics 365 Business Central and found that a custom serialization binder used during JSON deserialization could be bypassed, allowing attacker-controlled type names to be resolved. This could let an attacker reach dangerous deserialization gadgets through the WebSocket JSON-RPC interface.
Published on frycos.github.io
Recently, I was thinking about different Microsoft products and their statistical vulnerability distribution in the near past. What are the most popular targets for researchers?
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 serialization binder falls back to resolving arbitrary type names when its allow-lists do not match, so the protection does not actually restrict which types can be deserialised.
Impact
An attacker able to send crafted JSON-RPC messages over the WebSocket interface could potentially trigger unsafe deserialisation, though the text does not confirm a working exploit.
What the attacker needed
Access to the WebSocket JSON-RPC endpoint; ability to send crafted typed JSON
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.
When a program receives data, it sometimes needs to rebuild objects from that data, a process called deserialisation. If the program trusts the type name written in the incoming data, an attacker can name a dangerous class and get code to run. This report looks at a protection meant to block that, and shows it can be bypassed.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.