This is a good article. Click here for more information.

Site isolation

From WikiProjectMed
Jump to navigation Jump to search

A depiction of how site isolation separated different websites into different processes

Site isolation is a feature in certain web browsers that allow cross-origin sites to be isolated from each other. The feature was originally proposed by Charles Reis and others, with subsequent iterations from Microsoft, in the form of their implementation of the feature in the Gazelle research browser. However, the feature failed to gain traction due to issues surrounding its implementation and performance concerns.

In 2018, following the disclosure of the Spectre and Meltdown vulnerabilities to the public, Google started work on adding site isolation in Chrome eventually culminating in a 2019 release of the feature. In 2021, Firefox also launched their own version of site isolation which they had been working on under the codename Project Fission.

Despite the security benefits of this feature, researchers have also found security issues surrounding various aspects of this feature. These include issues with the perceived protection against transient attacks such as Spectre and Meltdown, as well as new timing and resource exhaustion attacks enabled by this feature.

Background

Until 2017, the predominant security architecture of major browsers adhered to the process-per-browsing-instance model. This entailed the browser comprising distinct sandboxed processes, including the browser process, GPU process, networking process, and rendering process. The rendering process would engage with other privileged services when necessary to execute elevated actions when viewing a web page.[1][2]

Although this model successfully prevented problems associated with malicious JavaScript gaining access to the operating system, it lacked the capability to isolate websites from each other adequately.[3] Despite these concerns, the adoption of a more robust model faced limited traction due to perceived issues with newer models, particularly those related to performance and memory.[4][5]

In 2017, the disclosure of Spectre and Meltdown exploits, however, altered this landscape. Previously accessing arbitrary memory was complicated requiring a compromised renderer. However with Spectre, attacks were developed that abused Javascript features to read almost all memory in the rendering process, including memory storing potentially sensitive information from previously rendered cross-origin pages.[6][7] This exposed the issues of the process-per-instance security model. Consequently, a new security architecture that allowed the separation of the rendering of different web pages into entirely isolated processes was required.[8][7]

History

In 2009, Reis et al. proposed the first version of the process-per-site model to isolate web pages based on the page's web origin.[9] This was improved upon in 2009 by the Gazelle research browser, which separated specific document frames based on their web principal, a security barrier that corresponded with the specific document that was being loaded.[10][11] Around the same time, work was also being done on the OP (which would later become the OP2 browser), IBOS, Tahoma and the SubOS browsers all of which proposed different paradigms to solve the issue of process separation amongst sites.[12][13]

Modern implementation

In 2019, Reis, et al of the Google Chrome project presented a paper at USENIX Security[14] that detailed changes to their existing browser security model in response to the recent research proving that the Spectre attack could be used inside the rendering process of the browser.[15][16] The paper proposed changes to the model that borrowed from Reis et al.'s work in 2009.[17] Chrome's implementation of site isolation would use web origins as a primary differentiator of a 'site' at a process level.[18][19] Additionally, the Chrome team also implemented the idea of website frames being executed out of process, a feature that had been suggested by the authors of the Gazelle web browser, as well as the OP and OP2 web browsers.[12] This required a significant re-engineering of Chrome's process handling code, involving to more than 4000 commits from 320 contributors over a period of 5 years.[20]

Chrome's implementation of site isolation allowed it to eliminate multiple universal cross-site scripting (uXSS) attacks.[21] uXSS attacks allow attackers to compromise the same-origin policy, granting unrestricted access to inject and load attacker controlled javascript on other website.[22] The Chrome team found that all 94 uXSS attacks reported between 2014 and 2018 would be rendered ineffective by the deployment of site isolation.[23] In addition to this, the Chrome team also claimed that their implementation of site isolation would be effective at preventing variations of the Spectre and Meltdown group of timing attacks that relied on the victim address space being on the same process as the attacker process.[16]

In March 2021, the Firefox development team announced that they would also roll out their implementation of site isolation. This feature had been in development for multiple months under the codename Project Fission.[24] Firefox's implementation fixed a few of the flaws that had been found in Chrome's implementation namely the fact that similar web pages were still vulnerable to uXSS attacks.[25][26] The project also required a rewrite of the process handling code in Firefox.[27]

Reception

Before 2019, site isolation had only been implemented by research browsers. Site isolation was considered to be resource intensive[5] due to an increase in the amount of memory space taken up by the processes.[28] This performance overhead was reflected in real world implementations as well.[29] Chrome's implementation of site isolation on average took one to two cores more than the same without site isolation.[5] Additionally, engineers working on the site isolation project observed a 10 to 13 percent increase in memory usage when site isolation was used.[30][31]

Chrome was the industry's first major web browser to adopt site isolation as a defense against uXSS and transient execution attacks.[32] To do this, they overcame multiple performance and compatibility hurdles, and in doing so, they kickstarted an industry-wide effort to improve browser security. However, despite this, certain aspects of Spectre's defenses have been found lacking.[6] In particular, site isolation's ability to defend against timing attacks has been found to be incomplete.[33] In 2021, Agarwal et al. were able to develop an exploit called Spook.js that was able to break Chrome's Spectre defenses and exfiltrate data across web page in different origins.[34] In the same year, researchers at Microsoft, were able to leverage site isolation to perform a variety of timing attacks that allowed them to leak cross-origin information by careful manipulation of the inter-process communication protocols employed by site isolation.[35]

In 2023, researchers at Ruhr University Bochum showed that they were able to leverage the process architecture required by site isolation to exhaust system resources and also perform advanced attacks like DNS poisoning.[36]

References

Citations

  1. ^ Reis & Gribble 2009, pp. 225–226.
  2. ^ Dong et al. 2013, pp. 78–79.
  3. ^ Jia et al. 2016, pp. 791–792.
  4. ^ Dong et al. 2013, p. 89.
  5. ^ a b c Zhu, Wei & Tiwari 2022, p. 114.
  6. ^ a b Jin et al. 2022, p. 1525.
  7. ^ a b Röttger & Janc.
  8. ^ Rogowski et al. 2017, pp. 336–367.
  9. ^ Reis & Gribble 2009, pp. 224–225.
  10. ^ Paul 2009.
  11. ^ Wang et al. 2009, pp. 1–2.
  12. ^ a b Reis, Moshchuk & Oskov 2019, p. 1674.
  13. ^ Dong et al. 2013, p. 80.
  14. ^ Gierlings, Brinkmann & Schwenk 2023, p. 7049.
  15. ^ Kocher et al. 2020, pp. 96–97.
  16. ^ a b Reis, Moshchuk & Oskov 2019, p. 1661.
  17. ^ Reis, Moshchuk & Oskov 2019, pp. 1663, 1664.
  18. ^ Bishop 2021, pp. 25–26.
  19. ^ Rokicki, Maurice & Laperdrix 2021, p. 476.
  20. ^ Reis, Moshchuk & Oskov 2019, p. 1667.
  21. ^ Kim & Lee 2023, p. 757.
  22. ^ Kim et al. 2022, p. 1007.
  23. ^ Reis, Moshchuk & Oskov 2019, p. 1668.
  24. ^ Cimpanu 2019.
  25. ^ Narayan et al. 2020, p. 714.
  26. ^ Kokatsu 2020.
  27. ^ Layzell 2019.
  28. ^ Reis & Gribble 2009, pp. 229–230.
  29. ^ Wang et al. 2009, pp. 12–13.
  30. ^ Warren 2018.
  31. ^ Reis, Moshchuk & Oskov 2019, p. 1671.
  32. ^ Jin et al. 2022, p. 1526.
  33. ^ Jin et al. 2022, p. 1527.
  34. ^ Agarwal et al. 2022, pp. 1529, 1530.
  35. ^ Jin et al. 2022, pp. 1525, 1530.
  36. ^ Gierlings, Brinkmann & Schwenk 2023, pp. 7037–7038.

Sources