MitM attacks can take various forms, each exploiting different vulnerabilities:
1. Wi-Fi Eavesdropping: exploits the trust users place in familiar or seemingly harmless wireless networks. Attackers often create rogue Wi-Fi hotspots with names that mimic legitimate networks users might expect to find in their vicinity, such as a popular café or “Free Public Wi-Fi Network.” These networks may not require a password, making them particularly enticing. Once connected, attackers can intercept and monitor all data transmitted between the user and the internet. This allows them to capture sensitive information like login credentials, credit card details, or personal messages.
2. Session Hijacking: where an attacker seizes control of a user’s active session with a web application. Typically, the attacker waits for the victim to log into a service, such as online banking or email, and then intercepts the session cookie—a small piece of data that verifies the user’s identity and maintains their authenticated state. By stealing this session cookie, the attacker can impersonate the victim and gain unauthorized access to the same account from their own device. This exploitation hinges on the temporary nature of sessions, which are crucial for identifying logged-in users but expire after a set duration, often just a few minutes. Consequently, attackers must act swiftly to hijack a session before it expires, making it a race against time to exploit the user’s credentials.
3. SSL Stripping: most websites today use “HTTPS,” which stands for Hypertext Transfer Protocol Secure, instead of the older “HTTP,” indicating they are using a secure server. HTTPS ensures that all data shared between the user’s browser and the website is encrypted and secure. However, attackers can exploit a vulnerability known as SSL stripping to downgrade the secure HTTPS connection to an unsecure HTTP connection. This attack intercepts the initial request from the user to the website, redirecting it through an attacker-controlled server that forces the connection to use HTTP. Consequently, the attacker can intercept and manipulate the data being transmitted without the user realizing their connection is no longer secure. This form of attack highlights the importance of always verifying HTTPS in the URL and using security measures such as HSTS (HTTP Strict Transport Security) to prevent protocol downgrades.