arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1612.00669cs.PL
收藏

基于事务的JavaScript沙箱

Transaction-based Sandboxing for JavaScript

Matthias Keil, Peter Thiemann

摘要:

当今的JavaScript应用程序由来自不同来源的脚本组成,这些脚本在运行时间加载。由于并非所有这些源都是同等可信的,因此这些脚本的执行应该彼此隔离。但是,有些脚本必须访问应用程序状态,有些脚本可以更改应用程序状态,同时保留应用程序的机密性和完整性约束。本文介绍了DecentJS的设计和实现,一个语言嵌入式沙箱的完整JavaScript。它使脚本能够在具有细粒度访问控制的可配置隔离度中运行。它提供了一个事务范围,在该范围内记录影响,以供访问控制策略审查。检查日志后,可以将效果提交到应用程序状态或回滚。该实现依赖于JavaScript代理来保证完整语言和所有代码的完全插入,包括动态加载的脚本和通过eval注入的代码。它唯一的限制是脚本必须符合JavaScript的严格模式。

英文摘要:

Today's JavaScript applications are composed of scripts from different origins that are loaded at run time. As not all of these origins are equally trusted, the execution of these scripts should be isolated from one another. However, some scripts must access the application state and some may be allowed to change it, while preserving the confidentiality and integrity constraints of the application. This paper presents design and implementation of DecentJS, a language-embedded sandbox for full JavaScript. It enables scripts to run in a configurable degree of isolation with fine-grained access control. It provides a transactional scope in which effects are logged for review by the access control policy. After inspection of the log, effects can be committed to the application state or rolled back. The implementation relies on JavaScript proxies to guarantee full interposition for the full language and for all code, including dynamically loaded scripts and code injected via eval. Its only restriction is that scripts must be compliant with JavaScript's strict mode.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