Salesforce Sharing and Visibility Certification Practice Exam

Disable ads (and more) with a membership for a one time $4.99 payment

Study for the Salesforce Sharing and Visibility Certification Exam. Learn with diverse multiple-choice questions and explanations. Increase your success rate with comprehensive preparation. Get ready for your certification!

Practice this question and more.


What type of security vulnerability is indicated by using escape="false" in a Visualforce output?

  1. SOQL Injection

  2. Access Control

  3. Arbitrary Redirects

  4. Cross-Site Scripting

The correct answer is: Cross-Site Scripting

Using escape="false" in a Visualforce output poses a security vulnerability related to Cross-Site Scripting (XSS). When escape="false" is utilized, it allows dynamic content to be rendered directly into the HTML without escaping potentially harmful scripts. As a result, if an attacker manages to inject malicious JavaScript or HTML code into the output, it could be executed in the context of a user's browser, leading to unauthorized actions or data theft. Cross-Site Scripting occurs when an application includes untrusted data on a web page without proper validation or escaping, allowing attackers to inject scripts that can manipulate user sessions, redirect users to malicious sites, or perform unauthorized actions on behalf of users. Therefore, it is crucial to use escape="true" (or omit the escape attribute as it defaults to true) for any user-generated or externally sourced content to prevent this vulnerability and protect the integrity and security of the application.