CS FundamentalsHardGATE CS · product-company placement

A bank's session cookie is set with SameSite=Lax. While logged in, the user visits evil.example, which (1) auto-submits a hidden POST form to the bank, (2) shows a link to the bank that the user clicks, and (3) loads an image from a bank URL. In which cases does the browser send the cookie?

  1. A. Only (2), the top-level GET navigation
  2. B. (1) and (2), because both are navigations
  3. C. (2) and (3), because both are GET requests
  4. D. All three, because the cookie belongs to the bank

Correct answer: A. Only (2), the top-level GET navigation

Lax sends the cookie on cross-site requests only for top-level navigations with a safe method such as GET. A cross-site POST (the classic CSRF vector) and a cross-site sub-resource like an image are sent without it.

More Computer Networks questions

Exams that ask this topic