Research Article

A Protection Mechanism against Malicious HTML and JavaScript Code in Vulnerable Web Applications

Table 1

The JavaScript objects with serious security risks.

CategoryFunctionalityObject

CommunicationNetwork communication, Cross-Document Messaging, Web Real-Time Communication WebSocket, EventSource, XMLHttpRequest, postMessage, RTCPeerConnection, RTCDataChannel

StorageStorage, File System APIlocalStorage, sessionStorage, indexedDB, openDatabase, requestFileSystem

DeviceHardware Device AccessgetUserMedia, geolocation, vibrate, battery, connection

InteractionInteraction with users (such as popups, desktop notifications, and full screen) open (window.open), showModalDialog, showModelessDialog, alert, prompt, print, createPopup, Notification, requestFullscreen

PrivilegeSpecial privileges (e.g., connecting to other applications) and High-Risk HTML5 APIs (e.g., executing the script in the background)clipboardData, addFavorite, addPanel, setHomePage, AddSearchProvider, ActiveXObject, Worker, history, webkitCreateShadowRoot