Skip to content
Business logic Disclosed report Advanced CVE-2023-38552

Integrity checks according to policies can be circumvented

Node.js's experimental policy feature checks a resource's integrity against a trusted manifest, but an application can intercept that check and return a forged checksum. This effectively disables the integrity check for anyone relying on the policy mechanism.

tniessen Follow

Originally disclosed on HackerOne

  • Triaged in 41 hours
  • Fixed in 2 months
  • Disclosed after 2 months

Summary by the program

When the Node.js policy feature checks the integrity of a resource against a trusted manifest, the application can intercept the operation and return a forged checksum to node's policy implementation, thus effectively disabling the integrity check.

Impacts: This vulnerability affects all users using the experimental policy mechanism in all active release lines: 18.x and, 20.x.

Please note that at the time this CVE is issued, the policy mechanism is an experimental feature of Node.js.

The original report as published on HackerOne, by tniessen. 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 integrity check relies on a hook or callback that application code can override, so the value being compared can be supplied by the very code the check is meant to constrain.

Impact

Users of the experimental policy mechanism on 18.x and 20.x can have the integrity check disabled by a forged checksum.

What the attacker needed

Use of the experimental policy feature; ability to run code in the application

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 called policies that is meant to make sure the code it loads has not been tampered with, by comparing a fingerprint (checksum) of each file against a trusted list. The report says a program can step in during that comparison and hand back a fake fingerprint, so the safety check passes even for altered code. That means the protection can be switched off without the person relying on it noticing.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by tniessen

View all

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

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.