Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Aug 2010
    Posts
    3

    Exclamation how can I tell if my cpanel ssh is patched?

    I just ran a PCI vulnerability scan on my system and it came up with the following CVEs: CVE-2006-5051, CVE-2006-5052 (both of these are related to OpenSSH versions prior to 4.4).

    I'm pretty sure that, being 4 years old, OpenSSH has been patched. My ssh version:

    # ssh -v
    OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008

    and RPMs installed:

    # rpm -qa | grep -i ssh
    openssh-clients-4.3p2-41.el5
    openssh-4.3p2-41.el5
    openssh-server-4.3p2-41.el5

    My question: how can I tell if I'm *really* vulnerable or not? I can look at the CVE database which lists packages and their signatures, but I don't know of a way to get a signature from a package that's already installed. Is there a way? Or is there a more reliable way to tell if I'm patched?

    Scott

  2. #2
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default rpm -q --changelog

    The --changelog argument to the rpm command will let you query installed packages to see the changelog. This will let you see which CVEs have had patches applied.

    Code:
    # rpm -q --changelog openssl
    * Fri Mar 12 2010 Tomas Mraz <tmraz@redhat.com> 0.9.8e-12.6
    - fix CVE-2009-3245 - add missing bn_wexpand return checks (#570924)
    
    * Thu Mar 04 2010 Tomas Mraz <tmraz@redhat.com> 0.9.8e-12.5
    - fix CVE-2010-0433 - do not pass NULL princ to krb5_kt_get_entry which
      in the RHEL-5 and newer versions will crash in such case (#569774)
    This can generate a very long list covering the entire history of the package, so you may want to pipe the output to a file then read the file using less:

    Code:
    # rpm -q --changelog openssl > openssl.changelog
    # less openssl.changelog
    Due to the way Red Hat manages version numbers (and CentOS follows), the version number is not always updated when a CVE is patched, so it is necessary to read the changelog to find proof that a patch was applied.

    If you have a specific CVE number, as you do, you can use grep to check quickly to see if it is mentioned in the changelog:

    Code:
    # rpm -q --changelog openssh > openssh.changelog
    # grep CVE-2006-5051 openssh.changelog 
    - CVE-2006-5051 - don't call cleanups from signal handler (#208459)
    # grep CVE-2006-5052 openssh.changelog 
    - fix an information leak in Kerberos password authentication (CVE-2006-5052)
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  3. #3
    Registered User
    Join Date
    Aug 2010
    Posts
    3

    Default perfect

    Just what I was looking for—thanks!

    Is there a similar command or site for built-in packages (such as Apache)?

  4. #4
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default Only for RPM packages

    This technique will only work for services that are installed via RPM package, such as MySQL, Pure-FTPd, ProFTPd, Exim, Courier-IMAP and Dovecot. Since Apache is built from source, not installed via RPM package, on a cPanel server, the rpm database will have no information about it.

    You can see the list of modules compiled into Apache using the following command:

    Code:
    # /usr/local/apache/bin/httpd -l
    You can get version information about Apache using the following command:

    Code:
    # /usr/local/apache/bin/apachectl status
    You can see the configure command used to compile PHP, and all extensions included and configured settings, using the following command:

    Code:
    # php -i
    The output is usually lengthy, so I recommend redirecting it to a file. It is the same as creating the following PHP script and calling it from a Web browser:

    Code:
    <?php
        phpinfo();
    ?>
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  5. #5
    Registered User
    Join Date
    Aug 2010
    Posts
    3

    Default CVE-2008-2939: mod_proxy_ftp

    How could I tell whether this particular CVE has been patched, then? I've found another forum post:

    Apache 2.2.10 Released - cPanel Forums

    but it applies to Apache 2.2.10 only.

    I'm running:
    Code:
    # httpd -v
    Server version: Apache/2.0.63
    Server built:   Jul 30 2010 03:17:02
    Cpanel::Easy::Apache v3.2.0 rev5158

  6. #6
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb Re: CVE-2008-2939: mod_proxy_ftp

    Quote Originally Posted by scottw View Post
    How could I tell whether this particular CVE has been patched, then? I've found another forum post:

    Apache 2.2.10 Released - cPanel Forums

    but it applies to Apache 2.2.10 only.

    I'm running:
    Code:
    # httpd -v
    Server version: Apache/2.0.63
    Server built:   Jul 30 2010 03:17:02
    Cpanel::Easy::Apache v3.2.0 rev5158
    Via a quick search I found the following resources that you may review regarding CVE-2008-2939:
    I believe that if you do not have mod_proxy installed in Apache/httpd then the vulnerability (CVE-2008-2939) may not apply.

    Using one of the same commands mentioned by cPanelJared you may determine if the Apache/httpd installation includes mod_proxy_ftp.
    Quote Originally Posted by cPanelJared View Post
    You can see the list of modules compiled into Apache using the following command:
    Code:
    # /usr/local/apache/bin/httpd -l
    The Apache module "mod_proxy" includes "mod_proxy_ftp" -- you may disable or remove mod_proxy altogether by unticking/unchecking its option in the Exhaustive Options list while running EasyApache to recompile Apache and PHP.

    Reference menu path and additional documentation:
    While you may use WHM to run EasyApache, you may also execute EasyApache using the following command via root SSH access:
    Code:
    # /scripts/easyapache

Similar Threads & Tags
Similar threads

  1. How to connect in SSH after create key in Manage SSH Keys
    By konrath in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-03-2009, 10:57 PM
  2. Whats is the equivelent version of the patched openssl-0.9.7a-43.14?
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-28-2007, 10:35 PM
  3. Check Server in SSH (the service status in whm, but in ssh)
    By drumhtd in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-30-2005, 04:16 PM
  4. Custom ssh port for CPanel SSH client
    By yaax in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 10-24-2004, 12:22 PM
  5. ProFTPd patched? Root exploit possible
    By dariofg2 in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 11-10-2003, 01:38 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube