Re: Buffer Overflow. What is it?

From: Bill Unruh (unruh_at_string.physics.ubc.ca)
Date: 05/24/04

  • Next message: Ford Prefect: "Re: ISO 17799 / BS 7799"
    Date: Mon, 24 May 2004 21:14:42 +0000 (UTC)
    
    

    "flap flop" <flap@home.net> writes:

    ]On Thu, 20 May 2004 00:24:53 +0000, Bill Unruh wrote:

    ]> tascienu@ecoaches.com (Tascien) writes:
    ]>
    ]> ]Hello,
    ]>
    ]> ]I saw so many buffer overflow attacks on Windows OS. Up to this time,
    ]> ]I don't understand how buffer overflow works???? Quite often on

    ][snip>

    ]> Why does the system allow writing beyond the end of an array? C does,
    ]> unless you use functions which do not. It is just bad programming. You
    ]> should always check the length of data you write to an array. But what
    ]> many will do is to allocate say 256 bytes for input data, and then
    ]> simply copy all the input data given to the routine into that array. If
    ]> the input data is 10496 bytes long, it will copy 10496 bytes into a 256
    ]> byte array. Instead of telling the system to only copy at most 256
    ]> bytes which a competent programmer would do.

    ]So, in case of damage due to malicious buffer overflow attacks, the
    ]software provider could be held liable?

    Yes, but good luck doing so. Somehow the law of torts got suspended where
    software was concerned. See the Year2000 fiasco for example. You had to pay
    for their incompetence. If attacks damage your computer, the software
    companies disclaim all responsibility. But charge you for upgrades.


  • Next message: Ford Prefect: "Re: ISO 17799 / BS 7799"

    Relevant Pages

    • Re: Buffer Overflow. What is it?
      ... ]I saw so many buffer overflow attacks on Windows OS. ... How can such event allows an attacker to put a program on the ... area allocated for that array. ... simply copy all the input data given to the routine into that array. ...
      (comp.security.misc)
    • Re: Buffer Overflow. What is it?
      ... >]I saw so many buffer overflow attacks on Windows OS. ... > simply copy all the input data given to the routine into that array. ... So, in case of damage due to malicious buffer overflow attacks, the ...
      (comp.security.misc)
    • Re: Size of any Data Type?
      ... >> provides such information with no chance of buffer overflow. ... > necessary feature of the language - a means for determining the size ... C does allow a function to specify the size of an array in its ... > often, probably more often than not, used in an unsafe fashion. ...
      (comp.programming)
    • Re: Buffer Overflow Errors
      ... >>it allows the OS to automatically kill any process that begins writing ... >>outside its own memory. ... an intentional malicious buffer overflow *never* writes outside ... > the end of the array. ...
      (comp.lang.java.programmer)
    • Buffer overflows .. not overflowing buffers ..
      ... I've reading about buffer overflow attacks -- from the Aleph One and ... Mudge tutorials ... ... On another note -- I'm looking for linux security exploits to run some ...
      (comp.os.linux.security)