RSA overflow check fails with really small modulus
Categories
(NSS :: Libraries, defect)
Tracking
(Not tracked)
People
(Reporter: iaroslav.gridin, Unassigned)
References
Details
(Keywords: reporter-external, sec-audit)
Attachments
(1 file)
Steps to reproduce:
call RSA_Sign with modulus size less than (3 + RSA_BLOCK_MIN_PAD_LEN)
Actual results:
heap overflow and memory overwrite. Security threat is not significant I think since that modulus is not normal.
Expected results:
check in rsa_FormatBlock worked and returned SECFailure
| Reporter | ||
Comment 1•3 years ago
|
||
In its current state, signed modulusLen overflows when it is less than
RSA_BLOCK_MIN_PAD_LEN + 3, the check fails and this leads to an
overflow in rsa_FormatOneBlock().
Comment 2•3 years ago
|
||
I'm flagging this as security sensitive until we have a chance to review it in detail.
Comment 3•3 years ago
|
||
John and Anne said this shouldn't affect Firefox because we impose a minimum key length for RSA keys
Comment 4•3 years ago
|
||
I am still leaving the security sensitive as installed for now.
Updated•3 years ago
|
Comment 5•3 years ago
|
||
Comment 6•2 years ago
|
||
Sorry for the burst of bugspam: filter on tinkling-glitter-filtrate
Adding reporter-external keyword to security bugs found by non-employees for accounting reasons
Description
•