Man-in-the-Middle (MitM)
An attacker secretly positions themselves between two parties to read or alter their communication.
What it is
In a man-in-the-middle attack, an attacker sits on the network path between two parties and relays their messages while secretly reading or changing them, without either side realizing. It targets communications that are unencrypted or whose encryption can be stripped or spoofed. Proper use of TLS and certificate checking is the main defense.
Why it matters
It can expose or tamper with everything two parties exchange, including credentials and sensitive data, while remaining invisible to both.
How to fix it
Enforce strong TLS everywhere, use HSTS to prevent downgrades, validate certificates strictly, and avoid trusting untrusted networks.