Buffer overflow - CompWisdom
About us  |  Why use us?  |  Press  |  Contact us

 

Topic: Buffer overflow


  
 Buffer overflow - Wikipedia, the free encyclopedia
Constructing functional buffer overflow exploits in Windows typically requires knowledge of the precise location of various machine language opcodes in the compromised software or included DLLs, because the location of the stack cannot be reliably predicted.
In computer security and programming, a buffer overflow, or buffer overrun, is an anomalous condition where a process attempts to store more data in a buffer than there is memory allocated for it.
Buffer overflows are thus avoided by maintaining a high degree of correctness in code which performs buffer management.
http://en.wikipedia.org/wiki/Buffer_overrun   (2065 words)

  
 Improving Security: Buffer Overflows - What Are They and What Can I Do About Them?
Buffer overflows make a mess and they can cause my computer's programs to lose their mind.
A buffer overflow is possible because the creator of a computer program wrote lines of code that do not properly check the size of the destination area or buffer – the five-pound container – to see if it is big enough to completely hold its new contents – the ten pounds of sugar.
Since buffer overflows are a programming problem, they can only be permanently fixed by repairing the broken program code.
http://www.cert.org/homeusers/buffer_overflow.html   (1029 words)

  
 What is a buffer overflow attack?
Buffer overflow attacks involve sending overly long input streams to the attacked server, causing the server to overflow parts of the memory and either crash the system or execute the attacker's arbitrary code as if it was part of the server's code.
If the programmer allocates a buffer of a specific size and the attacker provides an input longer than the defined size, the input would most probably overflow the buffer and override other parts of the stack, including the function's return address that resides on the stack.
Buffer overflow attacks are prevented by enforcing boundary checking on input received from users.
http://www.imperva.com/application_defense_center/glossary/buffer_overflow.html   (809 words)

  
 Hello World - Attack Class: Buffer Overflows
Buffer overflow vulnerabilities therefore represent a class of security problem of great importance to computer users, whether they be programmers, system administrators or users.
Buffer overflows in suid programs are generally classed as local vulnerabilities - that is, in order to exploit them, an attacker must have interactive login access to the target machine.
The l0pht has issued a number of advisories about buffer overflows in Windows software and has in some cases provided exploit code.
http://www.cosc.brocku.ca/~cspress/HelloWorld/1999/04-apr/attack_class.html   (4593 words)

  
 BufferOverflow / Internet Security Lectures by Prabhaker Mateti
Further imagine that the original value was provided by an untrusted user, and that the copying is part of a process to pass a resulting computation to a function.
Exceeding array bounds is referred to in security circles as "buffer overflow." These are by far the most common security problems in software.
This general approach is recommended by the GNU programming guidelines, since it permits programs to handle arbitrarily-sized inputs (until they run out of memory).
http://www.cs.wright.edu/~pmateti/InternetSecurity/Lectures/BufferOverflow   (2833 words)

  
 Infosecwriters.com
Buffer overflows are the result of stuffing more data into a programs buffer or input device than is defined/allowed for in the program.
Commonly buffer overflows are exploited to change the flow in a programs execution, so that it points to a different memory address or overwrites crucial memory segments.
A starting point for this tutorial requires the readers to have a simple understanding of the C programming language, the way the stack and memory is organised, and asm knowledge is helpfull though not essential.
http://www.infosecwriters.com/texts.php?op=display&id=134   (2620 words)

  
 Secure programmer: Countering buffer overflows
The buffer need not be on the stack at all -- it could be dynamically allocated memory in the heap (also called the "malloc" or "new" area), or in some statically located memory (such as "global" and "static" memory).
An attacker may be able to exploit a buffer overflow by changing the value of other data in the function; none of these approaches counter that.
This strengthens the protection of ssp; this means a buffer overflow can't modify a pointer value (otherwise an attacker who can control a pointer can control where the program saves data using the pointer).
http://www-106.ibm.com/developerworks/linux/library/l-sp4.html   (6107 words)

  
 Buffer Overflow Attacks and Their Countermeasures Linux Journal
Buffer overflow attaks are possible in windows environment also.
The advantage of a dynamic string library is that the problem of buffer management for strings (and/or other kinds of memory buffers) is completely solved for you.
You check before you copy: if the source string is too long, it's either a programming error, in which case there should be an assert(), or the user needs to be notified that she exceeded hard-coded limits (or the code needs to be fixed so that it doesn't have a hard-coded limit.
http://www.linuxjournal.com/article.php?sid=6701   (4585 words)

  
 Analysis of Buffer Overflow Attacks
In fact, due to the nature of buffer overflow flaws associated with the possibility that the attacker can execute arbitrary code, it is possible to develop a range of different activities constrained only by available space (although this problem can also be circumvented) and access privileges.
Since operating systems use different system function calls, an individual approach is needed, depending on the OS environment under which the code must run and the goal it is being aimed at.
If, in addition, these functions operate on a local buffer and there is the possibility to redirect the process execution flow to anywhere we want, we will be successful in accomplishing an attack.
http://www.windowsecurity.com/articles/Analysis_of_Buffer_Overflow_Attacks.html   (4247 words)

  
 AMD chips include buffer overflow protection - Computerworld
Otherwise, if the overflow exception was caused by a malicious attack, rather than a programming error, the new code can open the way for the attacker to place software programs known as "trojans" inside the PC, giving that attacker control of the PC, Crank said.
Older microprocessors such as the venerable Alpha chip used a form of this technology, but it was designed to protect more specific hardware exploits rather than the general buffer overflow technique used against today's PCs and servers, Crank said.
AMD's technology is new, as far as the x86 chip world is concerned, said Dean McCarron, principal analyst with Mercury Research Inc. in Cave Creek, Ariz. The x86 instruction set runs most of Intel Corp.'s and AMD's processors.
http://www.computerworld.com/printthis/2004/0,4814,89091,00.html   (595 words)

  
 Introduction: Buffer Overflow Vulnerabilities - The Community's Center for Security
As described by Farrow, "because programs are not perfect, programmers have come up with schemes to defend against buffer overflow attacks." (Farrow, 2002) One technique entails enforcing the computer to use the stack and the heap for data only and to never to execute any instructions found there.
In order to make sense of how a buffer is overflowed, one must understand what a buffer is. A program contains code that accesses variables stored in various locations in memory.
This approach can work for UNIX systems, but it can't be used on Windows systems.
http://www.linuxsecurity.com/content/view/118881   (1161 words)

  
 Cisco Security Advisory: Buffer Overflow in UNIX VPN Client
The problem has been resolved by adding better tests for buffer overflows and by removing unnecessary setuid permissions on executable files in the software package as provided.
In lieu of installing fixed software, the vulnerability can be mitigated by removing the setuid permissions on the vpnclient binary executable file as shown below.
Note that the cvpnd daemon, another one of the binary executable files in the software package, retains setuid permissions to preserve its ability to change the configuration of the network interface.
http://www.cisco.com/warp/public/707/cisco-unix-vpnclient-buffer-overflow-pub.shtml   (1188 words)

  
 buffer overflow definition of buffer overflow in computing dictionary - by the Free Online Dictionary, Thesaurus and ...
Malicious hackers can exploit buffer overflows by appending executable instructions to the end of data and causing that code to be run after it has entered memory (see Slammer).
Such instructions are potentially dangerous and can be avoided by using instructions that read or transfer a precise number of bytes.
Any aberrant behavior can result when control data, such as a binary flag, is altered erroneously (it only takes one bit!).
http://computing-dictionary.thefreedictionary.com/buffer+overflow   (201 words)

  
 [No title]
