From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdb0e,cdca3dc8d6167cd4 X-Google-Attributes: gidfdb0e,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-12-21 20:07:48 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.shore.net!Ives.egh.com!JOHN Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec From: John Santos Subject: Re: Congratulations for the festive season In-Reply-To: Message-ID: <1011221225646.59837A-100000@Ives.egh.com> References: <1011221190540.59837B-100000@Ives.egh.com> <1011221211958.59837A-100000@Ives.egh.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Date: Fri, 21 Dec 2001 23:08:40 -0500 NNTP-Posting-Host: 209.192.204.112 X-Complaints-To: abuse@shore.net X-Trace: news.shore.net 1008994063 209.192.204.112 (Fri, 21 Dec 2001 23:07:43 EST) NNTP-Posting-Date: Fri, 21 Dec 2001 23:07:43 EST Organization: Shore.Net, a PRIMUS Company (info@shore.net) Xref: archiver1.google.com comp.os.vms:56739 alt.sys.pdp10:8594 comp.sys.dec:10123 On Fri, 21 Dec 2001, Mark Crispin wrote: > On Fri, 21 Dec 2001, John Santos wrote: > > > Oh dear, oh my. There's a whole class of attacks relating to truncation. > > I guess you don't understand the difference between attempting to > > copy a long string of your own (the programmer's) choosing into > > too small a buffer (program bug) and copying a long string of some > > external user's choosing into too small a buffer (attempted buffer > > overflow expoit defeated.) Or are you just pretending to be stupid? > > No. You're too stupid to understand how the truncation of a long string > of some external user's choosing to fit into too small a buffer can be a > completely different security bug from a buffer overflow. > > I'll give you a hint. Truncation and proceeding is not the right thing. > Generating an error and rejecting the entire request is. > > I'll give you a hint: payload. > > -- Mark -- Since you snipped the part of my original post where I mentioned that the programmer has a choice between truncating the source string to fit or handling it as an error when the source is too long, you are clearly here only to troll and not to help other people write better programs. But if the user-provided string is too long, and your program ignores part of it and processes the rest, I don't see how this can result in a security problem[*]. The result clearly won't be what the user wanted, but that's a good thing, since he was trying to exploit or crash your system. [*] Unless something farther down the chain remembers the original length of the source string, but looks at the contents of your fixed length (and too small) buffer. If that happens, you are not using counted strings correctly (taking length of string B and assuming that's the length of string B), which means you aren't using counted strings, just paying lip service to them. -- John Santos Evans Griffiths & Hart, Inc. 781-861-0670 ext 539