reiern70 opened a new issue, #2054: URL: https://github.com/apache/wicket/issues/2054
Follow-up to #2009 (#2008), from an inline comment of the approving review. By default `DeviceBoundSessions#onMissingCredential` invalidates the session, so another site can sign a user out. Once the bound cookie has expired, which happens after ten minutes in an idle tab, the browser does not refresh it for a request that another site started (DBSC §8.3, §8.5). A link or a redirect from any page then arrives with `JSESSIONID` (`SameSite=Lax` by default) but without the bound cookie, and the default ends the session. With a `SameSite=None` session cookie an `<img>` is enough. This goes further than what was accepted for a copied cookie: here the attacker needs no cookie at all. The default can use the `MissingCredential` it receives. For a request that is not same-origin, it answers with a small page that reloads the same URL, instead of ending the session. The reload comes from the application's own origin, so the browser refreshes the bound cookie first. A browser without the key fails again, and the session ends then. This depends on #2053: a request from a sibling subdomain is not refreshed either, so it needs the reload as well. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
