CAS-003 · Question #924
A security analyst discovered the following request to a public-facing web server in a log: The security analyst recommended an extra protection, so the web application can resist the above attack…
The correct answer is C. The web application must set set-cookie secure. D. The web application must configure tie cookie for HttpOnly. The log entry likely shows a session hijacking attack-an attempt to steal or forge session cookies transmitted over an insecure channel. Two complementary protections address this: (C) The Secure flag on the Set-Cookie header ensures the cookie is only transmitted over…
Question
A security analyst discovered the following request to a public-facing web server in a log:
The security analyst recommended an extra protection, so the web application can resist the above attack. Which of the following did the security analyst recommend? (Select TWO)
Options
- ADisable the Windows location feature on the web server.
- BBlock port tcp'90 on the firewall.
- CThe web application must set set-cookie secure.
- DThe web application must configure tie cookie for HttpOnly
- EThe web application must blacklist the server 1.54.13.1
- FThe web application must clear the SameSite field in the cookie
How the community answered
(27 responses)- A4% (1)
- B4% (1)
- C70% (19)
- E7% (2)
- F15% (4)
Explanation
The log entry likely shows a session hijacking attack-an attempt to steal or forge session cookies transmitted over an insecure channel. Two complementary protections address this: (C) The Secure flag on the Set-Cookie header ensures the cookie is only transmitted over HTTPS-encrypted connections, preventing interception via man-in-the-middle or network sniffing on plaintext HTTP. (D) The HttpOnly flag prevents client-side JavaScript from accessing the cookie, blocking session token theft via Cross-Site Scripting (XSS) attacks where malicious script attempts document.cookie access. Together, these two flags protect session cookies from both transport-layer interception and client-side script theft. The other options are irrelevant: disabling a location feature (A) and blocking port 90 (B) don't address cookie security; blacklisting a single IP (E) is easily bypassed; clearing the SameSite field (F) would make the application less secure, not more.
Topics
Community Discussion
No community discussion yet for this question.