Scooter & Sidecar: a domain-specific approach to writing secure database migrations
Scooter & Sidecar: a domain-specific approach to writing secure database migrations
复制标题
DOI:
10.1145/3453483.3454072
复制
发表时间:
2021-06
期刊:
影响因子:
--
通讯作者:
John Renner;Alex Sanchez-Stern;Fraser Brown;Sorin Lerner;D. Stefan
中科院分区:
文献类型:
--
作者:
John Renner;Alex Sanchez-Stern;Fraser Brown;Sorin Lerner;D. Stefan
Web applications often handle large amounts of sensitive user data. Modern secure web frameworks protect this data by (1) using declarative languages to specify security policies alongside database schemas and (2) automatically enforcing these policies at runtime. Unfortunately, these frameworks do not handle the very common situation in which the schemas or the policies need to evolve over time---and updates to schemas and policies need to be performed in a carefully coordinated way. Mistakes during schema or policy migrations can unintentionally leak sensitive data or introduce privilege escalation bugs. In this work, we present a domain-specific language (Scooter) for expressing schema and policy migrations, and an associated SMT-based verifier (Sidecar) which ensures that migrations are secure as the application evolves. We describe the design of Scooter and Sidecar and show that our framework can be used to express realistic schemas, policies, and migrations, without giving up on runtime or verification performance.