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

sice-adv.txt

sice-adv.txt
Posted Aug 14, 2005
Authored by Piotr Bania

Compuware Softice (DbgMsg driver) is susceptible to a local denial of service flaw.

tags | advisory, denial of service, local
SHA-256 | d0d925f20dc1bd78fb072fe01d69a8f72c38b5e48e7add0ec1a5c2ccb079a802

sice-adv.txt

Change Mirror Download

Compuware Softice (DbgMsg driver) Local Denial Of Service
by Piotr Bania <bania.piotr@gmail.com>
http://pb.specialised.info

Original location: http://pb.specialised.info/all/adv/sice-adv.txt



Severity: Low / Medium - BSOD (Blue Screen Of Death) DOS

Software affected: Tested on Softice from DriverStudio 3.2 and 3.1.
However all version with DbgMsg.sys driver
installed should be marked as vulnerable.




I. BACKGROUND

SoftICE is a powerful system-wide debugger that supports source level
debugging of any software, driver, service, and most bios code on either
a single or dual machine configuration.


II. DESCRIPTION

On NT based operating systems Debug Messages are being sent by executing
the OutputDebugString API (ring3 applications) or by executing
DbgPrint() function (also known as KdPrint(), mostly used by ring0
"applications").

However not only kernel mode stuff can execute DbgPrint() since it is
exported by NTDLL.DLL - so called native calls. If we go forward we will
see that actually the final pass of the Debug Message is done by
executing INT 2Dh, like following example shows:


----// SNIP SNIP //-------------------------------------------------

mov ecx,offset some_string ; Debug Message offset
xor edx,edx ; second Param (NULL in this case)
mov eax,1 ; Service Type here defined as
; BREAKPOINT_PRINT (=1)

int 2dh
int 3
nop <--- int 2dh returns here not to int 3

----// SNIP SNIP //-------------------------------------------------

When Softice is installed - DbgMsg.sys driver is loaded (user should
also notice that even when Softice is not active, the system is still
vulnerable), executed 2d interrupt will be firstly filtered by
DbgMsg.sys routine. This is probably provided to capture are flying
Debug Messages and display them into the debugger window.

However the driver doesn't validate the Debug Message pointer properly,
this can cause an machine crash when the pointer is invalid.


III. IMPACT

Executing special crafted "int 2dh" request will cause local machine
crash on system with DbgMsg.sys driver installed, *even* when Softice is
not active. This attack can be also used as a very nasty anti-debugging
trick against Softice users.

IV. POC CODE

Sample POC code was developed.



best regards,
Piotr Bania


--
--------------------------------------------------------------------
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:

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
    44 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