RedHatOfficial / rhsecapi

Tools that utilize the Red Hat Security Data API
GNU General Public License v3.0
61 stars 27 forks source link

Script does not run out of the box #4

Closed sferich888 closed 7 years ago

sferich888 commented 7 years ago

$ --> ./rhsecapi CVE-2015-7501

Missing optional python module: argcomplete
Install it to enable bash auto-magic tab-completion:
  yum/dnf install python-pip; pip install argcomplete
  activate-global-python-argcomplete; (Then restart shell)

Traceback (most recent call last):
  File "./rhsecapi", line 540, in <module>
    main(opts)
  File "./rhsecapi", line 527, in main
    a.print_cve(cve)
  File "./rhsecapi", line 400, in print_cve
    print("{0}: {1}".format(prog, e), file=stderr)
TypeError: __str__ returned non-string (type Error)
sferich888 commented 7 years ago

This seems to be caused because CVE data can't be pulled from the API.

        try:
            requrl, j = self.rhsda.get_cve(cve)
        except requests.exceptions.ConnectionError as e:
            print("{0}: {1}".format(prog, e), file=stderr)
            exit(1)

This may be a temporary issue? Doing some debugging it looks like SSL related issues?

ryran commented 7 years ago

Must be temporary. Works for me.

╔═[rsaw@xala 12:45 ~] {0} $ rhsecapi CVE-2015-7501 --verbose 
Getting 'https://access.redhat.com/labs/securitydataapi/cve/CVE-2015-7501.json' ...
CVE-2015-7501
  IMPACT:  Critical
  BUGZILLA:  1279330
  AFFECTED_RELEASE (ERRATA)
   Red Hat Enterprise Linux 5 [jakarta-commons-collections-0:3.2-2jpp.4]: RHSA-2015:2671
   Red Hat Enterprise Linux 6 [jakarta-commons-collections-0:3.2.1-3.5.el6_7]: RHSA-2015:2521
   Red Hat Enterprise Linux 7 [apache-commons-collections-3.2.1-22.el7_2]: RHSA-2015:2522
   Red Hat JBoss A-MQ 6.2: RHSA-2015:2557
   Red Hat JBoss BPMS 6.0: RHSA-2015:2579
   Red Hat JBoss BPMS 6.2: RHSA-2015:2560
   Red Hat JBoss BRMS 6.1: RHSA-2015:2578
   Red Hat JBoss BRMS 6.2: RHSA-2015:2559
   Red Hat JBoss Data Grid 6.4: RHSA-2015:2502
   Red Hat JBoss Data Grid 6.5: RHSA-2015:2502
   Red Hat JBoss Data Virtualization 6.0: RHSA-2015:2534
   Red Hat JBoss Data Virtualization 6.1: RHSA-2015:2534
   Red Hat JBoss Data Virtualization 6.2: RHSA-2015:2534
   Red Hat JBoss Enterprise Application Platform 4.3: RHSA-2015:2514
   Red Hat JBoss Enterprise Application Platform 5 for RHEL 4 AS [jakarta-commons-collections-0:3.2.1-5.ep5.el4]: RHSA-2015:2535
   Red Hat JBoss Enterprise Application Platform 5 for RHEL 5 Server [jakarta-commons-collections-0:3.2.1-5.ep5.el5]: RHSA-2015:2535
   Red Hat JBoss Enterprise Application Platform 5 for RHEL 6 Server [jakarta-commons-collections-0:3.2.1-5.ep5.el6]: RHSA-2015:2535
   Red Hat JBoss Enterprise Application Platform 5.1: RHSA-2015:2514
   Red Hat JBoss Enterprise Application Platform 5.2: RHSA-2015:2514
   Red Hat JBoss Enterprise Application Platform 6 for RHEL 5 Server [apache-commons-collections-eap6-0:3.2.1-16.redhat_5.1.ep6.el5]: RHSA-2015:2500
   Red Hat JBoss Enterprise Application Platform 6 for RHEL 5 Server [apache-commons-collections-eap6-0:3.2.1-16.redhat_5.1.ep6.el5]: RHSA-2015:2536
   Red Hat JBoss Enterprise Application Platform 6 for RHEL 5 Server: RHSA-2015:2538
   Red Hat JBoss Enterprise Application Platform 6 for RHEL 6 Server [apache-commons-collections-eap6-0:3.2.1-16.redhat_5.1.ep6.el6]: RHSA-2015:2500
   Red Hat JBoss Enterprise Application Platform 6 for RHEL 6 Server [apache-commons-collections-eap6-0:3.2.1-16.redhat_5.1.ep6.el6]: RHSA-2015:2536
   Red Hat JBoss Enterprise Application Platform 6 for RHEL 6 Server: RHSA-2015:2539
   Red Hat JBoss Enterprise Application Platform 6 for RHEL 6 Server [jboss-ec2-eap-0:7.5.5-3.Final_redhat_3.ep6.el6]: RHSA-2015:2542
   Red Hat JBoss Enterprise Application Platform 6.3 for RHEL 7 Server [apache-commons-collections-eap6-0:3.2.1-16.redhat_5.1.ep6.el7]: RHSA-2015:2500
   Red Hat JBoss Enterprise Application Platform 6.3 for RHEL 7 Server [apache-commons-collections-eap6-0:3.2.1-16.redhat_5.1.ep6.el7]: RHSA-2015:2536
   Red Hat JBoss Enterprise Application Platform 6.3 for RHEL 7 Server: RHSA-2015:2540
   Red Hat JBoss Enterprise Application Platform 6.1: RHSA-2015:2501
   Red Hat JBoss Enterprise Application Platform 6.2: RHSA-2015:2501
   Red Hat JBoss Enterprise Application Platform 6.3: RHSA-2015:2501
   Red Hat JBoss Enterprise Application Platform 6.4: RHSA-2015:2501
   Red Hat JBoss Enterprise Application Platform 6.4: RHSA-2015:2541
   JBoss Enterprise BRMS Platform 5.3: RHSA-2015:2670
   Red Hat JBoss Portal 6.2: RHSA-2015:2537
   Red Hat JBoss SOA Platform 5.3: RHSA-2015:2516
   Red Hat JBoss Web Server 3.0: RHSA-2015:2548
   Red Hat JBoss Fuse 6.2: RHSA-2015:2556
   Red Hat JBoss Fuse Service Works 6.0: RHSA-2015:2517
   Red Hat JBoss Operations Network 3.1: RHSA-2016:0040
   Red Hat JBoss Operations Network 3.2: RHSA-2015:2547
   Red Hat JBoss Operations Network 3.3: RHSA-2015:2524
   Red Hat JBoss Operations Network 3.3: RHSA-2016:0118
   RHOSE Client 2.0 [jenkins-1.651.2-1.el6op]: RHSA-2016:1773
   Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) [rh-java-common-apache-commons-collections-3.2.1-21.13.el6]: RHSA-2015:2523
   Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) [rh-java-common-apache-commons-collections-3.2.1-21.13.el7]: RHSA-2015:2523
  PACKAGE_STATE
   Affected: Red Hat Jboss BRMS 5 [jbossas]
   Affected: Red Hat JBoss Portal 5 [jbossas]
   Affected: Red Hat Jboss Enterprise SOA Platform 4 [JBossAS]
   Affected: Red Hat Jboss Enterprise SOA Platform 5 [JBossAS]
   Affected: Red Hat Jboss Enterprise SOA Platform 5 [jbossas]
   Not affected: Red Hat JBoss EWS 2 [tomcat]
   Affected: Red Hat Jboss Fuse Service Works 6 [jbossas]
   Affected: Red Hat Subscription Asset Manager 1 [jasperreports-server-pro]
   Affected: RHEV-M for Servers [jasperreports-server-pro]
ryran commented 7 years ago

Let me know if you ever figure out what was going on with your system Eric.