Unrestricted Upload of File with Dangerous Type Affecting psitransfer package, versions <2.2.0
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JS-PSITRANSFER-6579633
- published 7 Apr 2024
- disclosed 5 Apr 2024
- credit onelovegg1
How to fix?
Upgrade psitransfer
to version 2.2.0 or higher.
Overview
psitransfer is a Simple open source self-hosted file sharing solution
Affected versions of this package are vulnerable to Unrestricted Upload of File with Dangerous Type due to the absence of restrictions on the endpoint designed for uploading files. An attacker who receives the id of a file distribution can alter the files within this distribution by sending a PATCH
request with arbitrary content. This modification allows the attacker to append malicious or phishing content to the end of the original file, impacting users who access the file distribution subsequently.