Advisory

GHSA-9prm-jqwx-45x9

Also known as: BIT-parse-2023-32689, CVE-2023-32689

Summary

Phishing attack vulnerability by uploading malicious HTML file

Details

Impact

Phishing 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.

An 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.

Patches

The 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.

References

  • https://github.com/parse-community/parse-server/security/advisories/GHSA-9prm-jqwx-45x9
  • https://github.com/parse-community/parse-server/pull/8538 (Parse Server 6)
  • https://github.com/parse-community/parse-server/pull/8537 (Parse Server 5)

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-05-31 23:39 UTC
Modified
2023-12-06 01:03 UTC

Affected packages and fixes

parse-server

npm · All systems

Affected

  • introduced 0, fixed 5.4.4 (semver)

Fixed versions

5.4.4

Fix

parse-server

npm · All systems

Affected

  • introduced 6.0.0, fixed 6.1.1 (semver)

Fixed versions

6.1.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences