CVE-2023-32689: Parse server Phishing Attack Vulnerability By Uploading Vulnerability
MODERATECVE-2023-32689 is a MODERATE (CVSS 6.3) phishing attack vulnerability by uploading vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Parse server libraries in the npm ecosystem. The issue involves phishing attack vulnerability by uploading malicious html file. Remediation is available by upgrading affected packages to version 5.4.4, 6.1.1.
CVE-2023-32689 at a Glance
Security Impact
CVSS: 6.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N).
How to Fix CVE-2023-32689
To remediate this vulnerability, upgrade all affected Parse server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install parse-server@5.4.4
npm install parse-server@6.1.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls parse-server
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2023-32689, inspect your project dependencies using npm:
npm ls parse-server
Analyze the terminal output to locate any version of Parse server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.4.4), your application is affected.
Note: The npm ls parse-server command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-434: Unrestricted Upload of File with Dangerous Type, where the product allows the upload or transfer of dangerous file types that are automatically processed within its environment. In Parse server, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-32689 Affected Parse server Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
parse-server
|
npm |
< 5.4.4
|
5.4.4
|
|
parse-server
|
npm |
≥ 6.0.0
< 6.1.1
|
6.1.1
|
References
Frequently Asked Questions
What is CVE-2023-32689?
Which Parse server versions are affected?
What version fixes CVE-2023-32689?
Is parse-server affected?
What is the CVSS score of CVE-2023-32689?
What CWE is associated with CVE-2023-32689?
How can I check npm dependencies for CVE-2023-32689?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9prm-jqwx-45x9",
"modified" : "2023-05-31T23:39:15Z",
"published" : "2023-05-31T23:39:15Z",
"aliases" : [ "CVE-2023-32689" ],
"summary" : "Phishing attack vulnerability by uploading malicious HTML file",
"details" : "### Impact\n\nPhishing attack vulnerability by uploading malicious files. A malicious user could upload a HTML file to Parse Server via its public API. That HTML file would then be accessible at the internet domain at which Parse Server is hosted. The URL of the the uploaded HTML could be shared for phishing attacks. The HTML page may seem legitimate because it is served under the internet domain where Parse Server is hosted, which may be the same as a company's official website domain.\n\nAn additional security issue arises when the Parse JavaScript SDK is used. The SDK stores sessions in the internet browser's local storage, which usually restricts data access depending on the internet domain. A malicious HTML file could contain a script that retrieves the user's session token from local storage and then share it with the attacker.\n\n### Patches\n\nThe fix adds a new Parse Server option `fileUpload.fileExtensions` to restrict file upload on Parse Server by file extension. It is recommended to restrict file upload for HTML file extensions, which this fix disables by default. If an app requires upload of files with HTML file extensions, the option can be set to `['.*']` or another custom value to override the default.\n\n### References\n\n- https://github.com/parse-community/parse-server/security/advisories/GHSA-9prm-jqwx-45x9\n- https://github.com/parse-community/parse-server/pull/8538 (Parse Server 6)\n- https://github.com/parse-community/parse-server/pull/8537 (Parse Server 5)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "parse-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.4.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "parse-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0.0"
}, {
"fixed" : "6.1.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/parse-community/parse-server/security/advisories/GHSA-9prm-jqwx-45x9"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-32689"
}, {
"type" : "WEB",
"url" : "https://github.com/parse-community/parse-server/pull/8537"
}, {
"type" : "WEB",
"url" : "https://github.com/parse-community/parse-server/pull/8538"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/parse-community/parse-server"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-434" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-05-31T23:39:15Z",
"nvd_published_at" : "2023-05-30T18:15:10Z"
}
}