Sponsored · Amazon offerTry Amazon Prime freeFast free shipping, Prime Video and more.Start free trial
SponsoredShop Amazon for Return-to-libc attackBrowse products on Amazon.Search Amazon
SponsoredAmazon Best Sellers in Patio, Lawn & GardenUpdated hourly by Amazon.Shop best sellers
Sponsored · Popular on AmazonArts, Crafts & SewingVideo GamesBabyKitchen & Dining
As an Amazon Associate I earn from qualifying purchases.

Topic summary

Return-to-libc attack

Return-to-libc attack

A "return-to-libc" attack is a computer security attack usually starting with a buffer overflow in which a subroutine return address on a call stack is replaced by an address of a subroutine that is already present in the process executable memory, bypassing the no-execute bit feature (if present) and ridding the attacker of the need to inject their own code. The first example of this attack in the wild was contributed by Alexander Peslyak on the Bugtraq mailing list in 1997.

On POSIX-compliant operating systems the C standard library ("libc") is commonly used to provide a standard runtime environment for programs written in the C programming language. Although the attacker could make the code return anywhere, libc is the most likely target, as it is almost always linked to the program, and it provides useful calls for an attacker (such as the system function used to execute shell commands).