Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: vulndev-1 and a suggestion about the ensuing discussion

From: xenophi1e <oliver.lavery(at)sympatico.ca>
Date: Thu May 15 2003 - 12:46:57 EDT
('binary' encoding is not supported, stored as-is)
In-Reply-To: <200305142359.h4ENxLHw004175@mail.rev.net>

>The second aspect is also interesting, but to my view *separate*: if my
you
>cause in various operating systems and with particular C compilers if
you
>can clobber that one byte off the end of a malloc" [with the answer
being
>"a widely variable amount of damage, of course..:o)]. And I realize
this

On a related note, how many ways are there of preventing this sort of error, or at least preventing it from being a security issue? To me that's more interesting than a blow by blow of the impact...

  1. Don't make silly mistakes. Obviously this isn't going to happen.
  • Use canaries in the allocator. What's the best way to do this? For one byte overflows a simple value at the end that's difficult to guess would have saved this snippet from being 0wn3d. What about a longer overflow as might have resulted from using strcpy?
  • How could the layout of malloc()s bookeeping info be smarter? Are there any platforms that have allocators that are more robust against overruns?

    Perhaps this is off-topic for some, but it seems like the most interesting part of a problem like this, to me...

    Cheers,
    ~ol Received on Thu May 15 16:34:45 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:39 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library