A and D
Elimination:
B. Trim whitespace
> whitespace is not the issue with injection attacks
C. limit text areas to 255 characters
> You could perform an injection with less than 255 characters.
E. only use dropdown, checkbox, and radio button fields
> This is client side code that prevents users to inject via a browser, but does not prevent a scripted attack.
Correct answers: A & D
Against injection attacks:
- Escaping Inputs/Sanitizing Inputs
- Principle of Least Privilege
- Parameterized queries and prepared statements
- Prevent all SQL-generated error messages from being displayed to the end user
- Password Hashing
- Third Party Authentication
- Data validation process to assess data against a set of rules
- Intrusion prevention system (IPS) or a next-generation firewall (NGFW)
A and D are correct
The following defense methods are available:
- Escaping Inputs/Sanitizing Inputs
- Principle of Least Privilege
- Parameterized queries and prepared statements
- Prevent all SQL-generated error messages from being displayed to the end user
- Password Hashing
- Third Party Authentication
- Data validation process to assess data against a set of rules
- Intrusion prevention system (IPS) or a next-generation firewall (NGFW)
It's A and D.
Reference: https://www.hacksplaining.com/prevention/sql-injection
upvoted 5 times
...
This section is not available anymore. Please use the main Exam Page.350-901 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Writer
Highly Voted 2 years, 11 months agopsyborg
Highly Voted 2 years, 5 months agoTeringzooi
Most Recent 7 months, 3 weeks agodesignated
8 months, 4 weeks agoQuiShong
11 months, 1 week ago__al__
1 year, 1 month agoBloody_sausage
2 years, 6 months ago