MCQ
Single Best Answer
Difficult
QTo improve the overall quality of web applications, developers should abide by which of the following rules?
ID: #23266
Secure Programming Practices
173 views
Question Info
#23266Q ID
DifficultDifficulty
Secure Programming PracticesTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option B
Explanation
The correct answer is:
Clean and validate all user input
Explanation: To improve the overall quality and security of web applications, it is essential to clean and validate all user input. This ensures that data entered by users is both expected and safe to use, helping to prevent common vulnerabilities like SQL injection, cross-site scripting (XSS), and other malicious attacks that exploit improperly validated input.
The other options:
- Allowing the use of HIDDEN form fields can be risky if not handled properly, as attackers might manipulate them.
- Using GET instead of POST is not advisable for sensitive operations because GET data is visible in the URL and can be cached.
- Trusting user-supplied data is inherently insecure, as it opens up the application to various attacks. It is crucial to always validate and sanitize such data.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic