cve.bz

CAPEC-94

Adversary in the Middle (AiTM)

Very High severityHigh likelihoodMeta pattern

An adversary targets the communication between two components (typically client and server), in order to alter or obtain data from transactions. A general approach entails the adversary placing themself within the communication channel between the two components.

On this page

Whenever one component attempts to communicate with the other (data flow, authentication challenges, etc.), the data first flows through the adversary, who has the opportunity to observe or alter it, before being passed on to the intended recipient as if it was never observed. This interposition is transparent leaving the two compromised components unaware of the potential corruption or leakage of their communications. The potential for these attacks yields an implicit lack of trust in communication or identify between two components.

These attacks differ from Sniffing Attacks (CAPEC-157) since these attacks often modify the communications prior to delivering it to the intended recipient.

Ask an AI about this attack pattern

Show the promptExplain the attack pattern CAPEC-94: Adversary in the Middle (AiTM): how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/94.html and https://cve.bz/cve/capec/94?via=ask-ai-copy, which lists recent CVEs with the weaknesses it exploits. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this attack pattern's id and public links.

How the attack unfolds

  1. Explore

    The attacker looks for a way in.

    1. [Determine Communication Mechanism] The adversary determines the nature and mechanism of communication between two components, looking for opportunities to exploit.

      2 techniques
      • Perform a sniffing attack and observe communication to determine a communication protocol.
      • Look for application documentation that might describe a communication mechanism used by a target.
  2. Experiment

    They probe what they found.

    1. [Position In Between Targets] The adversary inserts themself into the communication channel initially acting as a routing proxy between the two targeted components.

      2 techniques
      • Install spyware on a client that will intercept outgoing packets and route them to their destination as well as route incoming packets back to the client.
      • Exploit a weakness in an encrypted communication mechanism to gain access to traffic. Look for outdated mechanisms such as SSL.
  3. Exploit

    They carry out the attack.

    1. [Use Intercepted Data Maliciously] The adversary observes, filters, or alters passed data of its choosing to gain access to sensitive information or to manipulate the actions of the two target components for their own purposes.

      1 technique
      • Prevent some messages from reaching their destination, causing a denial of service.

Prerequisites

  • There are two components communicating with each other.

  • An attacker is able to identify the nature and mechanism of communication between the two target components.

  • An attacker can eavesdrop on the communication between the target components.

  • Strong mutual authentication is not used between the two target components yielding opportunity for attacker interposition.

  • The communication occurs in clear (not encrypted) or with insufficient and spoofable encryption.

Skills required

  • Medium skill

    This attack can get sophisticated since the attack may use cryptography.

Consequences

What a successful attack can lead to
ImpactAffectsNote
Modify DataIntegrity
Gain PrivilegesConfidentiality, Access Control, Authorization
Read DataConfidentiality

Mitigations

  • Ensure Public Keys are signed by a Certificate Authority

  • Encrypt communications using cryptography (e.g., SSL/TLS)

  • Use Strong mutual authentication to always fully authenticate both ends of any communications channel.

  • Exchange public keys using a secure channel

Weaknesses it exploits

  • CWE-287 Improper Authentication
  • CWE-290 Authentication Bypass by Spoofing
  • CWE-294 Authentication Bypass by Capture-replay
  • CWE-300 Channel Accessible by Non-Endpoint
  • CWE-593 Authentication Bypass: OpenSSL CTX Object Modified after SSL Objects are Created

Recent CVEs with these weaknesses

  1. 5.1CVE-2026-119012

    Vulnerability of improper authentication in the DSoftBus module. Impact: Successful exploitation of this vulnerability will affect availability.

  2. 8.1CVE-2026-95792

    A potential security vulnerability identified with HPE IceWall MFA products could be exploited allow improper authentication.

  3. 5.3CVE-2026-139894

    A vulnerability was found in davila7 claude-code-templates up to 1.29.6. The affected element is an unknown function of the file cli-tool/src/claude-api-proxy.js of the component Claude API proxy. Performing a manipulation results in missi…

  4. 9.3CVE-2026-138670

    A weakness has been identified in TOTOLINK X6000R up to 9.4.0cu.1458_B20250708. The impacted element is the function setStaticDhcpRules/arp_bind of the file /usr/sbin/shttpd. Executing a manipulation of the argument ip can lead to authenti…

  5. 9.1CVE-2026-137179

    arduino-esp32 is an Arduino core for the ESP32, ESP32-S2, ESP32-S3, ESP32-C3, ESP32-C6 and ESP32-H2 microcontrollers. Prior to 3.3.12 and in 4.0.0-alpha1, WebServer::authenticate(const char *username, const char *password) parses an arbitr…

  6. 3.7CVE-2026-137029

    Enclave OS Mini is a Rust-based runtime for confidential applications inside Intel SGX enclaves. Prior to enclave-os-mini-wasm version 0.53.0 and enclave-cluster version 0.8.0, Enclave OS Mini's FIDO2 clone-detection guard skipped comparis…

  7. 5.7CVE-2026-139904

    Intego NetUpdate through X9 contains an authentication bypass vulnerability in the root daemon com.intego.netupdated that allows local unprivileged users to impersonate trusted clients by exploiting PID reuse. Attackers can race the PID-ba…

  8. 9.8CVE-2026-137018

    Enclave OS Mini is a Rust-based runtime for confidential applications inside Intel SGX enclaves. Prior to base version 0.25.0 and vault version 0.33.0, Enclave OS Mini's verify_oidc_token function in builds without the wasm feature decoded…

The newest records naming one of them. Each weakness's page lists them all.

Can lead to
More specific patterns
  • CAPEC-219 XML Routing Detour Attacks
  • CAPEC-384 Application API Message Manipulation via Man-in-the-Middle
  • CAPEC-386 Application API Navigation Remapping
  • CAPEC-466 Leveraging Active Adversary in the Middle Attacks to Bypass Same Origin Policy
  • CAPEC-662 Adversary in the Browser (AiTB)
  • CAPEC-701 Browser in the Middle (BiTM)

Examples

In 2017, security researcher Jerry Decime discovered that Equifax mobile applications were not leveraging HTT…

In 2017, security researcher Jerry Decime discovered that Equifax mobile applications were not leveraging HTTPS in all areas. Although authentication was properly utilizing HTTPS, in addition to validating the root of trust of the server certificate, other areas of the application were using HTTP to communicate. Adversaries could then conduct MITM attacks on rogue WiFi or cellular networks and hijack the UX. This further allowed the adversaries to prompt users for sensitive data, which could then be obtained in the plaintext response. [REF-636]

MITRE's words, unchanged: CAPEC-94 at MITRE. CAPEC is Copyright © 2007–2026, The MITRE Corporation, used under the CAPEC terms of use: “The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use Common Attack Pattern Enumeration and Classification (CAPEC™) for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE’s copyright designation and this license in any such copy.” CAPEC and the CAPEC logo are trademarks of The MITRE Corporation. Credits. All attack patterns.