RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1190303 - Key strength validation is not performed for RC4 algorithm
Summary: Key strength validation is not performed for RC4 algorithm
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: jss
Version: 6.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Christina Fu
QA Contact: Asha Akkiangady
URL:
Whiteboard:
Depends On: 1133717 1133718
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-07 00:40 UTC by Matthew Harmsen
Modified: 2015-07-22 06:28 UTC (History)
10 users (show)

Fixed In Version: jss-4.2.6-35.el6
Doc Type: Bug Fix
Doc Text:
Prior to this update, the source code for JSS was missing a condition for validating the key strength for the RC4 software stream cipher. As a consequence, JSS did not validate the key strength properly. A patch has been applied to fix this bug, and JSS now performs key strength validation checks as expected. (BZ#1190303)
Clone Of: 1133718
Environment:
Last Closed: 2015-07-22 06:28:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch to verify RC4 strength (789 bytes, patch)
2015-02-13 17:30 UTC, Matthew Harmsen
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1315 0 normal SHIPPED_LIVE jss bug fix and enhancement update 2015-07-20 17:53:25 UTC

Comment 1 Matthew Harmsen 2015-02-13 17:30:51 UTC
Created attachment 991449 [details]
Patch to verify RC4 strength

Comment 3 Roshni 2015-04-13 19:09:17 UTC
Need more information on how this bug can be verified on RHEL 6.7

Comment 4 Nathan Kinder 2015-04-14 19:34:05 UTC
(In reply to Roshni from comment #3)
> Need more information on how this bug can be verified on RHEL 6.7

You would have to write a custom client for JSS, as the RHCS REST interface that was used to find this issue does not exist on RHEL 6.x.  It should be sufficient to validate this as sanity only by applications that use JSS.

Comment 5 Roshni 2015-04-14 20:42:46 UTC
I downloaded and extracted the src files from jss-4.2.6-35.el6.src.rpm and verified the code for the changes for this bug. 

public static final KeyGenAlgorithm
    RC4 = new KeyGenAlgorithm(CKM_RC4_KEY_GEN, "RC4",
            new KeyStrengthValidator() {
                public boolean isValidKeyStrength(int strength) {
                    return true;
                }
            }, null, null);

The expected is:

public static final KeyGenAlgorithm
    RC4 = new KeyGenAlgorithm(CKM_RC4_KEY_GEN, "RC4",
            new KeyStrengthValidator() {
                public boolean isValidKeyStrength(int strength) {
                    return strength>=40 && strength <= (256*8);
                }
            }, null, null);

Comment 6 Christina Fu 2015-04-14 20:49:15 UTC
Roshni,
How did you look at the source?  JSS is built with the rpmbuild patching system where patches are patched in during the build.  For example, this particular patch is called something like:
jss-RC4-strengh-verify.patch

You will have to rpmbuild it to look.  Was that what you did?

Comment 7 Roshni 2015-04-15 17:03:21 UTC
OK, I was looking at mozilla/security/jss/org/mozilla/jss/crypto/KeyGenAlgorithm.java. I checked jss-RC4-strengh-verify.patch and I see the change there.

I was able to verify https://bugzilla.redhat.com/show_bug.cgi?id=1167470 and https://bugzilla.redhat.com/show_bug.cgi?id=1190302 which are application that use jss. So verifying this bug are sanity only.

Comment 9 errata-xmlrpc 2015-07-22 06:28:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-1315.html


Note You need to log in before you can comment on or make changes to this bug.