Skip to content
Access control Disclosed report Advanced CVE-2024-22020

Bypass network import restriction via data URL

Node.js network import restrictions could be bypassed by embedding non-network imports inside data URLs, allowing an attacker to execute arbitrary code. The text claims this compromises system security and was verified on various platforms.

dittyroma Follow

Originally disclosed on HackerOne

Medium 6.5 View original
  • Triaged in 3 days
  • Fixed in 11 months
  • Disclosed after 11 months

Summary by the program

A security flaw in Node.js allows a bypass of network import restrictions. By embedding non-network imports in data URLs, an attacker can execute arbitrary code, compromising system security.

Verified on various platforms, the vulnerability is mitigated by forbidding data URLs in network imports.

Exploiting this flaw can violate network import security, posing a risk to developers and servers.

The original report as published on HackerOne, by dittyroma. 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

Root cause

Likely the network import restriction did not account for data URLs carrying non-network imports, which could then execute code.

Impact

Exploiting this flaw could violate network import security and poses a risk to developers and servers, though the text does not give specific attack scenarios.

What the attacker needed

Ability to supply a data URL import

The fix

The vulnerability is mitigated by forbidding data URLs in network imports.

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 network import restrictions. This report says you could embed non-network imports in a data URL, a way of putting data directly in a link instead of fetching it. That let code run, bypassing the rule.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Node.js

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.