adplus-dvertising
frame-decoration

Question

What consideration must developers keep in mind when performing input validation to avoid impacting legitimate input?

a.

Disallowing the use of single quotes (’)

b.

Blocking all input from users

c.

Allowing only alphanumeric characters

d.

Recognizing the types of legitimate input for a field

Answer: (d).Recognizing the types of legitimate input for a field Explanation:Developers must be mindful of the types of legitimate input that may appear in a field to avoid impacting legitimate input when performing input validation. For example, completely disallowing the use of a single quote (’) may impact legitimate input, such as last names that include apostrophes, like O’Brien.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What consideration must developers keep in mind when performing input validation to avoid impacting legitimate input?

Similar Questions

Discover Related MCQs

Q. What is parameter pollution in the context of web application security?

Q. How does parameter pollution work in injecting SQL code into a web application?

Q. Why might an attacker use the parameter pollution technique with two different values for the same input variable?

Q. What assumption does a parameter pollution attack rely on?

Q. How do parameter pollution attacks persist despite most modern platforms defending against them?

Q. What is the primary role of Web Application Firewalls (WAFs) in web application security?

Q. In which layer do Web Application Firewalls (WAFs) operate?

Q. What is the significance of input validation in the context of injection attacks?

Q. When might injection flaws still occur in web applications despite input validation?

Q. What does a Web Application Firewall (WAF) scrutinize to prevent malicious traffic?

Q. What is the primary objective of SQL injection attacks in web applications?

Q. In a basic SQL injection attack, what does the attacker ideally want to do after providing input to the web application?

Q. When might a web application with SQL injection flaws not provide the attacker with the ability to directly view the results of the attack?

Q. What is the purpose of blind SQL injection attacks?

Q. In Boolean blind SQL injection, what does the attacker test through injected code before attempting the attack?

Q. How does an attacker perform testing in Boolean blind SQL injection after injecting code into the account number field?

Q. What query would be sent to the database in a successful Boolean SQL injection attack with the input '52019' OR 1=1;--?

Q. What does an attacker infer if the web application returns a page with no results after providing input '52019' AND 1=2;--?

Q. Why is it difficult to distinguish between a well-defended application and a successful Boolean SQL injection attack with limited visibility into the application?

Q. What is the significance of blind SQL injection attacks in scenarios where the attacker cannot directly view the results?