You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A html file can be uploaded with .html.aaa or .htm.aaa file extensions. When the file is opened, it executes the Javascript code inside it. On the other hand, file uploading with the .html. and .htm. file extensions are enough to execute Javascript for Linux servers. The WinRemoveTailDots plugin prevents uploading these file extensions using rtrim function for Windows server.
To Reproduce
Select arbitrary png file to upload.
Capture request with Burp and set content as test<img/src/onerror=alert(document.cookie)>
Set filename like test.html.aaa or test.htm.aaa
After forwarding the request, the file is successfully uploaded under the files directory.
Screenshots
Tested on:
OS: Windows & XAMPP server
OS: Debian & Apache2
The text was updated successfully, but these errors were encountered:
@passtheticket Thank you for your report. I think this problem is caused by the fact that MIME detection of multiple extensions is not supported. I will fix this.
Describe the bug
A html file can be uploaded with
.html.aaa
or.htm.aaa
file extensions. When the file is opened, it executes the Javascript code inside it. On the other hand, file uploading with the.html.
and.htm.
file extensions are enough to execute Javascript for Linux servers. TheWinRemoveTailDots
plugin prevents uploading these file extensions usingrtrim
function for Windows server.To Reproduce
test<img/src/onerror=alert(document.cookie)>
test.html.aaa
ortest.htm.aaa
Screenshots
Tested on:
The text was updated successfully, but these errors were encountered: