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.

6 of 6 still to sort.

Each situation exposes exactly one weakness. Commit to a category first, then read why.

Watch out: Don't sort by the scariest-sounding word. Ask: what was left open?

Cybersecurity · SQL injection

?

Reason it through

How can typing into a login box end up making a database run an attacker's code?

Link 1 of 4

First link · your turn

A web application doesn't properly handle user input. What can a malicious user do at the login box?

2
Locked — reveal the link above first
3
Locked — reveal the link above first
4
Locked — reveal the link above first

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?

Computer Science · Finding weaknesses first

Who does what before the attackers turn up?

Tick every property that is true of each method. Then check the grid.

Code review
Modular testing
Penetration testing

Computer Science · Ethical hacking

What's a penetration tester?

A friend tells you their cousin works as a penetration tester.

Which is closest to what you think that job is?
How sure are you?

Computer Science · Penetration testing perspectives

How much does the tester know?

How much knowledge of the system the tester starts with

1 · Full knowledge3 · No knowledge
  1. Grey box testing

  2. Black box testing

  3. White box testing

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

1Out-of-date software, unhandled user input and weak passwords are three vulnerabilities attackers can exploit.
2Each one has a matching defence: automatic updates, input sanitisation, and strong unique passwords with multi-factor authentication.
3SQL injection works because a web application does not properly handle user input; sanitising the input breaks the chain at the start.
4Code reviews, modular testing and penetration testing help find vulnerabilities before cybercriminals do.
5Penetration testers are ethical hackers: same tools and methods as attackers, but with permission.

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?
A weakness in a system, software or network that attackers can exploit to gain unauthorised access, cause damage or steal data.
What is a cyberattack, and what is malware designed to do?
A cyberattack is a deliberate attempt to damage, disrupt or gain unauthorised access to computer systems, networks or data. Malware is designed to undertake one.
Why is software that isn't kept up to date a vulnerability?
Bugs and security vulnerabilities that updates would have fixed are still open for attackers to exploit.
What are automatic updates?
Updates that are downloaded and installed without the user needing to do anything. They fix bugs and close security vulnerabilities quickly.
What is a SQL injection attack?
A malicious user tricks a website or app into running harmful SQL code in a database, for example by submitting strings in place of a username or password.
What can SQL injection do, and which web applications does it exploit?
It can let an attacker view, change or delete data, or bypass login systems. It exploits web applications that do not properly handle user input.
Which defence acts like a filter on what users type?
Input sanitisation: user input is cleaned and checked before use, so it can't be used to launch an attack.
What makes a password strong and unique?
At least 12 characters with upper and lowercase letters, numbers and symbols, and not reused (the recommendation in this lesson).
What does multi-factor authentication do?
Makes it much harder for attackers to break in, even if they have the password.
What is modular testing?
Testing individual parts of a program separately to look for errors.
What is a code review?
Another developer checks code before it is added to the main software.
What is penetration testing?
A simulated cyberattack on a computer system, network or application, carried out by ethical hackers with permission.
Which perspective does a white box penetration tester take?
Full knowledge of the system, like a malicious insider.
Which perspectives are grey box and black box testing?
Grey box: some knowledge. Black box: no knowledge, like an external hacker.

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 posted

More Edexcel GCSE Computer Science topics

See the full Edexcel Computer Science curriculum →

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.