Welcome, Guest. Please login or register.
Did you miss your activation email?
May 21, 2013, 07:14:00 PM

Login with username, password and session length

663458 Posts
70536 Topics
145194 Members

Latest Member: Oitagxgu

Search:     Advanced search | Tag Cloud
+  Welcome to the Comodo Forum
|-+  Learn about Computer Security and Interact with Security Experts
| |-+  Leak Testing/Attacks/Vulnerability Research
| | |-+  Buffer Overflow Protection
« previous next »
Pages: [1] Go Down Print
Author Topic: Buffer Overflow Protection  (Read 3910 times)
Mii
Newbie
*
Offline Offline

Posts: 2


« on: March 04, 2010, 09:50:24 PM »

Did anyone of comodo notice, that a real world buffer overflow not neccessarily has to call APIs by using the "usual" entry points.

What happens in Windows is, is the Windows API forwards the call from user mode into kernel mode with  small stubs of code that issue an interrupt that transfers into kernel mode. From there, some other code runs in kernel mode, the actual functions body.

So what any exploit can do, is simply use the existing call gates loading some registers (function id), pushing parameters on the stack and issuing an interrupt to actually call the function bypassing commodo's "protection" against buffer overflows at user mode API level.

You guys are funny. I recommend to stick with a solution like Sys-Manage BufferShield or a computer having hardware DEP properly enabled than using such a placebo security. Sorry. Failure!  Police

PS: I can release some proof of concept if you like...
« Last Edit: March 04, 2010, 10:10:07 PM by Mii » Logged
jay2007tech
Malware Research Group
Global Moderator
Comodo's Hero
*****
Offline Offline

Posts: 1795


« Reply #1 on: March 04, 2010, 10:19:03 PM »

Quote
PS: I can release some proof of concept if you like...
It would help clarify things

can you include if your use proactive mode or not (right click on the icon will let you select the mode)
« Last Edit: March 04, 2010, 10:21:28 PM by jay2007tech » Logged

It's hard being a crooked Admin when the files won't pass an md5checksum test.  But like any other good crooked Admin it can be done, it just takes time(and lots of it) and a few aspirins
Mii
Newbie
*
Offline Offline

Posts: 2


« Reply #2 on: March 05, 2010, 08:19:43 AM »

It would help clarify things

can you include if your use proactive mode or not (right click on the icon will let you select the mode)

Callgates explained:
http://www.geoffchappell.com/viewer.htm?doc=studies/windows/km/cpu/sep.htm

Basically all you need is a little snippet of code to invoke the callgate, as shown in this article for example. I tried it already with your protection enabled.

The following behaviour will be exposed:
-API Call directly failed (because used-mode stub is hooked and redirected into commodo where it gets return address on the stack gets verified).
-Using the callgate machanism (SYSENTER) to directly call the kernel works (you do not even need addresses)
-I did not try the call method to invoke the call gate, which relies on calling into a code area that runs as  kernel in GDT/LDT causing a transition to kernel mode as SYSENTER is easier, portable and supported anyways today on most of the systems

I will upload some code later, in a few hours, if you still like...
« Last Edit: March 05, 2010, 10:18:33 AM by Mii » Logged
jay2007tech
Malware Research Group
Global Moderator
Comodo's Hero
*****
Offline Offline

Posts: 1795


« Reply #3 on: March 05, 2010, 09:45:14 PM »

Quote
I will upload some code later, in a few hours, if you still like...
As a old saying goes "Let's see what you got"


Also maybe a developer can comment on this or you can PM "EricJH" or "Panic", with your P.O.C exploit code  then they can forward it to the right place if you want to keep it private.  If it's good to go and it gets fixed, you could also ASK if you can have your name status next to it in the changelog like some other person did (I think their was "MJ")  Not sure <---I think that was that persons name Smiley  Of course, some other people don't want a name to claim either.   Wink

I think the people here will be more than happy on whatever you choose to do or even if you change your mind



Logged

It's hard being a crooked Admin when the files won't pass an md5checksum test.  But like any other good crooked Admin it can be done, it just takes time(and lots of it) and a few aspirins
EricJH
Global Moderator
Comodo's Hero
*****
Offline Offline

Posts: 16695



« Reply #4 on: March 11, 2010, 11:01:00 PM »

We like something we can click on to put it simple.

Please provide us with a Proof of Concept. Tell us what we would expect to be detected and show us that it doesn't happen. Also provide us with a clear and concise description of how D+ can be bypassed and why that is happening.

Jaytech is referring to wj32 who posted several PoC's here and got his name mentioned in the change logs.
Logged

SS26
Comodo's Hero
*****
Offline Offline

Posts: 1925


« Reply #5 on: March 12, 2010, 04:54:59 PM »

...wj32 who posted several PoC's here...
IIRC wj32 calls his related programs "test tools".

...("POC" is a name I hate as well)...

...sorry for Off-Topic!
« Last Edit: March 12, 2010, 05:08:35 PM by SS26 » Logged
Tags: buffer overflow protection 
Pages: [1] Go Up Print 
« previous next »
Jump to:  

SSL Certificate Free Virus Removal Firewall
Page created in 0.066 seconds with 21 queries.
Powered by SMF 1.1.18 | SMF © 2006, Simple Machines Design by 7dana.com