Skip to content
Crypto Advisory Advanced CVE-2018-8319

MSR JavaScript Cryptography Library Security Feature Bypass Vulnerability (CVE-2018-8319)

The MSR JavaScript Cryptography Library contained multiple bugs in its elliptic curve cryptography implementation. An attacker could potentially use these to learn information about a server's private ECC key or to craft an invalid ECDSA signature that would still be accepted as valid.

Jonathan Burns Follow

Originally disclosed on Microsoft

Description

A Security Feature Bypass vulnerability exists in the MSR JavaScript Cryptography Library that is caused by multiple bugs in the library’s Elliptic Curve Cryptography (ECC) implementation. An attacker could potentially abuse these bugs to learn information about a server’s private ECC key (a key leakage attack) or craft an invalid ECDSA signature that nevertheless passes as valid. The security update addresses the vulnerability by fixing the bugs disclosed in the ECC implementation. In addition, an internal review resulted in other improvements to prevent rare failures in ECDH and ECDSA when using the NUMS curves.

FAQ

The vulnerable version of the MSR Crypto JavaScript Security library is 1.4. The version with the security update is 1.4.1. There are two possible steps required: Install the 1.4.1 update. If you are using the NIST P-521 curve, revoke and replace X.509 certificates issued using the NIST P-521 curve, and invalidate data signed by such certificates.

Microsoft Windows

Microsoft Windows

The original report as published on the Microsoft Security Response Center, by Jonathan Burns of Ionic Security ​. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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 multiple implementation errors in the library's elliptic curve cryptography code, including in ECDH and ECDSA handling of the NUMS curves.

Impact

An attacker could potentially recover information about a server's private ECC key or get a forged ECDSA signature accepted; the text does not describe any exploit in practice.

What the attacker needed

Library version 1.4 in use; P-521 users must replace certificates

The fix

The vulnerability was fixed in version 1.4.1, and users of the NIST P-521 curve should revoke and replace certificates issued with that curve and invalidate data signed by them.

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.

This library does the maths that keeps secret keys safe when software signs or encrypts data. Bugs in that maths can leak clues about a secret key, or let a forged signature be accepted as genuine. The vendor released a patched version and told users of one curve to replace affected certificates.

What is Crypto?

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

More from Microsoft

View all

The newest disclosed reports for this program.

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.