TK Study

Software Engineering › Learn step by step › Y12 Secure Software Architecture

Item 219 of 426 · Year 12: Secure Software Architecture, 42 of 57

Cross-site request forgery (CSRF)

Term Key terms bank

Jump to a topic
  1. Exam format, question types and command words (46)
  2. Year 11: Programming Fundamentals (69)
  3. Year 11: The Object-Oriented Paradigm (33)
  4. Year 11: Programming Mechatronics (29)
  5. Year 12: Secure Software Architecture (57)
  6. Year 12: Programming for the Web (59)
  7. Year 12: Software Automation (35)
  8. Year 12: The Software Engineering Project (47)
  9. Diagrams and modelling tools (18)
  10. Python, SQL, pseudocode and CSS patterns (33)

See every item in the sequence

Definition

An attack that tricks a logged-in user's browser into sending an unwanted request to a site that trusts them. Prevent it with anti-CSRF tokens.

Example: A hidden form submits a bank transfer.

Found in: syllabus, school notes.

Short version to memorise (key terms bank)

Cross-site request forgery: forged request using a logged-in user's trust.

Where you'll use it in the test

Syllabus area: Y12 Secure Software Architecture.

Question types it can appear in

Where it has appeared in the paper

Secure Software Architecture (Part A). Part letters follow each paper’s own layout.

Related past questions

How to use it

A model sentence

General advice, built from the definition and example above

“An attack that tricks a logged-in user's browser into sending an unwanted request to a site that trusts them.” Then apply it: A hidden form submits a bank transfer.

In a short answer, give the definition in your own words first, then tie it to the situation in the question. Do not copy the example above unless it fits the scenario.

Command words used with it

From the linked past questions
  • Identify: Recognise and name. (2025 HSC Q8 (1 mark): User action controls)

Go deeper

Check yourself

Explain “Cross-site request forgery (CSRF)” in one sentence, give an example, and name a question type that could test it.

Reveal the answer

An attack that tricks a logged-in user's browser into sending an unwanted request to a site that trusts them. Prevent it with anti-CSRF tokens.

Example: A hidden form submits a bank transfer.

Could be tested as: Multiple choice, Short answer, Fill in the blanks.

Quick multiple choice

Which control is designed specifically to stop cross-site request forgery (CSRF)?

  1. Compressing images on the page
  2. A unique anti-CSRF token checked on each state-changing request
  3. A longer domain name
  4. Minifying the JavaScript files
Show the answer

B

CSRF tricks a logged-in user's browser into sending an unwanted request. A secret per-session token the attacker cannot know defeats it.

Source: original (written for this study pack; not a NESA question). Open it in the multiple-choice bank.