rico345100 / socket.io-file

Socket.io-file is a node module for uploading file via Socket.io module
MIT License
48 stars 19 forks source link

File type restriction bypass #35

Open Cr0wTom opened 4 years ago

Cr0wTom commented 4 years ago

I just released my second 0day vulnerability regarding Socket.io-file. The advisory was supposed to get released on Saturday but nothing yet, so under the npm's policy I'm free to publicly disclose the vulnerability now.

The vulnerability affects all versions of socket.io-file and allows a malicious user to bypass the file type restrictions and upload any type of file to the server. Alongside my first 0day, and in specific configurations, they can lead to remote code execution in the underlying server.

Technical report: https://cr0wsplace.wordpress.com/2020/09/26/socket-io-file-2-0-31-file-type-restriction-bypass/

Please consider using another solution, as this project is completely outdated and I wouldn't bet on getting any future updates.

Cr0wTom commented 4 years ago

Advisory: https://www.npmjs.com/advisories/1564