Show simple item record

dc.contributor.advisorShmatikov, Vitalyen
dc.creatorGeorgiev, Martin Hristoven
dc.date.accessioned2015-11-19T17:05:56Zen
dc.date.available2015-11-19T17:05:56Zen
dc.date.issued2015-08en
dc.date.submittedAugust 2015en
dc.identifierdoi:10.15781/T2D34Ben
dc.identifier.urihttp://hdl.handle.net/2152/32586en
dc.descriptiontexten
dc.description.abstractToday's systems abstract the implementation details of common services such as secure client-server communication, access to native device resources (e.g. camera), access to cloud-stored files and folders, etc. by exposing a set of application programming interfaces (service APIs) to applications and software packages. In this dissertation, we analyze service APIs exposed by modern systems across all layers of the software stack and demonstrate that they are too complex for developers to understand and use correctly. Instead of providing high-level abstractions such as authorization and authentication, they provide low-level details such as callbacks, options and flags. As a result, service APIs used in security-critical software often end up being misconfigured and exposing sensitive users' data to botnet, Web and network attackers. To demonstrate the pervasiveness of the problem, we perform the first systematic analysis of insecure usage of service APIs in modern software developed and maintained by both individual developers and large software companies. First, we analyze the perils and pitfalls of low-level service APIs for establishing secure network channels. SSL/TLS (Secure Sockets Layer/Transport Layer Security) is currently the de facto standard for secure Internet communication; its security against active network attackers depends on properly validating server certificates at connection establishment. Unfortunately, our analysis shows that SSL/TLS APIs are often poorly understood and used. As a consequence, server certificate validation is completely broken in many security-critical applications and libraries, and thus exposes users' data to network attackers. Second, we study the software stack employed by modern hybrid applications. Hybrid apps combine the features of Web apps and "native" apps. Like Web apps, they are implemented in platform-independent languages such as HTML5 and JavaScript. Like native apps, they have direct access to local device resources such as file system and camera. We demonstrate that the frameworks on top of which hybrid apps are developed do not properly compose the access-control policies governing the Web half and the local half of the app. The Web half runs in a browser instance, created by the framework at application initialization time, and is confined by the browser's same origin policy. The local half is governed by the access-control policy of the operating system. Unfortunately, improper composition of the two types of access-control policies at the framework layer effectively subjects the applications to "fracking" attacks—foreign-origin Web content (e.g., ads) included into hybrid apps can drill through the layers of the software stack and steal user's contacts list, text messages, photos, etc. Third, we analyze service APIs exposed by today's Web-based application platforms. This new class of platforms provide browser-like runtime environments to support Web-based applications. Such apps run outside the traditional Web browser and enjoy direct access to native objects such as files and GPS. However, unlike the service APIs exposed by hybrid frameworks, this category of service APIs is exposed by the platforms themselves, effectively eroding the distinction between desktop, mobile, and Web-based software. Unfortunately, we demonstrate that the access-control models used by Web-based application platforms are inadequate. As a result, when applications request access to sensitive resources for their own code, they unintentionally enable it for untrusted third-party code, too. Fourth, we study server-side service APIs exposed by some of today's cloud services and demonstrate that many of them are vulnerable to scanning and thus leak users' data. For example, we show that cloud storage providers that allow users to share files and folders via short URLs and support APIs for easy account traversal end up exposing their users to large-scale privacy and security breaches. To address the vulnerabilities plaguing today's service APIs, we suggest that new principled service APIs be designed, implemented and deployed at all levels of the software stack. Unlike the old APIs, the new service APIs must provide simple interfaces through which developers can easily specify their high-level security objectives such as confidentiality and authentication. In this dissertation, we implement two new principled mechanisms for enforcing security in service APIs used by Web code of modern hybrid and Web-based apps. We also provide recommendations for improving the security of SSL/TLS APIs and APIs for managing cloud-stored files. Our first prototype system is called NoFrak. It introduces a new technique for protecting native access APIs in hybrid apps from "fracking" attacks. NoFrak is platform-independent and requires no changes to the code of existing apps. Our second system is PowerGate. In its core, PowerGate is a new access-control mechanism for protecting APIs to native objects in Web-based applications from unauthorized access. PowerGate enables application developers to write well-defined access-control policies with explicit principals such as "application's own local code" and "third-party Web code".en
dc.format.mimetypeapplication/pdfen
dc.language.isoenen
dc.subjectWeb securityen
dc.subjectMobile securityen
dc.subjectNetwork protocol securityen
dc.subjectSecurity vulnerabilitiesen
dc.titleOn the (in)security of service APIsen
dc.typeThesisen
dc.date.updated2015-11-19T17:05:56Zen
dc.contributor.committeeMemberWaters, Brenten
dc.contributor.committeeMemberWitchel, Emmetten
dc.contributor.committeeMemberQiu, Lilien
dc.contributor.committeeMemberWang, XiaoFengen
dc.description.departmentComputer Sciencesen
thesis.degree.departmentComputer Sciencesen
thesis.degree.disciplineComputer scienceen
thesis.degree.grantorThe University of Texas at Austinen
thesis.degree.levelDoctoralen
thesis.degree.nameDoctor of Philosophyen
dc.creator.orcid0000-0002-2587-3671en


Files in this item

Thumbnail

This item appears in the following Collection(s)

Show simple item record