Saved in:
Bibliographic Details
Main Authors: Zhang, Wen, Bali, Dev, Kerney, Jamison, Panda, Aurojit, Shenker, Scott
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2411.11380
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917866863853568
author Zhang, Wen
Bali, Dev
Kerney, Jamison
Panda, Aurojit
Shenker, Scott
author_facet Zhang, Wen
Bali, Dev
Kerney, Jamison
Panda, Aurojit
Shenker, Scott
contents 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 and 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.
format Preprint
id arxiv_https___arxiv_org_abs_2411_11380
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Extracting Database Access-control Policies From Web Applications
Zhang, Wen
Bali, Dev
Kerney, Jamison
Panda, Aurojit
Shenker, Scott
Software Engineering
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 and 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.
title Extracting Database Access-control Policies From Web Applications
topic Software Engineering
url https://arxiv.org/abs/2411.11380