---
title: "2. Basics file upload vulns"
date: 2024-11-10
draft: false
---


## No form of validation filters on uploaded files involved

Basics:
Webshells need to be written in the same programming language that the webserver runs 
- performs platform-specific functions and commands to execute system commands on the backend 
- webshells non-cross-platform

Usually able to tell with web page extensions in urls. In certain frameworks and web languages, `web routes` are used to map urls to web pages - in which case web page extension may not be shown. 
- in this case file upload exploitation would also be different - uploaded files may not be routable or accessible publicly 

easy method to determine lang running webapp is visit `/index.ext` 
- .php 
- .asp
- .aspx

self explanatory. usually if you go to a site on the main landing page the `/index.php` is hidden by default, getting a returned page in the above cases would imply the page exists 

we can also just fuzz extensions doing this 
and also using wappalyzer can help 