And, "stack-based" buffer overflows occur here, we stuff more data than a data structure, say an array, can hold, we exceed the boundaries of the array overriding many important data.
Within the function, without bounds checking we copied the whole large_one to the foo, overflowing all the way foo and some other data.
EBP-20 As you can guess, when we load more than 8 bytes to foo1 and more than 12 bytes for foo2, we will have overflowed their space.
http://www.enderunix.org/docs/eng/bof-eng.txt   (2026 words)

  
 [No title]
So our 5 byte buffer is really going to take 8 bytes (2 words) of memory, and our 10 byte buffer is going to take 12 bytes (3 words) of memory.
Some basic definitions before we begin: A buffer is simply a contiguous block of computer memory that holds multiple instances of the same data type.
As such any null bytes in our shellcode will be considered the end of the string, and the copy will be terminated.
http://www.phrack.org/phrack/49/P49-14   (2759 words)

  
 Glossary of Network Security Terms WatchGuard Technologies, Inc.
If the programmer did not write his program to discard extra input (e.g., if instead of a phone number, someone submitted one thousand characters), the input can overflow the amount of memory allocated for it, and break into the portion of memory where code is executed.
A skillful hacker can exploit this flaw to make someone's computer execute the hacker's code.
The program allows some virtual memory for accepting the expected input.
http://www.watchguard.com/glossary/b.asp   (677 words)

  
 Buffer overflow
If the program being attacked is running in privileged mode (as root in Unix or Administrator on Windows NT or 2000), the attack code inherits those privileges and has full rights to the system.
But if the programmer didn't perform error checking on the input string because he assumed that the user would know what to enter, a hacker could input thousands of bytes worth of data to achieve the overflow condition.
Today, however, hackers attempt to exploit them to either crash a target machine or to run malicious code on it, for example, worms.
http://www.networkworld.com/details/746.html   (901 words)

  
 Buffer Overflow demo: Embry-Riddle, NSF Scholarships for Service Grant
The buffer overflow interactive module and demos may be used by an instructor knowledgeable about runtime environments and C programming in classes such as: operating systems, C/C++ and assembly programming, compiler and software tools, surveys of programming languages, and computer security.
These flaws permit attacking programs to gain control over other computers by sending long strings with certain patterns of data.
A buffer overflow results from programming errors and testing failures and is common to all operating systems.
http://nsfsecurity.pr.erau.edu/bom   (619 words)

  
 MFSA 2005-30: GIF heap overflow parsing Netscape extension 2
An GIF processing error when parsing the obsolete Netscape extension 2 can lead to an exploitable heap overrun, allowing an attacker to run arbitrary code on the user's machine.
MFSA 2005-30: GIF heap overflow parsing Netscape extension 2
Title: GIF heap overflow parsing Netscape extension 2
http://www.mozilla.org/security/announce/mfsa2005-30.html   (141 words)

  
 Microsoft Security Advisor Program: Glossary of Terms
An attack in which a malicious user exploits an unchecked buffer in a program and overwrites the program code with their own data.
For additional information about the core concepts and technologies associated with computer security, see the Microsoft Security Glossary.
If the program code is overwritten with new executable code, the effect is to change the program's operation as dictated by the attacker.
http://www.microsoft.com/technet/security/bulletin/glossary.mspx#buffer   (658 words)

  
 What is buffer overflow? - A Word Definition From the Webopedia Computer Dictionary
Malicious hackers can launch buffer overflow attacks wherein data with instructions to corrupt a system are purposely written into a file in full knowledge that the data will overflow a buffer and release the instructions into the computer’s instructions.
You are in the: Small Business Computing Channel
The condition wherein the data transferred to a buffer exceeds the storage capacity of the buffer and some of the data “overflows” into another buffer, one that the data was not intended to go into.
http://www.webopedia.com/TERM/b/buffer_overflow.html   (159 words)

  
 Adobe Reader buffer overflow - Gentoo - Xatrix Security
