Complete Web Server Access
The helpdesk subdomain allowed image uploads but only checked file extensions in client-side JavaScript, so an attacker could disable JavaScript and upload an ASPX web shell. This gave the attacker root-level access to the web server and control over multiple websites hosted on it.
Published on medium.com
{{media:0}}
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 upload validation relied solely on client-side JavaScript to restrict file extensions, with no server-side check of file type or content.
Impact
The attacker could execute code on the server and, because the process ran with root privileges, control all websites hosted on that server.
What the attacker needed
A free account on the helpdesk subdomain; ability to disable JavaScript in the browser; server runs on Windows
How it was found
- Create an account on the helpdesk subdomain.
- Find the browser functionality that allows uploading image files.
- Observe that the allowed extensions are enforced by client-side JavaScript.
- Disable JavaScript using a Firefox extension.
- Upload an ASPX shell file.
- Gain access to the website and discover root access to the server.
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 website let people upload pictures, but it only checked the file type using code running in the visitor's own browser. By turning off that browser check, the tester uploaded a file that the server would run as a program, which let them take control of 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.