CAPECattack pattern
CAPEC-141 Cache Poisoning
High
Official page ↗
- Abstraction
- Standard
- Status
- Draft
- Likelihood of attack
- High
- Typical severity
- High
- CAPEC version
- 3.9
Description
An attacker exploits the functionality of cache technologies to cause specific data to be cached that aids the attackers' objectives. This describes any attack whereby an attacker places incorrect or harmful material in cache. The targeted cache can be an application's cache (e.g. a web browser cache) or a public cache (e.g. a DNS or ARP cache). Until the cache is refreshed, most applications or clients will treat the corrupted cache value as valid. This can lead to a wide range of exploits including redirecting web browsers towards sites that install malware and repeatedly incorrect calculations based on the incorrect value.
Execution flow
1. [Explore] [Identify and explore caches] Use tools to sniff traffic and scan a network in order to locate application's cache (e.g. a web browser cache) or a public cache (e.g. a DNS or ARP cache) that may have vulnerabilities. Look for poisoning point in cache table entries.
2. [Experiment] [Cause specific data to be cached] An attacker sends bogus request to the target, and then floods responses that trick a cache to remember malicious responses, which are wrong answers of queries.
3. [Exploit] [Redirect users to malicious website] As the attacker succeeds in exploiting the vulnerability, they are able to manipulate and interpose malicious response data to targeted victim queries.
Prerequisites
• The attacker must be able to modify the value stored in a cache to match a desired value.
• The targeted application must not be able to detect the illicit modification of the cache and must trust the cache value in its calculations.
Skills required
• [Medium] To overwrite/modify targeted cache
Mitigations
• Configuration: Disable client side caching.
• Implementation: Listens for query replies on a network, and sends a notification via email when an entry changes.
Related
Att&ck technique · MITRE ATT&CK (1)
- T1557.002 ARP Cache Poisoning sub-technique
Child of · CAPEC (1)
- CAPEC-161 Infrastructure Manipulation attack pattern
Weakness · CWE (4)
Referenced by CAPEC · can precede (5)
Referenced by CAPEC · child of (1)
- CAPEC-142 DNS Cache Poisoning attack pattern