An attacker may create a specially-crafted PDF file, enticing a user to open it.
An attacker may create a specially-crafted PDF file, enticing a user to
This could trigger a buffer overflow as the file is being loaded, resulting in the execution of arbitrary code.
http://www.xatrix.org/advisory.php?s=6746   (207 words)

  
 Amazon.com: Buffer Overflow Attacks : Detect, Exploit, Prevent: Books: James C. Foster,Vitaly Osipov,Nish Bhalla
Most of the book's examples cover the Intel assembly language and the Microsoft operating systems.
Includes Numbered-by-Line Exploit Code Examples That Illustrate the Differences Between Stack Overflows, Heap Corruption, and Format String Bugs
Typically, a text on computing might give a cursory few pages (if even that!) on explaining what buffer overflow attacks are.
http://www.amazon.com/exec/obidos/tg/detail/-/1932266674?v=glance   (1012 words)

  
 buffer overflow
Just like the Y2K problem occurred because of the common coding mistake of using 2-digits, the buffer overflow bug is caused by a typical mistake of not double-checking input, and allowing large input (like a login name of a thousand characters) "overflow" into some other region of memory, causing a crash or a break-in.
This is an excellent articles that thoroughly explains the problem, but requires some programming expertise in order to understand it.
The buffer overflow attack is one of the most common on the Internet.
http://www.iss.net/security_center/advice/Underground/Hacking/Methods/Technical/buffer_overflow   (110 words)

  
 CVE-2004-0940 (under review)
Buffer overflow in the get_tag function in mod_include for Apache 1.3.x to 1.3.32 allows local users who can create SSI documents to execute arbitrary code as the apache user via SSI (XSSI) documents that trigger a length calculation error.
Therefore, this candidate may be modified or even rejected in the future.
Note: References are provided for the convenience of the reader to help distinguish between vulnerabilities.
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0940   (127 words)

  
 Microsoft Security Bulletin MS03-037
Microsoft VBA is a development technology for developing client desktop packaged applications and integrating them with existing data and systems.
This is a buffer overrun vulnerability that could allow an attacker to run arbitrary code of their choice on a user's machine in the security context of that user, if the user were to open a specially malformed document.
A buffer overrun exists which if exploited successfully could allow an attacker to execute code of their choice in the context of the logged on user.
http://www.microsoft.com/technet/security/bulletin/MS03-037.mspx   (2016 words)

  
 SecuriTeam™ - Exim dns_build_reverse() Buffer Overflow Vulnerability
Exim is "a mail transfer agent (MTA) for Unix systems similar to Sendmail".
This string is user controlled and passed into the program from a command line option.
The function fails to check the length of a string which it copies into a fixed length buffer.
http://www.securiteam.com/unixfocus/5CP0D1PEKW.html   (239 words)

  
 Dictionary.com/buffer overflow
The Free On-line Dictionary of Computing, © 1993-2005 Denis Howe
time, a short line buffer can result in lossage as input
line buffer can result in lossage as input from a long line
http://dictionary.reference.com/search?q=buffer%20overflow   (279 words)

  
 Secunia - Advisories - Adobe Acrobat / Reader Plug-in Buffer Overflow Vulnerability
A vulnerability has been reported in Adobe Reader and Adobe Acrobat, which potentially can be exploited by malicious people to compromise a user's system.
Successful exploitation may allow execution of arbitrary code.
The vulnerability is caused due to an unspecified boundary error in the core application plug-in and can be exploited to cause a buffer overflow when a specially crafted file is opened.
http://secunia.com/advisories/16466   (377 words)

  
 Remote exploitation of a stack-based buffer overflow vulnerability in Backup Exec 8.6 and 9.x may allow the ...
Backup Exec 8.6 installations should have the following hotfix applied:
Backup Exec 9.0 installations should have the following hotfix applied:
Remote exploitation of a stack-based buffer overflow vulnerability in Backup Exec 8.6 and 9.x may allow the unauthorized execution of arbitrary code.
http://seer.support.veritas.com/docs/273419.htm   (777 words)

  
 Koffice heap buffer overflow - Mandrake - Xatrix Security
