Disabling js for the win
A file upload feature accepted a file whose type was checked only by client-side JavaScript, so with JavaScript disabled the attacker could upload a server-executable file. The author reports this led to remote code execution on the server.
Published on infosecwriteups.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
Impact
An attacker could upload a file that the server executes, leading to remote code execution.
What the attacker needed
JavaScript disabled in the browser; access to a file upload feature
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.
Many upload forms check the file type in the browser using JavaScript before sending it. If that is the only check, turning JavaScript off means the browser never runs it, so any file can be sent. If the server then runs uploaded files, an attacker can get their own code executed on it.
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.