GitHub Advisoryadvisory · npm

GHSA-qg73-g3cf-vhhh NocoDB Allows Preview of Files with Dangerous Content

MEDIUM Published 2024-05-13 Modified 2025-08-21 Official page ↗
Aliases
CVE-2023-50717
Ecosystem
npm
Packages
nocodb
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
Weaknesses
CWE-434, CWE-79
Reviewed
2024-05-13

Affected packages

• npm nocodb: >= 0.202.6, < 0.202.10 → fixed in 0.202.10

Description

Summary --- Attacker can upload a html file with malicious content. If user tries to open that file in browser malicious scripts can be executed leading Stored XSS(Cross-Site Script) attack. PoC --- NocoDB was configured using the Release Binary `Noco-macos-arm64`, and nocodb version 0.202.9 (currently the latest version) was used. binary hash infos: md5(164b727f287af56168bc16fba622d0b4) / sha256(43e8e97f4c5f5330613abe071a359f84e4514b7186f92954b678087c37b7832e) 1. Run the binary to start the server and access the arbitrary table dashboard. Here, used the default `Features` table. 2. Click `+` in the table `field header` to add an `attachment` field. 3. Click the `Add File(s)` button to select and upload files. Here, `test.html` containing `alert(document.domain)` was uploaded. 4. Check the uploaded file path. When the file path is accessed, the `alert(document.domain)` script statement contained in the file is executed and the server host appears in the alert message. Impact --- This allows remote attacker to execute JavaScript code in the context of the user accessing the vector. An attacker could have used this vulnerability to execute requests in the name of a logged-in user or potentially collect information about the attacked user by displaying a malicious form.

Related

Alias · CVE (1)

  • CVE-2023-50717 NocoDB is software for building databases as spreadsheets. vulnerability

Weakness · CWE (2)

  • CWE-434 Unrestricted Upload of File with Dangerous Type weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References