An attacker could provide a specially crafted RTF file, which when opened in KWord can cause execution of abitrary code.
An attacker could provide a specially crafted RTF file, which
Chris Evans reported a heap based buffer overflow in the RTF importer of KWord.
http://www.xatrix.org/advisory.php?s=7085   (151 words)

  
 ISS X-Force Database: snort-rpc-fragment-bo(10956): Snort fragmented RPC preprocessor buffer overflow
The information within this database may change without notice.
Contact your vendor for upgrade or patch information.
CVE-2003-0033: Buffer overflow in the RPC preprocessor for Snort 1.8 and 1.9.x before 1.9.1 allows remote attackers to execute arbitrary code via fragmented RPC packets.
http://xforce.iss.net/xforce/xfdb/10956   (597 words)

  
 Gentoo Linux Documentation -- zlib: Buffer overflow
An attacker could construct a malformed data stream, embedding it within network communication or an application file format, potentially resulting in the execution of arbitrary code when decoded by the application using the zlib library.
A buffer overflow has been discovered in zlib, potentially resulting in the execution of arbitrary code.
A bounds checking operation failed to take invalid data into account, allowing a specifically malformed deflate data stream to overrun a buffer.
http://www.gentoo.org/security/en/glsa/glsa-200507-05.xml   (134 words)

  
 VuXML: acroread -- buffer overflow
If a malicious file were opened it could trigger a buffer overflow as the file is being loaded into Adobe Acrobat and Adobe Reader.
The identified vulnerability is a buffer overflow within a core application plug-in, which is part of Adobe Acrobat and Adobe Reader.
A buffer overflow can cause the application to crash and increase the risk of malicious code execution.
http://www.vuxml.org/openbsd/5c518cb6-1159-11da-a4ba-000b5d77b0f5.html   (94 words)

  
 Mozilla Firefox Link Buffer Overflow Allows Arbitrary Code Execution - MozillaZine Talkback
The security vulnerability is caused by a bug in the way long links with dashes are handled and is reported to allow an attacker to execute arbitrary code on a victim's system.
1) we're not going to post a working exploit in public 2) in this case we don't have a working exploit to give anyone, just proof of a buffer overrun 3) details on how to exploit a heap buffer overrun in general are available on many hacker sites.
The problem seems to be when a hostname which has all dashes causes the NormalizeIDN call in nsStandardURL::BuildNormalizedSpec to return true, but is sets encHost to an empty string.
http://www.mozillazine.org/talkback.html?article=7307   (3212 words)

  
 LWN: A new Firefox buffer overflow
But even before that, it was not hard to write portability layers to hide such problems, and opportunities for buffer overflows, leaks, and heap corruption are greatly reduced if standard STL classes (such as std::vector) are used instead of fixed-length buffers or arrays allocated by malloc or new.
Technical Details: The problem seems to be when a hostname which has all dashes causes the NormalizeIDN call in nsStandardURL::BuildNormalizedSpec to return true, but is sets encHost to an empty string.
The C++ standard has been official for 7 years now, and the problems described in your quote are largely a thing of the past.
http://lwn.net/Articles/150999   (2033 words)

  
 eTrust Spyware Encyclopedia - Buffer overflow in qwsv.exe and qwcl.exe
DoS : An exploit whose purpose is to deny somebody the use of the service: namely to crash or hang a program or the entire system.
The same technology used to protect Fortune 500® companies is now available for your PC!
Buffer overflows in Quakeworld are present in in qwsv.exe and qwcl.exe.
http://www3.ca.com/securityadvisor/pest/pest.aspx?id=1043   (132 words)

  
 Secunia - Advisories - Internet Explorer HTML Elements Buffer Overflow Vulnerability
This can be exploited to cause a buffer overflow via a malicious HTML document containing overly long strings in e.g.
The vulnerability is caused due to a boundary error within the handling of certain attributes in the