Back to search

State University of New York at Buffalo

Web Library Detection and its Security Implications in the Wild

Abstract

dc:description.abstract

Identifying the front-end libraries used in modern web applications is a critical task for website profiling, sales intelligence, and web security analysis. However, existing detection tools face limitations: they often rely on manually curated features, struggle to detect libraries bundled by modern packers like Webpack, and lack support for version-level granularity. This thesis presents a comprehensive solution to these challenges through the development of two novel tools: PTdetector for automated library identification and PTV for precise version detection. We first introduce PTdetector, a browser-based tool that leverages a novel runtime data structure called the pTree, which captures the hierarchical relationships of JavaScript objects on a page. Unlike traditional approaches, pTree features can be generated automatically, enabling robust detection even when libraries are obfuscated or bundled. PTdetector demonstrates superior accuracy over existing tools and successfully identifies libraries on 200 high-traffic websites. To extend this capability to version-level detection, we propose the Unique Subtree Mining Algorithm, which extracts minimal yet sufficiently distinctive substructures from a forest of pTrees. This significantly reduces storage overhead — by up to 99% – while preserving discriminative power across 30,810 versions of 556 libraries. We integrate this algorithm into a system called PTV, which not only achieves state-of-the-art version detection accuracy but also uncovers 190 known vulnerabilities brought by libraries in the wild. Using the above two tools, we further conduct a large-scale empirical analysis of the web library ecosystem. Our dataset includes 3,335 web libraries and one million top-traffic websites. We find that while the total usage of libraries continues to increase over the years, the number of actively maintained libraries has dropped sharply since 2014, indicating a widespread reliance on outdated or abandoned libraries. This stagnation leads to significant security concerns: approximately one in ten library usages in the wild is linked to a known vulnerability. Our study offers in-depth insights into the structural weaknesses of the web library ecosystem and discusses practical strategies to mitigate their impact.

Degree

thesis:*
Grantor dc:publisher
State University of New York at Buffalo
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Liu, Xinyue; 0000-0001-6604-6229
Contributors dc:contributor
  • Ziarek, Lukasz
  • Computer Science and Engineering

Subjects

dc:subject × 1

Rights

dc:rights
Statement dc:rights
  • Copyright retained by author. Users of works found in University at Buffalo Institutional Repository (UBIR) are responsible for identifying and contacting the copyright owner for permission to reuse. University at Buffalo Libraries do not manage rights for copyright-protected works and cannot assist with permissions.
Language dc:language
eng

Identifiers

dc:identifier.*
Handle dc:identifier
http://hdl.handle.net/10477/90555

Chain of custody

source
Harvested from
Buffalo
Base URL
ubir.buffalo.edu/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
related terms
citation

Liu, Xinyue; 0000-0001-6604-6229. Web Library Detection and its Security Implications in the Wild. State University of New York at Buffalo, 2025. http://hdl.handle.net/10477/90555