Php Objective Questions with Answers for written test exams 51

Question 51
What are the two most important practices to mitigate the risk of an SQL injection

vulnerability?

A. Disabling register_globals and enabling safe_mode.

B. Enabling safe_mode and filtering any data used in the construction of the

SQL statement.

C. Filtering and escaping any data used in the construction of the SQL statement.

D. Disabling register_globals and escaping any data used in the construction

of the SQL statement.
Answers 51


Answer C is correct.With properly filtered data, escaping any metacharacters that

remain can mitigate the remaining risks. Answers A, B, and D are incorrect because

register_globals does not directly affect the risk of SQL injection, and

safe_mode is unrelated

  







Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---