CVE-2023-46119: Open Source Vulnerability in Parse Server
Summary
CVE-2023-46119: Parse Server may crash when uploading file without extension. Affects parse across 2 version ranges.
>= 1.0.0, < 5.5.6
>= 6.0.0, < 6.3.1
Fixed in 5.5.6 or 6.3.1, depending on the release line you run. How to fix ↓
Also tracked for
- parse-server · npm
The same CVE-2023-46119 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Parse Server is an open source backend that can be deployed to any infrastructure running Node.js. It provides a scalable and flexible solution for building applications. The vulnerability affects versions prior to 5.5.6 and 6.3.1 of Parse Server. It occurs when uploading a file without an extension, causing the server to crash.
Vulnerability Detail
The vulnerability in Parse Server allows an attacker to crash the server by uploading a file without an extension. This can be exploited by sending a specially crafted request to the server, causing it to become unresponsive. The impact of this vulnerability can range from denial of service to potential data loss, depending on the specific implementation of Parse Server.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
>= 1.0.0, < 5.5.65.5.6 -
>= 6.0.0, < 6.3.16.3.1
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
As a workaround, file uploads without extensions can be blocked at the application level by implementing server-side validation. This can be done by checking the file extension before allowing the upload to proceed. Here is an example of how this can be implemented in Node.js:
const express = require('express');
const multer = require('multer');
const app = express();
const upload = multer({ dest: 'uploads/' });
app.post('/upload', upload.single('file'), (req, res) => {
const file = req.file;
if (!file.originalname.includes('.')) {
res.status(400).json({ error: 'File must have an extension' });
} else {
// Process the file
res.json({ message: 'File uploaded successfully' });
}
});
app.listen(3000, () => {
console.log('Server started on port 3000');
});
This code snippet demonstrates how to use the multer middleware in Express to handle file uploads. It checks if the uploaded file has an extension and returns an error if it does not.
Conclusion
In conclusion, the vulnerability in Parse Server allows an attacker to crash the server by uploading a file without an extension. It is recommended to update to the patched versions of Parse Server (5.5.6 or 6.3.1) to mitigate this vulnerability. Additionally, implementing server-side validation to block file uploads without extensions can serve as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for parse →
FAQ
Parse Server is an open source backend that can be deployed to any infrastructure running Node.js. It provides a scalable and flexible solution for building applications.
Versions prior to 5.5.6 and 6.3.1 of Parse Server are affected by this vulnerability.
To fix this vulnerability, update Parse Server to version 5.5.6 or 6.3.1, which include the necessary patches.
The impact of this vulnerability can range from denial of service to potential data loss, depending on the specific implementation of Parse Server.
Yes, a workaround is to implement server-side validation to block file uploads without extensions.
References
Related vulnerabilities
Recent vulnerabilities recorded for parse.