IIS Server File Upload
Developers can make directory-specific configurations or IIS servers using a web.config
file.
staticContent mimeMap fileExtension=".json" mimeType="application/json" /staticContent
Web Config file
A web.config file lets you customize the way your site or a specific directory on your site behaves. For example, if you place a web.config
file in your root directory, it will affect your entire site. If you place it in a /content directory, it will only affect that directory.
With a web.config file, you can control:
Database connection strings.
Error behavior.
Security.
web.config files are XML documents.
.config
is not an extension like.html
or.txt
Checklists
Try uploading a file with .aspx or .asp extension
If it doesn't work then tamper the extensions using .jpeg or .png
Then try to insert a %00 (NULL byte) =>
shell.aspx%00.jpeg
Bounty HTB IIS File Upload
We could insert our aspx code in the end of our .config
file.
This is an another way to trigger our exploit and get a RCE
Last updated