Back to search

University of British Columbia

XSnare : application-specific, cross-site scripting protection

Abstract

dc:description

We present XSnare, a fully client-side Cross-site Scripting (xss) solution, implemented as a Firefox extension. Our approach takes advantage of available previous knowledge of a web application’s Hypertext Markup Language (html) template content, as well as the rich context available in the Document Object Model (dom) to block xss attacks. XSnare prevents xss exploits by using a database of exploit descriptions, which are written with the help of previously recorded Common Vulnerabilities and Exposuress (cves). cves for xss are widely available and are one of the main ways to tackle zero-day exploits. XSnare effectively singles out potential injection points for exploits in the html and sanitizes content to prevent malicious payloads from appearing in the dom. XSnare can protect application users before application developers release patches and before server operators apply them. We evaluate our approach by studying 105 recent cves related to xss attacks, and find that our tool defends against 94.2% of these exploits. To the best of our knowledge, XSnare is the first protection mechanism for xss that is application-specific, and based on publicly available cve information. We show that XSnare’s specificity protects users against exploits which evade other, more generic, anti-xss approaches. Our performance evaluation shows that our extension’s overhead on web page loading time is less than 10% for 72.6% of the sites in the Moz Top 500 list.

Degree

thesis:*
Name thesis:degree_name
Master of Science - MSc
Level thesis:degree_level
master's
Discipline thesis:degree_discipline
Computer Science
Grantor dc:publisher
University of British Columbia
Year dc:date
2019

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Pazos, Jose Carlos

Rights

dc:rights
Statement dc:rights
  • Attribution-NonCommercial-NoDerivatives 4.0 International
Language dc:language
eng

Identifiers

dc:identifier.*
Handle dc:identifier
http://hdl.handle.net/2429/72015

Chain of custody

source
Harvested from
University of British Columbia
Base URL
circle.library.ubc.ca/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
related terms
citation

Pazos, Jose Carlos. XSnare : application-specific, cross-site scripting protection. master's thesis, University of British Columbia, 2019. http://hdl.handle.net/2429/72015