COM and XPCOM As a Solution to Bamboo's Versioning Problem

Total Page:16

File Type:pdf, Size:1020Kb

COM and XPCOM As a Solution to Bamboo's Versioning Problem Calhoun: The NPS Institutional Archive Theses and Dissertations Thesis Collection 2000-03 COM and XPCOM as a solution to Bamboo's versioning problem Daglar, Mithat. Monterey, California. Naval Postgraduate School http://hdl.handle.net/10945/32949 ' ...... NAVAL POSTGRADUATE SCHOOL Monterey, California THESIS COM AND XPCOM AS A SOLUTION TO BAMBOO'S VERSIONING PROBLEM by Mithat Daglar March 2000 Thesis Advisor: Michael Zyda Co-advisor: Michael V. Capps Approved for public release; distribution is unlimited. _DTIC QUALITY DlSPEC'l'ED 4 Form Approved REPORT DOCUMENTATION PAGE OMB No. 0704-0188 Public reporting burden for this collection of information is estimated to average 1 hour per response, including the time for reviewing instruction, searching existing data sources, gathering and maintaining the data needed, and completing and reviewing the collection of information. Send comments regarding this burden estimate or any other aspect of this collection of information, including suggestions for reducing this burden, to Washington headquarters Services, Directorate for Information Operations and Reports, 1215 Jefferson Davis Highway, Suite 1204, Arlington, VA 22202-4302, and to the Office of Management and Budget, Paperwork Reduction Project (0704-0188) Washington DC 20503. 1. AGENCY USE ONLY (Leave blank) 2. REPORT DATE 3. REPORT TYPE AND DATES COVERED March 2000 Master's Thesis 4. TITLE AND SUBTITLE: COM AND XPCOM AS A SOLUTION TO BAMBOO'S VERSIONING 5. FUNDING NUMBERS PROBLEM. 6. AUTHOR Mithat Daglar 7. PERFORMING ORGANIZATION NAME(S) AND ADDRESS(ES) 8. PERFORMING ORGANIZATION Naval Postgraduate School REPORT NUMBER Monterey, CA 93943-5000 9. SPONSORING I MONITORING AGENCY NAME(S) AND ADDRESS(ES) 10. SPONSORINGIMONTI'ORING AGENCY REPORT NUMBER 11. SUPPLEMENTARY NOTES The views expressed in this thesis are those of the authors and do not reflect the official policy or position of the Department of Defense or the U.S. Government. 12a. DISTRIBUTION I AVAILABILITY STATEMENT 12b. DISTRIBUTION CODE Approved for public release; distribution is unlimited. 13. ABSTRACT (maximum 200 words) Bamboo is a systems toolkit that is primarily concerned with supporting performance-critical applications that must run continuously for extremely long periods of time. Bamboo supports this by managing the loading and unloading of executable code into and out of process memory at runtime. Thus, as application requirements change over time, obsolete code can be replaced without having to restart the application. This technique's flexibility has already been demonstrated, but fails in one critical way. Although the C++ programming language standard defines a consistent syntax, it fails to specify a consistent binary encapsulation. Thus, if the executable code for a C++ base class is dynamically replaced, it is very likely that its in memory layout differs from before and therefore incompatible with whatever derived classes may exist. The only recourse is to recompile and reload the derived classes as well. Component Object Model (COM) and Cross Platform Object Model (XPCOM) solve C++'s weakness by enforcing a complete separation of a class's interface from its implementation. This thesis demonstrates support for dynamic versioning of Bamboo C++ modules using COM and XPCOM. 14. SUBJECT TERMS The versioning Problem, Component Object Model, Cross Platform Object Model 15. NUMBER OF PAGES 140 16. PRICE CODE 20. LIMITATION OF ABSTRACT 17. SECURITY CLASSIFICATION 18. SECURITY CLASSIFICATION 19. SECURITY CLASSIFI· OF REPORT OF THIS PAGE CATION OF ABSTRACT UL Unclassified Unclassified Unclassified NSN 7540-01-280-5500 Standard Form 298 (Rev. 2-89) Prescribed by ANSI Std. 239-18 298-102 ,,,\ ii ~~------- r-------------------------------~-- - Approved for public release; distribution is unlimited COM AND XPCOM AS A SOLUTION TO BAMBOO'S VERSIONING PROBLEM Mithat Daglar Lieutenant Junior Grade, Turkish Navy B.S., Turkish Naval Academy, 1993 Submitted in partial fulfillment of the requirements for the degree of MASTER OF SCIENCE IN COMPUTER SCIENCE from the NAVAL POSTGRADUATE SCHOOL March 2000 Author: Approved by: 111 iv ABSTRACT Bamboo is a systems toolkit that is primarily concerned with supporting performance-critical applications that must run continuously for extremely long periods of time. Bamboo supports this by managing the loading and unloading of executable code into and out of process memory at runtime. Thus, as application requirements change over time, obsolete code can be replaced without having to restart the application. This technique's flexibility has already been demonstrated, but fails in one critical way. Although the C++ programming language standard defines a consistent syntax, it fails to specify a consistent binary encapsulation. Thus, if the executable code for a C++ base class is dynamically replaced, it is very likely that its in memory layout differs from before and therefore incompatible with whatever derived classes may exist. The only recourse is to recompile and reload the derived classes as well. Component Object Model (COM) and Cross Platform Object Model (XPCOM) solve C++'s weakness by enforcing a complete separation of a class's interface from its implementation. This thesis demonstrates support for dynamic versioning of Bamboo C++ modules using COM and XPCOM. v vi TABLE OF CONTENTS I. INTRODUCTION .......................................................................................... 1 A. MOTIVATION ....................................................................................... 1 B. BACKGROUND .................................................................................... 1 1. The Versioning Problem ............................................................... 1 2. Bamboo and Reusability ............................................................... 3 C. THESIS STATEMENT .......................................................................... 7 D. CHAPTERS OVERVIEW ...................................................................... 7 II. RELATED WORK .......................................................................................... 9 A. INTRODUCTION .................................................................................. 9 B. SEPARATING INTERFACE AND IMPLEMENTATION ........................ 9 C. CURRENT SOLUTIONS FOR THE VERSION lNG PROBLEM .......... 10 1. C Wrappers around C++ API ...................................................... 10 2. CORBA ....................................................................................... 11 3. COM ........................................................................................... 13 a. Definition and Fundamentals ............................................... 13 b. Binary Standard for Function Calling ................................... 15 c. Interfaces and Interface Definition Language ..................... 18 d. Run-time Type Discovery ..................................................... 19 e. Component and Interface Identifications ............................. 21 f. Object Registration and Creation .......................................... 22 g. Reusability ........................................................................... 23 D. MICROSOFT AND THE VERSION lNG PROBLEM ............................ 25 E. MOZILLA AND THE VERSIONING PROBLEM .................................. 27 F. SUMMARY ......................................................................................... 28 vii Ill. DESIGN .................................................................................................... 29 A. INTRODUCTION ................................................................................ 29 B. PROPER SOLUTION FOR BAMBOO'S VERSIONING PROBLEM ... 29 1. Using C Wrappers around C++ API.. .......................................... 30 2. COM and CORBA ....................................................................... 32 C. UNSAFE MODULES IN BAMBOO ...................................................... 35 D. APPLYING COM AND XPCOM TO BAMB00 .................................... 37 E. SUMMARY .......................................................................................... 40 IV. IMPLEMENTATION ................................................................................... 41 A. INTRODUCTION ................................................................................ 41 B. NONCOMMODULE IMPLEMENTATION ............................................ 41 1. NonCOMPersonCiassModule ..................................................... 41 2. NonCOMStudentCiassModule .................................................... 42 3. NonCOMTestModule .................................................................. 43 C. [XP]COMMODULE IMPLEMENTATION ........................................... .43 1. [XP]COMPersonCiassModule ................................................... .43 a. Writing the Person Object's Interface .................................. 44 b. Compiling the IPerson.idl File .............................................. 47 c. Declaration of the Person Class ........................................... 47 d. Implementation of the Person Class .................................... 49 e. Declaration of Person Factory .............................................. 52 f. Implementing the Global Functions ...................................... 54 g. Writing a Make File .............................................................. 56 h. Registering the Person Object ............................................
Recommended publications
  • Security Analysis of Firefox Webextensions
    6.857: Computer and Network Security Due: May 16, 2018 Security Analysis of Firefox WebExtensions Srilaya Bhavaraju, Tara Smith, Benny Zhang srilayab, tsmith12, felicity Abstract With the deprecation of Legacy addons, Mozilla recently introduced the WebExtensions API for the development of Firefox browser extensions. WebExtensions was designed for cross-browser compatibility and in response to several issues in the legacy addon model. We performed a security analysis of the new WebExtensions model. The goal of this paper is to analyze how well WebExtensions responds to threats in the previous legacy model as well as identify any potential vulnerabilities in the new model. 1 Introduction Firefox release 57, otherwise known as Firefox Quantum, brings a large overhaul to the open-source web browser. Major changes with this release include the deprecation of its initial XUL/XPCOM/XBL extensions API to shift to its own WebExtensions API. This WebExtensions API is currently in use by both Google Chrome and Opera, but Firefox distinguishes itself with further restrictions and additional functionalities. Mozilla’s goals with the new extension API is to support cross-browser extension development, as well as offer greater security than the XPCOM API. Our goal in this paper is to analyze how well the WebExtensions model responds to the vulnerabilities present in legacy addons and discuss any potential vulnerabilities in the new model. We present the old security model of Firefox extensions and examine the new model by looking at the structure, permissions model, and extension review process. We then identify various threats and attacks that may occur or have occurred before moving onto recommendations.
    [Show full text]
  • Cross Site Scripting Attacks Xss Exploits and Defense.Pdf
    436_XSS_FM.qxd 4/20/07 1:18 PM Page ii 436_XSS_FM.qxd 4/20/07 1:18 PM Page i Visit us at www.syngress.com Syngress is committed to publishing high-quality books for IT Professionals and deliv- ering those books in media and formats that fit the demands of our customers. We are also committed to extending the utility of the book you purchase via additional mate- rials available from our Web site. SOLUTIONS WEB SITE To register your book, visit www.syngress.com/solutions. Once registered, you can access our [email protected] Web pages. There you may find an assortment of value- added features such as free e-books related to the topic of this book, URLs of related Web sites, FAQs from the book, corrections, and any updates from the author(s). ULTIMATE CDs Our Ultimate CD product line offers our readers budget-conscious compilations of some of our best-selling backlist titles in Adobe PDF form. These CDs are the perfect way to extend your reference library on key topics pertaining to your area of expertise, including Cisco Engineering, Microsoft Windows System Administration, CyberCrime Investigation, Open Source Security, and Firewall Configuration, to name a few. DOWNLOADABLE E-BOOKS For readers who can’t wait for hard copy, we offer most of our titles in downloadable Adobe PDF form. These e-books are often available weeks before hard copies, and are priced affordably. SYNGRESS OUTLET Our outlet store at syngress.com features overstocked, out-of-print, or slightly hurt books at significant savings. SITE LICENSING Syngress has a well-established program for site licensing our e-books onto servers in corporations, educational institutions, and large organizations.
    [Show full text]
  • Visual Validation of SSL Certificates in the Mozilla Browser Using Hash Images
    CS Senior Honors Thesis: Visual Validation of SSL Certificates in the Mozilla Browser using Hash Images Hongxian Evelyn Tay [email protected] School of Computer Science Carnegie Mellon University Advisor: Professor Adrian Perrig Electrical & Computer Engineering Engineering & Public Policy School of Computer Science Carnegie Mellon University Monday, May 03, 2004 Abstract Many internet transactions nowadays require some form of authentication from the server for security purposes. Most browsers are presented with a certificate coming from the other end of the connection, which is then validated against root certificates installed in the browser, thus establishing the server identity in a secure connection. However, an adversary can install his own root certificate in the browser and fool the client into thinking that he is connected to the correct server. Unless the client checks the certificate public key or fingerprint, he would never know if he is connected to a malicious server. These alphanumeric strings are hard to read and verify against, so most people do not take extra precautions to check. My thesis is to implement an additional process in server authentication on a browser, using human recognizable images. The process, Hash Visualization, produces unique images that are easily distinguishable and validated. Using a hash algorithm, a unique image is generated using the fingerprint of the certificate. Images are easily recognizable and the user can identify the unique image normally seen during a secure AND accurate connection. By making a visual comparison, the origin of the root certificate is known. 1. Introduction: The Problem 1.1 SSL Security The SSL (Secure Sockets Layer) Protocol has improved the state of web security in many Internet transactions, but its complexity and neglect of human factors has exposed several loopholes in security systems that use it.
    [Show full text]
  • IT Acronyms.Docx
    List of computing and IT abbreviations /.—Slashdot 1GL—First-Generation Programming Language 1NF—First Normal Form 10B2—10BASE-2 10B5—10BASE-5 10B-F—10BASE-F 10B-FB—10BASE-FB 10B-FL—10BASE-FL 10B-FP—10BASE-FP 10B-T—10BASE-T 100B-FX—100BASE-FX 100B-T—100BASE-T 100B-TX—100BASE-TX 100BVG—100BASE-VG 286—Intel 80286 processor 2B1Q—2 Binary 1 Quaternary 2GL—Second-Generation Programming Language 2NF—Second Normal Form 3GL—Third-Generation Programming Language 3NF—Third Normal Form 386—Intel 80386 processor 1 486—Intel 80486 processor 4B5BLF—4 Byte 5 Byte Local Fiber 4GL—Fourth-Generation Programming Language 4NF—Fourth Normal Form 5GL—Fifth-Generation Programming Language 5NF—Fifth Normal Form 6NF—Sixth Normal Form 8B10BLF—8 Byte 10 Byte Local Fiber A AAT—Average Access Time AA—Anti-Aliasing AAA—Authentication Authorization, Accounting AABB—Axis Aligned Bounding Box AAC—Advanced Audio Coding AAL—ATM Adaptation Layer AALC—ATM Adaptation Layer Connection AARP—AppleTalk Address Resolution Protocol ABCL—Actor-Based Concurrent Language ABI—Application Binary Interface ABM—Asynchronous Balanced Mode ABR—Area Border Router ABR—Auto Baud-Rate detection ABR—Available Bitrate 2 ABR—Average Bitrate AC—Acoustic Coupler AC—Alternating Current ACD—Automatic Call Distributor ACE—Advanced Computing Environment ACF NCP—Advanced Communications Function—Network Control Program ACID—Atomicity Consistency Isolation Durability ACK—ACKnowledgement ACK—Amsterdam Compiler Kit ACL—Access Control List ACL—Active Current
    [Show full text]
  • David Horner a Brain That Thinks
    David Horner a brain that thinks. Fort Wayne, Indiana (Fort Wayne, Indiana Area) Computer Software Current Senior Configuration Engineer at MorphoTrust ™ USA Past Independent Software Consultant at TecDev, LLC Advanced Imaging Consultant at Moxie Creative / Observera Senior Software Engineer at Medical Informatics Engineering see all Education Indiana University-Purdue University at Fort Wayne Recommendations 1 person has recommended David Connections 87 connections Websites Personal Website David Horner's Summary The human species has an uncanny ability to analyse and comprehend complex realities. Modeling abstractions consciously and subconsciously of past and future experience to manifest the desired outcome. A biochemical workhorse. The original quantum computer. 86bn neurons, weighing 3lbs, 80% water, and just 2% of the total human body. ●the brain is the sum of my experience...and it is talking directly to you. ●this brain is looking for interesting problems to solve. ●do you have any problems that require technical solutions? ●my preference is telecomputing with physical presence as requested. (I'm flexible) ●relocation is possible, given a firm multi-year commitment with excellent compensation. I enjoy working together with other people to accomplish great things. Specialties: Science, Research, Machine Learning, Math, Computer Vision, Modeling, Simulation, Visualization, Polygot Programmer,C, C++, Java, Perl, Python, Erlang, Haskell, PHP, Ruby, ASM, VBA,ObjC,Perl, Django,Catalyst,Dancer,Mojo,Silverlight, XAML, C#, Vb.NET, WPF,
    [Show full text]
  • Understanding and Mitigating Attacks Targeting Web Browsers
    Understanding and Mitigating Attacks Targeting Web Browsers A Dissertation presented in partial fulfillment of the requirements for the degree of Doctor of Philosophy in the field of Information Assurance by Ahmet Salih Buyukkayhan Northeastern University Khoury College of Computer Sciences Boston, Massachusetts April 2019 To my family, teachers and mentors. i Contents List of Figures v List of Tables vii Acknowledgments viii Abstract of the Dissertation ix 1 Introduction 1 1.1 Structure of the Thesis . .2 2 Background 4 2.1 Browser Extensions . .4 2.1.1 Firefox Extensions . .5 2.1.2 Extension Security . .7 2.2 Vulnerabilities in Web Applications . .9 2.2.1 Vulnerability Reward Programs and Platforms . .9 2.2.2 XSS Vulnerabilities . 10 2.2.3 XSS Defenses . 12 3 CrossFire: Firefox Extension-Reuse Vulnerabilities 14 3.1 Overview . 14 3.2 Threat Model . 15 3.3 Design . 16 3.3.1 Vulnerability Analysis . 17 3.3.2 Exploit Generation . 19 3.3.3 Example Vulnerabilities . 20 3.4 Implementation . 23 3.5 Evaluation . 23 3.5.1 Vulnerabilities in Top Extensions . 23 3.5.2 Random Sample Study of Extensions . 25 3.5.3 Performance & Manual Effort . 27 ii 3.5.4 Case Study: Submitting an Extension to Mozilla Add-ons Repository . 28 3.5.5 Jetpack Extensions. 30 3.5.6 Implications on Extension Vetting Procedures . 31 3.6 Summary . 31 4 SENTINEL: Securing Legacy Firefox Extensions 33 4.1 Overview . 33 4.2 Threat Model . 34 4.3 Design . 35 4.3.1 Intercepting XPCOM Operations . 36 4.3.2 Intercepting XUL Document Manipulations .
    [Show full text]
  • A Plug-In and an XPCOM Component for Controlling Firefox Browser Requests1
    A Plug-in and an XPCOM Component for Controlling Firefox Browser 1 Requests Mozilla’s Firefox offers useful programming APIs to enhance or modify the behavior of browser [2]. The APIs are part of XPCOM (Cross Platform Component Object Model) which provides a set of classes and related methods to perform useful and primitive operations such as file creation and intercepting requests or responses. Most of the XPCOM components are available either through the HTML rendering engine (e.g., Gecko) or JavaScript engine (e.g., SeaMonkey). However, one of the most interesting aspects of Mozilla’s Firefox runtime environment is that it offers us to build customized plug-ins and XPCOM components [1, 4]. It also allows one to implement plug-ins and components in a number of programming languages such as JavaScript. Currently, there exist many plug-ins and XPCOM components that allow programmers to access web pages and browser requests. However, they cannot control browser requests based on HTML form-based requests. This project aims to fill this gap. The project has two parts. First, a plug-in for Firefox browser needs to be developed so that a user can control which requests should be allowed or blocked. To obtain the desired functionalities, one requires implementing a number of JavaScript methods to validate requests (or URLs). The plug-in, when enabled, should perform the following three major functionalities: (i) initialization, (ii) checking requests and HTML forms, (iii) stopping a request and conditionally allowing a request to proceed. The above functionalities will be tested using a set of test cases discussed in [3].
    [Show full text]
  • Torbutton and Firefox
    Torbutton and Firefox Mike Perry Mozilla Brown Bag Jun 22, 2010 Topics For Today 1. Torbutton's Adversary Model and Requirements 2. Torbutton Functional Overview and Demo 3. Torbutton Architecture & Major Components 4. Comparison to Firefox 3.6 Private Browsing 5. Current Firefox Bugs Impacting Tor Security 6. Awkward XPCOM Interfaces and Inconsistencies 7. Interfaces that would be really, really helpful Adversary Goals 1. Bypassing proxy settings 2. Correlation of Tor vs Non-Tor 3. History disclosure 4. Location information 5. Misc Anonymity set reduction (Fingerprinting) 6. History records and other on-disk information Adversary Capabilities (Positioning) ● Can modify content at exit node or its router ● Can insert malicious content into ads or websites they control – Can target Tor enabled as well as Tor disabled states ● Can insert malicious content into non-Tor traffic – At user's local network, ISP, or other upstream router ● Can seize computers of Tor Users Adversary Capabilities (Attacks) ● Can insert javascript into content – Attribute-based history disclosure – Timezone information, Fingerprinting – Browser Exploits ● Can insert CSS into content – JS-free attribute-based history disclosure ● Can insert plugins into content – Proxy bypass, alternate identifier storage ● Can read and insert cookies ● Can create cached content (unique identifiers) Torbutton Requirements 1. Proxy Obedience – Obey Tor settings 2. Network Isolation – Don't mix Tor+Non-Tor 3. State Separation – Keep cookies, cache separate 4. Tor Undiscoverability – Hidden while Tor is off 5. Disk Avoidance – Don't write Tor state to disk 6. Location Neutrality – Don't reveal location 7. Anonymity Set Preservation – Mask User Agent 8. Update Safety – No insecure updates via Tor 9.
    [Show full text]
  • Google-Chrome- Extension
    google-chrome- extension #google- chrome- extension Tabla de contenido Acerca de 1 Capítulo 1: Empezando con google-chrome-extension 2 Observaciones 2 TODO: Breve descripción de las extensiones de Chrome 2 Documentacion oficial 2 Otras lecturas 2 TODO: poblar con enlaces a temas importantes de visión general 2 Examples 2 Ejemplo mínimo absoluto 2 Página de fondo 3 Guiones de contenido 4 Ver también 4 Página de opciones 5 Versión 2 5 Versión 1 ( obsoleta ) 6 Almacenamiento 6 Documentacion oficial 6 Crear una nueva pestaña 6 Capítulo 2: Depuración de extensiones de Chrome 8 Examples 8 Usando las herramientas del desarrollador para depurar su extensión 8 Capítulo 3: Guiones de contenido 10 Observaciones 10 Documentacion oficial 10 Examples 10 Declarar scripts de contenido en el manifiesto. 10 Ejemplo minimo 10 Nota IMPORTANTE 11 Inyectar scripts de contenido desde una página de extensión 11 Ejemplo minimo 11 Código en línea 11 Elegir la pestaña 11 Permisos 12 Comprobando errores 12 Múltiples scripts de contenido en el manifiesto. 12 Las mismas condiciones, múltiples scripts. 12 Mismos guiones, múltiples sitios. 12 Diferentes guiones o diferentes sitios. 13 Capítulo 4: Integración de herramientas de desarrollador 14 Examples 14 Indicaciones de punto de interrupción programáticas 14 Depuración de la página de fondo / script 14 Depurando la ventana emergente 15 Capítulo 5: manifest.json 16 Observaciones 16 Documentacion oficial 16 Formato 16 Examples 17 Absoluto mínimo manifest.json 17 Obtención del manifiesto a partir del código de extensión. 17 Capítulo 6: Páginas de fondo 18 Examples 18 Declarando página de fondo en el manifiesto. 18 Capítulo 7: Paso de mensajes 19 Observaciones 19 Documentacion oficial 19 Examples 19 Enviar una respuesta de forma asíncrona.
    [Show full text]
  • Tkgecko: Another Attempt for an HTML Renderer for Tk Georgios Petasis
    TkGecko: Another Attempt for an HTML Renderer for Tk Georgios Petasis Software and Knowledge Engineering Laboratory, Institute of Informatics and Telecommunications, National Centre for Scientific Research “Demokritos”, Athens, Greece [email protected] Abstract The support for displaying HTML and especially complex Web sites has always been problematic in Tk. Several efforts have been made in order to alleviate this problem, and this paper presents another (and still incomplete) one. This paper presents TkGecko, a Tcl/Tk extension written in C++, which allows Gecko (the HTML processing and rendering engine developed by the Mozilla Foundation) to be embedded as a widget in Tk. The current status of the TkGecko extension is alpha quality, while the code is publically available under the BSD license. 1 Introduction The support for displaying HTML and contemporary Web sites has always been a problem in the Tk widget, as Tk does not contain any support for rendering HTML pages. This shortcoming has been the motivation for a large number of attempts to provide support from simple rendering of HTML subsets on the text or canvas widgets (i.e. for implementing help systems) to full-featured Web browsers, like HV3 [1] or BrowseX [2]. The relevant Tcl Wiki page [3] lists more than 20 projects, and it does not even cover all of the approaches that try to embed existing browsers in Tk through COM or X11 embedding. One of the most popular, and thus important, projects is Tkhtml [4], an implementation of an HTML rendering component in C for the Tk toolkit. Tkhtml has been actively maintained for several years, and the current version supports many HTML 4 features, including CCS and possibly JavaScript through the Simple ECMAScript Engine (SEE) [5].
    [Show full text]
  • Securing Legacy Firefox Extensions with SENTINEL
    Securing Legacy Firefox Extensions with SENTINEL Kaan Onarlioglu1, Mustafa Battal2, William Robertson1, and Engin Kirda1 1 Northeastern University, Boston fonarliog,wkr,[email protected], 2 Bilkent University, Ankara [email protected] Abstract. A poorly designed web browser extension with a security vulnerability may expose the whole system to an attacker. Therefore, attacks directed at \benign-but-buggy" extensions, as well as extensions that have been written with malicious intents pose significant security threats to a system running such components. Recent studies have in- deed shown that many Firefox extensions are over-privileged, making them attractive attack targets. Unfortunately, users currently do not have many options when it comes to protecting themselves from exten- sions that may potentially be malicious. Once installed and executed, the extension needs to be trusted. This paper introduces Sentinel, a policy enforcer for the Firefox browser that gives fine-grained control to the user over the actions of existing JavaScript Firefox extensions. The user is able to define policies (or use predefined ones) and block common attacks such as data exfiltration, remote code execution, saved password theft, and preference modification. Our evaluation of Sentinel shows that our prototype implementation can effectively prevent concrete, real- world Firefox extension attacks without a detrimental impact on users' browsing experience. Keywords: Web browser security, browser extensions 1 Introduction A browser extension (sometimes also called an add-on) is a useful software com- ponent that extends the functionality of a web browser in some way. Popular browsers such as Internet Explorer, Firefox, and Chrome have thousands of ex- tensions that are available to their users.
    [Show full text]
  • Here.Is.Only.Xul
    Who am I? Alex Olszewski Elucidar Software Co-founder Lead Developer What this presentation is about? I was personally assigned to see how XUL and the Mozilla way measured up to RIA application development standards. This presentation will share my journey and ideas and hopefully open your minds to using these concepts for application development. RIA and what it means Different to many “Web Applications” that have features and functions of “Desktop” applications Easy install (generally requires only application install) or one-time extra(plug in) Updates automatically through network connections Keeps UI state on desktop and application state on server Runs in a browser or known “Sandbox” environment but has ability to access native OS calls to mimic desktop applications Designers can use asynchronous communication to make applications more responsive RIA and what it means(continued) Success of RIA application will ultimately be measured by how will it can match user’s needs, their way of thinking, and their behaviour. To review RIA applications take advantage of the “best” of both web and desktop apps. Sources: http://www.keynote.com/docs/whitepapers/RichInternet_5.pdf http://en.wikipedia.org/wiki/Rich_Internet_application My First Steps • Find working examples Known Mozilla Applications Firefox Thunderbird Standalone Applications Songbird Joost Komodo FindthatFont Prism (formerly webrunner) http://labs.mozilla.com/featured- projects/#prism XulMine-demo app http://benjamin.smedbergs.us/XULRunner/ Mozilla
    [Show full text]