13.8k views
3 votes
What is the security vulnerability in the following code snippet? Value of my Textfield is

1 Answer

5 votes

Answer:

The answer is "Cross-Site Scripting"

Step-by-step explanation:

In the given question some information is missing, that is an option, that can be defined as follows:

A. SOQL Injection

B. Arbitrary Redirects

C. Cross-Site Scripting

D. Access Control

Cross-site scripting also called XSS. It is a web security weakness, that enables an attacker to jeopardize user experiences with a compromised application, and the other choices, which will be a list but not correctly described as follows:

  • In option A, It is used in input/output service, that's why it is not correct.
  • In option B, It is a process, in which a user can control the program, that's why it is wrong.
  • In option D, It is used to provide the accessibility, that's why it is not correct.
User Piscator
by
4.9k points