Skip to content
Crypto Write-up Advanced

PBKDF2 JS Lib: Improper Input Validation Vulnerability

The pbkdf2 npm package fails to validate its input properly in its buffer conversion helper, which the advisory says allows signature spoofing through improper validation. The text does not explain the attack path beyond that, so the practical effect on a real system is not shown.

nvd.nist.gov

Published on nvd.nist.gov

The original lives on nvd.nist.gov

We do not hold its text, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

Likely the buffer conversion helper accepts input types or values it should reject, so the key derivation runs on unintended data.

Impact

The advisory claims a confidentiality and integrity impact and rates the attack complexity as low with no privileges or user interaction, but it gives no demonstration of a real exploit.

What the attacker needed

Use of pbkdf2 3.0.10 to 3.1.2

The fix

It was fixed in later versions of the package, as shown by the linked commits and security advisory.

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 write-up has not been written yet. The Original tab links to the source.

PBKDF2 is a way of turning a password into a long key by repeating a hashing step many times. This package is a JavaScript version of it. The report says the library does not check what it is given before using it, and that this can let someone fake a signature, but it does not explain how.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.