Medium, CVSS 5.3npmAmendedPublished
@strapi/plugin-upload has a Denial-of-Service via Improper Exception Handling
CVE-2024-31217 · GHSA-pm9q-xj9p-96pm
- Affected
- npm @strapi/plugin-upload < 4.22.0
- Fixed in
- 4.22.0· Vendor fix available
- Issue
- A Denial-of-Service was found in the media upload process causing the server to crash without restarting, affecting either development and production environments. Details Usually, errors in the application cause it to log the error and keep it running for other clients. This behavior, in contrast, stops the server execution, making it unavailable for any clients until it's manually restarted. PoC Due to a bug in what we believe to be Burp’s decoding system, we couldn’t produce a valid file to easily reproduce the vulnerability. Instead, the issue can be reproduced by following these steps: 1. Configure Burp’s proxy between a browser and a Strapi server 2. Log in and upload an image through the Media Library page while having Burp’s interceptor turned on 3. After capturing the upload POST request in Burp, add %00 at the end of the file extension from the Content-Disposition, in the filename parameter (See reference image 1 below) 4. Using the cursor, select the added %00 and…
Recommended action: Upgrade to 4.22.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.