Closed Bug 1348767 Opened 7 years ago Closed 7 years ago

logical rather than bitwise OR operator used in OCSP requests

Categories

(NSS :: Libraries, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hrosik, Assigned: franziskus)

Details

(Keywords: sec-other)

Attachments

(1 file)

Richard Biener of the SUSE compiler team noticed a warning while testing GCC7, which pointed to NSS incorrectly using logical OR operator instead of the bitwise version in the OCSP requests code.

Patch against NSS trunk attached

CC: Marcus Meissner from the SUSE Security Team, who also reported this issue via email to <security@mozilla.org>.
Comment on attachment 8849033 [details] [diff] [review]
use bitwise OR instead of logical in OCSP requests

Review of attachment 8849033 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks for the patch!
Attachment #8849033 - Flags: review+
Assignee: nobody → franziskuskiefer
https://hg.mozilla.org/projects/nss/rev/0dca14409fefa9090db2a382d2dbfdc6d800852e
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.31
What's the severity of this? Do we need to consider backporting this to stable branches?
Flags: needinfo?(franziskuskiefer)
The issue is in libpkix, which isn't used by Firefox (and really shouldn't be used by anyone at this point). So no backporting necessary.
Flags: needinfo?(franziskuskiefer)
Keywords: sec-other
Group: crypto-core-security → core-security-release
(In reply to Franziskus Kiefer [:fkiefer or :franziskus] from comment #4)
> The issue is in libpkix, which isn't used by Firefox (and really shouldn't
> be used by anyone at this point). So no backporting necessary.

Other applications might still use it.
It seems this hash isn't used as part of the hash request that's sent out to the network.

If I'm reading the code correctly, this hash is simply used for an internal HashTable, so the function currently is using worse hashes than the code was trying to. If correct, then the only effect might be slowdown, as linear searches in that HashTable would occurr frequently.
Group: core-security-release
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: