ASP.NET resource files (.RESX) and deserialization issues
ASP.NET resource files (.resx and .resources) can contain serialised objects that are deserialised unsafely when processed, allowing an attacker to achieve code execution. The author states that a number of products were exploited and some file uploaders can also be vulnerable.
soroush.me
Published on soroush.me
Article’s PDF version: https://soroush.me/downloadable/aspnetresourcefilesresxdeserializationissues.pdf
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 deserialises untrusted data from .resx or .resources files without proper validation, allowing an attacker to supply a malicious serialised object that leads to code execution.
Impact
An attacker could achieve code execution on the server or in a desktop application by supplying a malicious resource file, and some file uploaders may be vulnerable.
What the attacker needed
Ability to supply a .resx or .resources file; victim processes the file with vulnerable software
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.
Some programs can save data in a special format that, when loaded, can run code. If a website lets you upload a file and then processes it with a vulnerable program, an attacker could upload a malicious file to run their own code on the server. This is called deserialisation: turning saved data back into objects, which can be dangerous if the data is untrusted.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.