Question: A developer needs to provide feedback on a peers work during the sdlc. While reviewing the code changes the developer discovers session id tokens for
A developer needs to provide feedback on a peers work during the sdlc. While reviewing the code changes the developer discovers session id tokens for a web application will be transmitted over an unsecure connection. Which of the following code snippet should developer recommend implementing to correct the vulnerability?
-
Cookie cookie new cookie (primary);
Cookie.secure (true);
-
String input request.getParameter (input);
String caricature Pattern {./a-aA-Z0-9?m4};
If (: input. Matches (character Pattern)
{
Out.rintin {Invalid Input);
C.
D.
value=<%=rsAPI.encoder().encodeForHTML (request.getParameter (sessionPM) ) %>/>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
