Shared Libraries
In this section we’ll examine how shared libraries
being loaded by applications on a Linux system
can be manipulated to provide an advantage to an attacker.
This approach is similar to DLL hijacking,
which is commonly used to compromise Windows systems.
We’ll take a look at how shared libraries work
as well as several approaches for exploiting them,
including the use of specific environment variables
and abusing loading path order.
Let’s start by learning how shared libraries work at a basic level.