CAPEC-159
Redirect Access to Libraries
An adversary exploits a weakness in the way an application searches for external libraries to manipulate the execution flow to point to an adversary supplied library or code base. This pattern of attack allows the adversary to compromise the application or server via the execution of unauthorized code. An application typically makes calls to functions that are a part of libraries external to the application. These libraries may be part of the operating system or they may be third party libraries. If an adversary can redirect an application's attempts to access these libraries to other libraries that the adversary supplies, the adversary will be able to force the targeted application to execute arbitrary code. This is especially dangerous if the targeted application has enhanced privileges. Access can be redirected through a number of techniques, including the use of symbolic links, search path modification, and relative path manipulation.
Soyutlama
Standard
Tipik ciddiyet
Very High
Saldırı ihtimali
High
Saldırıyı anla
Bu saldırı kalıbı nedir?
Uygulama akışı
Saldırı adım adım nasıl ilerler?
Explore
Identify Target
Kullanılan teknikler
- Find public source code and identify library dependencies.
- Gain access to the system hosting the application and look for libraries in common locations.
Experiment
Deploy Malicious Libraries
Exploit
Redirect Library Calls to Malicious Library
Kullanılan teknikler
- Poison the DNS cache of the system so that it loads a malicious library from a remote location hosted by the adversary instead of the legitimate location
- Create a symlink that tricks the application into thinking that a malicious library is the legitimate library.
- Use DLL side-loading to place a malicious verison of a DLL in the windows directory.
Gereksinimler
Saldırının gerçekleşmesi için ne gerekir?
Ön koşullar
- The target must utilize external libraries and must fail to verify the integrity of these libraries before using them.
Gerekli beceri
- Low: To modify the entries in the configuration file pointing to malicious libraries
- Medium: To force symlink and timing issues for redirecting access to libraries
- High: To reverse engineering the libraries and inject malicious code into the libraries
Gerekli kaynak
MITRE kaydında belirtilmemiş.
Etki
Başarılı saldırı neye yol açar?
Etkilenen alanlar: Authorization
Etkilenen alanlar: Access Control, Authorization
Savunma
Nasıl önlenir ve etkisi azaltılır?
Gerçek dünya