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