Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security VulnWatch
[Top] [All Lists]

[Full-disclosure] OllyDbg "INT3 AT" Format String Vulnerability

Subject: [Full-disclosure] OllyDbg "INT3 AT" Format String Vulnerability
Date: Fri, 13 May 2005 15:04:16 +0200



OllyDbg "INT3 AT" Format String Vulnerability by Piotr Bania <bania.piotr@gmail.com> http://pb.specialised.info


Original location: http://pb.specialised.info/all/adv/olly-int3-adv.txt Severity: High / Medium - code execution. Version affected: Probably all versions, tested on v1.10.



     I. BACKGROUND

     "OllyDbg is a 32-bit assembler level analysing debugger for
      Microsoft Windows. Emphasis on binary code analysis makes it
      particularly useful in cases where source is unavailable."


II. DESCRIPTION

     Vulnerability takes place when module (with special crafted file
     name) executes int 3 instruction (trap to debugger).

     Here is the vulnerable code:

     .text:0042FBE0                 lea     eax, [ebp+buffer]
     .text:0042FBE6                 push    eax        ; format string
     .text:0042FBE7                 mov     edx, [ebp+var_28]
     .text:0042FBEA                 push    edx
     .text:0042FBEB                 call    sub_42E100 ; _vsprintf->
                                                       ;___vprinter


Where format is an ascii string like: "INT3 command at <module_name>.addr".

     Attacker can place a format string chars inside "<module_name>"
     (part of format buffor) and cause Olly to overwrite arbitary data.

     NOTE: Even with "IGNORE INT3 BREAKS" option checked, OllyDbg is
           still vulnerable. Attacker can also load some special crafted
           module (with special crafted name) while debugging, to make
           the attack more stealthy.


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 OllyDbg will fault
     and loose all debugged data.



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

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/

<Prev in Thread] Current Thread [Next in Thread>
  • [Full-disclosure] OllyDbg "INT3 AT" Format String Vulnerability, Piotr Bania <=