Q: 11
A security team is reviewing the findings in a report that was delivered after a third party performed a penetration test. One of the findings indicated that a web application form field is vulnerable to cross-site scripting. Which of the following application security techniques should the security analyst recommend the developer implement to prevent this vulnerability?
Options
Discussion
C not A. Secure cookies are for session protection, but input validation directly prevents XSS. Pretty sure C is right.
Makes sense, this would be C. Saw a super similar question show up in some practice tests too.
B
For XSS, shouldn't input validation (C) be the go-to? Secure cookies help with session stuff, but they don't stop script injection in form fields. Unless I'm missing something here, input checks are key. Agree?
Probably C here. XSS prevention is all about input validation, not code signing or cookies.
Be respectful. No spam.