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

从Web应用程序中提取数据库访问控制策略

Extracting Database Access-Control Policies From Web Applications

UC Berkeley(加州大学伯克利分校);NYU(纽约大学);ICSI(国际计算机科学研究所)

Wen Zhang, Dev Bali, Jamison Kerney, Aurojit Panda, Scott Shenker

AI总结:

研究从Web应用程序中提取数据库访问控制策略的问题,核心方法是用Ote工具,通过协同执行探索执行路径生成SQL查询及触发条件跟踪,再合并简化成策略,主要贡献是应用该方法发现手写策略存在错误。

摘要:

为保护敏感用户数据,Web开发人员通常依赖隐式访问控制策略,通过访问检查和查询过滤器来实现。这种临时方法容易出错,因为分散的检查和过滤器容易错位或指定错误,且缺乏明确策略妨碍外部访问控制执行。更关键的是,人类难以辨别应用程序代码中嵌入了什么策略。本文解决策略提取问题,即通过总结数据查询来提取应用程序中嵌入的访问控制策略。提取的策略经错误检查后可作为应用程序数据访问规范独立存在,并在代码随时间变化时强制执行以确保合规。我们引入了Ote,一种用于Ruby on Rails Web应用程序的策略提取器。Ote使用协同执行来探索应用程序的执行路径,生成SQL查询及其触发条件的跟踪。然后将这些跟踪合并并简化为与观察到的行为一致的最终策略。我们将Ote应用于三个实际应用程序,并将提取的策略与手写策略进行比较,发现后者存在一些错误。

英文摘要:

To safeguard sensitive user data, web developers typically rely on implicit access-control policies, which they implement using access checks and query filters. This ad hoc approach is error-prone as these scattered checks and filters are easy to misplace or misspecify, and the lack of an explicit policy precludes external access-control enforcement. More critically, it is difficult for humans to discern what policy is embedded in application code (i.e., what data the application may access) -- an issue that worsens as development teams evolve. This paper tackles policy extraction: the task of extracting the access-control policy embedded in an application by summarizing its data queries. An extracted policy, once vetted for errors, can stand alone as a specification for the application's data access, and can be enforced to ensure compliance as code changes over time. We introduce Ote, a policy extractor for Ruby on Rails web applications. Ote uses concolic execution to explore execution paths through the application, generating traces of SQL queries and conditions that trigger them. It then merges and simplifies these traces into a final policy that aligns with the observed behaviors. We applied Ote to three real-world applications and compared extracted policies to handwritten ones, revealing several errors in the latter.

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

↑