Skip to content
Path traversal Disclosed report Intermediate CVE-2023-32004

Permission model bypass by specifying a path traversal sequence in a buffer,

The experimental permission model in Node.js 20 failed to properly handle Buffer inputs in file system APIs, allowing a path traversal sequence to bypass file permission checks. An attacker could use this to access files outside the intended permitted paths.

haxatron1 Follow

Originally disclosed on HackerOne

High 7.7 View original
  • Triaged in 6 hours
  • Fixed in 44 days
  • Disclosed after 46 days

Summary by the program

A vulnerability has been discovered in Node.js version 20, specifically within the experimental permission model. This flaw relates to improper handling of Buffers in file system APIs causing a traversal path to bypass when verifying file permissions.

This vulnerability affects all users using the experimental permission model in Node.js 20.

Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.

The original report as published on HackerOne, by haxatron1. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

This could allow an attacker to bypass file permission checks and access files outside the permitted paths, but only when the experimental permission model is enabled.

What the attacker needed

Node.js 20 with experimental permission model enabled

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Node.js has an experimental feature that tries to restrict which files a program can read or write. This report says that if you give a file path as a special binary data type called a Buffer, the check can be fooled by including '..' to step outside the allowed folder. That means a program using this feature might read or write files it should not.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More by haxatron1

View all

30 more disclosed reports, best first.

More from Node.js

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.