what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

datarescueFormat.txt

datarescueFormat.txt
Posted Mar 22, 2005
Authored by Piotr Bania | Site pb.specialised.info

DataRescue Interactive Disassembler Pro Debugger version 4.7.0.830 is susceptible to a format string vulnerability.

tags | advisory
SHA-256 | 773388d7564b4366007ac68dcced05047436cdbab9554cbdcbac7aa936ac97e2

datarescueFormat.txt

Change Mirror Download

DataRescue Interactive Disassembler Pro Debugger Format String
Vulnerability
by Piotr Bania <bania.piotr@gmail.com>
http://pb.specialised.info


Severity: High / Medium - code execution.
Versions affected: Probably all versions, however tested on
4.7.0.830.


I. BACKGROUND

"The IDA Pro Disassembler and Debugger is an interactive,
programmable, extendible,
muti-processor disassembler hosted on Windows or on Linux. IDA
Pro has become the
de-facto standard for the analysis of hostile code, vulnerability
research and COTS
validation (...) IDA supports debugging of x86 Windows PE files,
AMD64 Windows PE
files, and x86 Linux ELF files, either locally or remotely."

MORE AT: http://www.datarescue.com


II. DESCRIPTION

The problem exist when IDA Debugger tries to write informations about
loaded dynamic link library (when LOAD_DLL_DEBUG_EVENT /
UNLOAD_DLL_DEBUG_EVENT
occurs)

Lets look at following sample code to get a better view:

-- snip --
call a
db "KERNEL32.DLL",0
a:
call LoadLibraryA
int 3
-- snip --

Following code should return KERNEL32.DLL base stored in EAX
register.
IDA Debugger shows EAX as: "EAX=77E60000 -> kernel32.dll:77E60000"
(general registers window) - this is one of the examples.
However when loaded library name includes special format
specifiers the
vulnerability takes place, here is the vulnerable code:

(disassembly of ida.wll)
.text:012563F8 mov esi, [ebp+arg_0]
.text:012563FB push [ebp+arg_C]
.text:012563FE push dword_12A27C4
.text:01256404 push 0
.text:01256406 push ebx ; format
string
.text:01256407 lea eax, [ebp+arg_0]
.text:0125640A push eax
.text:0125640B push offset sub_12562C0
.text:01256410 call sub_011D1C78 ; parser

Where EBX contains format specifier supplied by attacker.


III. IMPACT

This vulnerability after successful exploitation can allow the
attacker to run arbitrary code in context of current user.
Of course if the exploitation was not successful IDA Debugger
will fault or IDA can freeze (100% cpu - database corruption).

Note that potencial attacker can drop "baddll" on the fly, there
are few variants.

IV. POC CODE

The POC code was released for vendor.


--
--------------------------------------------------------------------
Piotr Bania - <bania.piotr@gmail.com> - 0xCD, 0x19
Fingerprint: 413E 51C7 912E 3D4E A62A BFA4 1FF6 689F BE43 AC33
http://pb.specialised.info - Key ID: 0xBE43AC33
--------------------------------------------------------------------
Login or Register to add favorites

File Archive:

October 2024

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