Back to results

Johns Hopkins University

When Prototypes Betray You: Systematically Detecting Prototype Pollution Vulnerabilities and Their Gadgets from One Million Real-World Websites

Abstract

dc:description.abstract

Prototype pollution is a relatively new yet critical JavaScript vulnerability that allows attackers to inject properties into prototypical objects, such as Object.prototype. This manipulation can lead to severe consequences, including Cross-site Scripting (XSS) and cookie manipulation. These consequences are often facilitated through code snippets known as gadgets, which alter the control or data flow of the victim program. Therefore, a systematic methodology for studying prototype pollution involves both prototype pollution vulnerabilities themselves and their related gadgets. Prior works in server-side applications face challenges in scalability and accuracy when applied to client-side JavaScript. Moreover, existing methods often struggle to identify complex gadgets that require the injection of intricate property values. In this dissertation, we propose a systematic methodology for thoroughly studying the scale, impacts and severity of client-side prototype pollution. The first component of this methodology, named ProbeTheProto, is the first large-scale measurement framework for detecting client-side prototype pollution among one million real-world websites. ProbeTheProto utilizes dynamic taint analysis to track so-called joint taint flows that connect property lookups and value assignments, together with an input/exploit generation to guide these flows into sensitive locations related to further consequences. This study reveals 2,917 zero-day, exploitable prototype pollution vulnerabilities across 2,738 real-world websites, including ten among the top 1,000. We further verify that 48 vulnerabilities lead to XSS, 736 to cookie manipulations, and 830 to URL manipulations. The second component of the proposed methodology, called GALA, is a dynamic analysis framework designed to systematically detect client-side prototype pollution gadgets across one million real-world websites. GALA operates by leveraging existing defined values from non-vulnerable websites and applying them to vulnerable ones where such values are undefined, thus guiding the injected properties to flow into sensitive locations within gadgets. Our implementation of GALA has led to the discovery of 133 zero-day gadgets not identified by prior works. Among them, one vulnerability was from Meta’s software and another from the Vue framework, both of which have acknowledged and addressed these issues. We have responsibly disclosed all identified vulnerabilities to the respective developers, contributing to enhanced security across numerous platforms.

Degree

thesis:*
Name thesis:degree_name
Ph.D.
Level thesis:degree_level
Doctoral
Discipline thesis:degree_discipline
Computer Science
Department thesis:degree_department
Computer Science
Grantor dc:publisher
Johns Hopkins University
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Kang, Zifeng
Advisor dc:contributor.advisor
  • Cao, Yinzhi
Committee members dc:contributor.committeemember
  • Jain, Abhishek
  • Marder, Alex
ORCID person:identifier.orcid

Subjects

dc:subject × 6

Rights

Language dc:language.iso
en_US

Identifiers

dc:identifier.*
Repository record dc:identifier.uri
https://jscholarship.library.jhu.edu/handle/1774.2/70694

Chain of custody

source
Harvested from
Johns Hopkins University
Base URL
jscholarship.library.jhu.edu/server/oai/request
Last updated
2026-11-20
Source record
OAI-PMH GetRecord
citation

Kang, Zifeng. When Prototypes Betray You: Systematically Detecting Prototype Pollution Vulnerabilities and Their Gadgets from One Million Real-World Websites. Doctoral thesis, Johns Hopkins University, 2025. https://jscholarship.library.jhu.edu/handle/1774.2/70694