Affected configurations:
By tricking a user into visiting a malicious subdomain, the attacker can achieve an XSS directly affecting the former's session. More precisely, in the context of JupyterHub, this XSS could achieve the following:
To prevent cookie-tossing:
c.JupyterHub.subdomain_host = "https://mydomain.example.org"c.JupyterHub.cookie_host_prefix_enabled = True to enable domain-locked cookiesor, if available (applies to earlier JupyterHub versions):
c.JupyterHub.subdomain_host = "https://mydomain.example.org"