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

Audacity 1.3 Beta DLL Hijacking

Audacity 1.3 Beta DLL Hijacking
Posted Nov 1, 2010
Authored by Salvatore Fresta

Audacity versions 1.3 Beta and below suffer from a DLL hijacking vulnerability.

tags | exploit
SHA-256 | c76de81a128e088f9523987dbb4adca911014333dd6457c2c5be5ce1c0f137be

Audacity 1.3 Beta DLL Hijacking

Change Mirror Download
Audacity <= 1.3 Beta Multiple Local Vulnerabilities

Name Audacity
Vendor http://audacity.sourceforge.net
Versions Affected <= 1.3 Beta

Author Salvatore Fresta aka Drosophila
Website http://www.salvatorefresta.net
Contact salvatorefresta [at] gmail [dot] com
Date 2010-10-29

X. INDEX

I. ABOUT THE APPLICATION
II. DESCRIPTION
III. ANALYSIS
IV. SAMPLE CODE
V. FIX


I. ABOUT THE APPLICATION
________________________

Audacity is free, open source software for recording and
editing sounds.


II. DESCRIPTION
_______________

The vulnerabilities are caused due to the application
loading libraries in an insecure manner.

I tested the versions 1.2.6 (stable) and the 1.3 Beta.

Other versions could be vulnerable.


III. ANALYSIS
_____________

Summary:

A) Unsafe DLL Loading
B) DLL Hijacking


A) Unsafe DLL Loading
_____________________

Audacity tries to load each DLLs present in the Plug-Ins
directory without specifing any name. This can be
exploited to execute arbitrary code with the privileges
of the current logged user.

I/O on filesystem and socket have been tested correctly.


B) DLL Hijacking
________________

The Audacity's installation folder by defaul t doesn't
contains DLLs files. When it tries to load some DLLs,
first of all, looks at the installation directory and
after in system32 directory.
Due of this is possible to hijack the load operation in
order to load a malicious DLL file with the same name.
The following is the list of affected DLLs:

wintrust.dll
msasn1.dll
msacm32.dll
midimap.dll
wsock32.dll
ws2_32.dll
ws2help.dll
winmm.dll
lpk.dll
usp10.dll
setupapi.dll
crypt32.dll


IV. SAMPLE CODE
_______________

A/B) Unsafe DLL Loading / DLL Hijacking


The following is the sample code (evil.c) for
wintrust.dll:

// compile: gcc -shared -o psapi.dll evil.c

#include <windows.h>

BOOL WINAPI DllMain (HANDLE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{

MessageBox(0, "DLL Hijacking!", "Salvatore Fresta", MB_OK);

return TRUE;
}


Just copy it to Plug-Ins directory to exploiting the
first security flaw and into the installation directory
to exploiting the second security flaw.


V. FIX
______

No fix.

Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    36 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 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