ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 157 - Certified Sharing and Visibility Architect discussion

Report
Export

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
Answers
A.
FLS check
B.
SOQL Injection
Answers
B.
SOQL Injection
C.
Data Access Control
Answers
C.
Data Access Control
D.
Arbitrary Redirects
Answers
D.
Arbitrary Redirects
Suggested answer: B, C
asked 23/09/2024
Christopher Castillo
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first