🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Yes, students can't click it
  2. B.No — the API endpoint must check the role on the server
  3. C.Yes, if the site uses HTTPS
  4. 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 →