Open Bug 1096777 Opened 10 years ago Updated 2 years ago

Properly handle JWK keys that have "oth" populated

Categories

(Core :: Security, defect)

defect

Tracking

()

People

(Reporter: rbarnes, Unassigned)

References

(Blocks 1 open bug)

Details

If a JWK includes an "oth" field, then its modulus has more than 2 prime factors. In this case, using the "p", "q", "dp", "dq", etc. elements -- anything besides "n", "e", and "d" -- results in incorrect operation. Unfortunately, the current WebCrypto implementation does exactly this. NSS doesn't support multi-prime, and doesn't accept private keys that have only "n", "e", and "d", so we need to update CryptoKey::PrivateKeyFromJwk to reject keys that include "oth".
Blocks: web-crypto
Component: DOM: Security → Security
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.