Man-in-the-middle attacks
An attack where someone secretly sits between two parties and can read or change the data passing between them, such as logins, session tokens or code sent over an unsecured network.
Understanding Man-in-the-middle attacks in VCE Software Development U4O2
What it does: HTTP has no encryption, so an attacker in the middle can see logins or alter the data. HTTPS is the protection. A man-in-the-middle attacker may present a fake certificate. A mismatch warning is a sign the connection is not safely with the real server. Unsecured networks let attackers capture traffic easily, especially when the data is not encrypted. Session tokens that are intercepted in transit can be replayed by the attacker to impersonate the user without needing the password. Encryption in transit means an intercepted message cannot be read, and valid certificates help confirm the server is genuine. Code in transit can be changed by a man-in-the-middle attacker if it is not encrypted and verified, which can lead to compromised software.
Common mistakes: The URL uses http, so the card details are sent unencrypted. A man-in-the-middle on the network could read or change them. It should use https. verify=False turns off certificate checking. An attacker with a fake certificate could then sit between the app and the API. It should be verify=True.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 23–47) and word search (Modules 1–47).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
man-in-the-middle attackFill in the Blanks
Spot the Error
Student with a class code? Join your class →