Php Objective Questions with Answers for written test exams 55

Question 55
When is cross-site scripting a heightened risk?

A. When storing data submitted by the user.

B. When displaying foreign data.

C. When executing a shell command.

D. When opening a remote URL.
Answers 55


Answer B is correct.When displaying foreign data that is not properly escaped, you

can inadvertently expose your users to significant risk. Answer A is incorrect

because storing data poses no immediate threat, even though this might result in a

cross-site scripting vulnerability later. Answers C and D are incorrect because these

activities are 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 ---