List of questions
Related questions
Question 157 - Certified Sharing and Visibility Architect discussion
Which two are potential vulnerabilities in the following code snippet? <apex:page> <apex:form> <apex:outputText value='Enter Name'/> <apex:inputText value='{!name}' /> <apex:commandButton value='Query' action='{!query}' /> </apex:form> </apex:page> public class SOQLController { public String name { get { return name;} set {name=value;} } public PageReference query() { String qryString='SELECT Id FROM Contact WHERE '+ '(IsDeleted = false and Name like \'%' + name + '%\'}'; queryResult = Database.query(qryString); retunr null; } } Choose 2 answers
A.
FLS check
B.
SOQL Injection
C.
Data Access Control
D.
Arbitrary Redirects
Your answer:
0 comments
Sorted by
Leave a comment first