🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Web Security Basics: all 10 questions

Quiz: Web Security Basics · Question 8 of 10

Why is a hidden form field like <input type="hidden" name="price" value="999" not a security control?

Why is a hidden form field like <input type="hidden" name="price" value="999"> not a security control?

  1. A.Hidden fields are encrypted
  2. B.The user can change any field or request before it reaches the server
  3. C.Browsers never send hidden fields
  4. D.Hidden fields only work over HTTP
Answer & explanation

Correct answer: The user can change any field or request before it reaches the server

Never trust anything that comes from the client; read the price from your database.

Can you get the rest right without peeking?

Take the timed Quiz: Web Security Basics quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →