Tuesday, 1 December 2026

Question of the day: NISM IFSCA-02A

Chapter 7 · Application SecurityHardExpert reviewed

Why does input validation performed only in the browser (client side) give no real security?

  • ABrowsers do not support any form of validation
  • BClient-side validation slows down the server too much under heavy load
  • CAn attacker can bypass the browser and send crafted requests directly to the server
  • DServer-side validation is forbidden by data protection law
Client-side checks help usability, but attackers can send any request with tools that skip the browser. Security checks must be repeated on the server.

Most application flaws come from a few avoidable mistakes. Good practices: - Validate all input on the server side (type, length, format, allowed values); never trust the client. - Use parameterised queries (prepared statements) so input is treated as data, never as SQL code. - Encode output so user-supplied content is displayed, not executed (defends against XSS). - Enforce authorisation checks on every request on the server. - Never hard-code secrets (passwords, API keys) in source code; use a secrets vault. - Handle errors without revealing internal details; log security events. - Use maintained, approved libraries and keep them updated.

Worked example

A developer replaces "SELECT * FROM clients WHERE id = " + input with a prepared statement that binds the input as a parameter. The input 1 OR 1=1 now simply finds no matching client instead of returning every record.

Exam trap: Client-side (browser) validation improves usability but provides no security, because attackers can bypass it.

Did this one catch you out? Test a friend.

Make it a daily habit

Create a free account to keep a streak, get a new question every day and take full-length free mock tests.

Create free accountTake a free 20-question test

Earlier questions

🧩 Run a finance blog, MFD website or college page? Put this free question of the day on your site.

Install Integrato Digital on your phone to open today's question in one tap.