A new framework is in development to improve web browser security.

The framework, called RLBox, has been integrated into Firefox to complement Firefox’s other security-hardening efforts, said researchers at the University of California San Diego, University of Texas at Austin, Stanford University and Mozilla. RLBox increases browser security by separating third-party libraries that are vulnerable to attacks from the rest of the browser to contain potential damage a practice called sandboxing.

Browsers, like Firefox, rely on third-party libraries to support media decoding (e.g., rendering images or playing audio files) among many other functionalities. These libraries are often written in low-level programming languages, like C, and highly optimized for performance.

“Unfortunately, bugs in C code are often security vulnerabilities security vulnerabilities that attackers are really good at exploiting,” said senior author Deian Stefan, an assistant professor with UC San Diego’s Department of Computer Science and Engineering.

Schneider Bold

RLBox allows browsers to continue to use off-the-shelf, highly tuned libraries without worrying about the security impact of these libraries.

“By isolating libraries we can ensure that attackers can’t exploit bugs in these libraries to compromise the rest of the browser,” said the lead PhD student on the project, Shravan Narayan.

A key piece of RLBox is the underlying sandboxing mechanism, which keeps a buggy library from interfering with the rest of the browser.

The study investigates various sandboxing techniques with different trade-offs. But the team ultimately partnered with the engineering team at San Francisco-based Fastly to adopt a sandboxing technique based on WebAssembly, a new intermediate language designed with sandboxing in mind. The team believes WebAssembly will be a key part of future secure browsers and secure systems more broadly.

“Unfortunately, it’s not enough to put a library in a sandbox, you need to carefully check all the data that comes out of the sandbox otherwise a sophisticated attacker can trick the browser into doing the wrong thing and render the sandboxing effort useless, ” said Stefan.

RLBox eliminates these classes of attacks by tagging everything that crosses the boundary and ensuring all such tagged data is validated before it is used.

RLBox has been integrated into Mozilla’s Firefox and will be shipping to Linux users in Firefox 74 and Mac users in Firefox 75, with plans to implement in other platforms.

“This is a big deal,” saids Bobby Holley, principal engineer at Mozilla. “Security is a top priority for us, and it’s just too easy to make dangerous mistakes in C/C++. We’re writing a lot of new code in Rust, but Firefox is a huge codebase with millions of lines of C/C++ that aren’t going away any time soon. RLBox makes it quick and easy to isolate existing chunks of code at a granularity that hasn’t been possible with the process-level sandboxing used in browsers today.”

In the study, the team isolated half a dozen libraries using RLBox. To start, Firefox will ship with their sandboxed Graphite font shaping library. Mozilla plans to apply the sandboxing more broadly in the future, ultimately making millions of users’ browsers more secure.

Do NOT follow this link or you will be banned from the site!

Pin It on Pinterest

Share This