← Quiz: Broken Access Control: all 10 questions
Quiz: Broken Access Control · Question 2 of 10
The "Delete user" button is hidden from students in the UI. Is that enough?
The "Delete user" button is hidden from students in the UI. Is that enough?
- A.Yes, students can't click it
- B.No — the API endpoint must check the role on the server
- C.Yes, if the site uses HTTPS
- D.Yes, if the button is also disabled
Answer & explanation
Correct answer: No — the API endpoint must check the role on the server
Attackers call the API directly. Every action needs a server-side permission check.
Can you get the rest right without peeking?
Take the timed Quiz: Broken Access Control quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →