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: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-ArrivalTime: 2001-12-21 20:05:38 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!chcgil2-snf1.gtei.net!news.gtei.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: Congratulations for the festive season Followup-To: comp.os.vms Date: 21 Dec 2001 22:04:50 -0600 Organization: LJK Software Distribution: world Message-ID: References: NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1008993938 20594 192.135.80.34 (22 Dec 2001 04:05:38 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Sat, 22 Dec 2001 04:05:38 +0000 (UTC) Summary: Appropriateness of Truncation depends on the application Xref: archiver1.google.com comp.os.vms:56738 alt.sys.pdp10:8593 comp.sys.dec:10122 In article , Mark Crispin writes: > 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. That is a rather bold statement for you to make without knowing the application ! The proper behaviour depends on the application, which is why the truncation is indicated in a status code.