GCSE · Computer Science · Edexcel · Spec 1CP2
Technical vulnerabilities exploited by hackers
One unlocked door is all a burglar needs. Computer systems have doors too, and attackers go looking for the one nobody locked.
Computer Science · Cybersecurity
Which door was left open?
Pick a situation, then pick the vulnerability it exposes. Afterwards you'll see how an attacker could use it and what closes the door.
Still to sort
Out-of-date software (0)
Fixes exist, but they haven't been installed.
Where the line is: The weakness sits in the software itself, not in what a user types or in how an account is protected.
Unhandled user input (0)
What users type is used without being checked first.
Where the line is: The weakness is in how the application treats typed-in data, not in the age of the software or the strength of a password.
Weak password (0)
The only lock on the account is easy to crack.
Where the line is: The weakness is in how the account itself is protected, not in the software it runs on or in the forms it uses.
Each situation exposes exactly one weakness. Commit to a category first, then read why.
Cybersecurity · SQL injection
Reason it through
How can typing into a login box end up making a database run an attacker's code?
First link · your turn
A web application doesn't properly handle user input. What can a malicious user do at the login box?
Predict, then check
Think about what a second lock does.
An attacker has cracked a user's password. The account also uses multi-factor authentication. Can the attacker simply walk in?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Spot the unlocked door, see how it gets used, and learn what locks it.
What you need to know
- A vulnerability is a weakness in a system, software or network that attackers can exploit.
Have a goA classmate says: 'A vulnerability is the hacker who breaks in.' Confident. Wrong. What's the mistake?
A vulnerability is the weakness, not the person.
The vulnerability is the unlocked door; the attacker is the one who exploits it.
- A cyberattack is a deliberate attempt to damage, disrupt or gain unauthorised access to systems, networks or data. Malware is designed to carry one out.
- Software that isn't kept up to date is a vulnerability; automatic updates install themselves, fixing bugs and closing security holes quickly.
- In a SQL injection attack, a malicious user tricks a website or app into running harmful SQL code in its database.
- It exploits web applications that don't properly handle user input, and can let attackers view, change or delete data, or bypass login systems.
- Input sanitisation cleans and checks user input before it is used, acting like a filter so the input can't launch an attack.
Have a goSomeone says input sanitisation means tidying up users' data after an attack. When does it actually happen, and what does it do?
Before the input is used: it cleans and checks it.
It works like a filter placed in front, so typed input can't be used to launch an attack in the first place.
- Weak passwords can be cracked, so use strong, unique ones: at least 12 characters, with upper and lowercase letters, numbers and symbols.
Have a goCheck 'footballfan' (eleven lowercase letters) against the 12-character recommendation. Does it pass?
No. It is only 11 characters and has no capitals, numbers or symbols.
A strong password needs at least 12 characters and a mix of upper and lowercase letters, numbers and symbols.
- Multi-factor authentication makes it much harder for attackers to break in, even if they have the password.
- Code reviews (another developer checks code before it joins the main software) and modular testing (parts tested separately) find weaknesses early.
- Penetration testing is a simulated cyberattack by ethical hackers, who use attackers' tools and methods, with permission, to find and fix vulnerabilities first.
The big picture
Attackers get in through weaknesses someone left open. Three big ones are out-of-date software, user input that is not handled properly (which opens the door to SQL injection) and weak passwords. Each has a defence: automatic updates, input sanitisation, and strong unique passwords with multi-factor authentication. Defenders hunt for these weaknesses first using code reviews, modular testing and penetration testing.
Key points
Worked example
Problem
Explain how input sanitisation helps protect a website. A student writes only: 'It makes the website safer.' Improve the answer so it earns the marks.
⚠ Watch out
Pairing the wrong defence with the weakness. Updates close holes in out-of-date software; input sanitisation closes the door on unhandled input; strong unique passwords and multi-factor authentication protect accounts. Swap them over and the answer collapses.
Memory hook
Name the door. Show how it's used. Lock it. Then send in the testers to check.
Check yourself
Cover the page. Name the three vulnerabilities, say which defence closes each one, then name the three ways defenders look for weaknesses first.
Flashcards
(14)What is a vulnerability?
What is a cyberattack, and what is malware designed to do?
Why is software that isn't kept up to date a vulnerability?
What are automatic updates?
What is a SQL injection attack?
What can SQL injection do, and which web applications does it exploit?
Which defence acts like a filter on what users type?
What makes a password strong and unique?
What does multi-factor authentication do?
What is modular testing?
What is a code review?
What is penetration testing?
Which perspective does a white box penetration tester take?
Which perspectives are grey box and black box testing?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore Edexcel GCSE Computer Science topics
How this lesson was checked. This Edexcel GCSE Computer Science (specification 1CP2)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 21 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.