File Upload Attack using XAMLX Files
The blog post describes a technique where uploading a .XAMLX file to an IIS-based application can lead to command execution. This is useful when a file uploader uses a blacklist to block malicious extensions.
soroush.me
Published on soroush.me
Article’s PDF file: https://soroush.me/downloadable/gettingshellwithxamlxfiles.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
Impact
An attacker could execute commands on the server, potentially leading to full compromise.
What the attacker needed
File upload functionality; IIS server that processes .XAMLX files
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 file uploader lets users put files on a website. If the site only blocks a list of known bad file types (a blacklist), an attacker can try a less common file type that the site still processes. Here, a .XAMLX file, which is a kind of workflow file used by some Microsoft web servers, can be uploaded and then run code on the server.
What is File upload?
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.