CAPEC Details
Name Redirect Access to Libraries
Likelyhood of attack Typical severity
High Very High
Summary 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.
Prerequisites The target must utilize external libraries and must fail to verify the integrity of these libraries before using them.
Solutions Implementation: Restrict the permission to modify the entries in the configuration file. Implementation: Check the integrity of the dynamically linked libraries before use them. Implementation: Use obfuscation and other techniques to prevent reverse engineering the libraries.
Related Weaknesses
CWE ID Description
CWE-706 Use of Incorrectly-Resolved Name or Reference
Related CAPECS
CAPEC ID Description
CAPEC-154 An adversary deceives an application or user and convinces them to request a resource from an unintended location. By spoofing the location, the adversary can cause an alternate resource to be used, often one that the adversary controls and can be used to help them achieve their malicious goals.
CAPEC-185 An attacker uses deceptive methods to cause a user or an automated process to download and install dangerous code that originates from an attacker controlled source. There are several variations to this strategy of attack.
Taxonomy: ATTACK
Entry ID Entry Name
1574.008 Hijack Execution Flow:Path Interception by Search Order Hijacking