In-depth lesson · Prototype pollution
Year by year
What the disclosed Prototype pollution reports of each year show, newest first: what first appeared, what kept working and what turned up less.
2023
11 pointsNew this year3
Black-box detection of server-side pollution without causing denial of service became a focus.
Seen in 1 report
They chained a server-side pollution into code execution without relying on the filesystem.
Seen in 1 report
They polluted a property that EJS reads during rendering and checked whether it reached code execution.
Seen in 1 report
Kept working6
Hunters found server-side prototype pollution in Node applications, including detection without denial of service.
Seen in 3 reports
They reviewed recursive merge and dynamic assignment code for missing checks on special key names.
They manually reviewed merge and assignment logic in server code.
They detected server-side pollution through observable side effects rather than crashing the process, for example changed responses or behaviour after a crafted request.
Seen in 1 report
They found client-side prototype pollution leading to DOM XSS in web front ends.
Seen in 1 report
They sent a protobuf message with field names aimed at the prototype and checked whether the decoded object was polluted.
Turned up less2
XML parsing libraries, which were reported in 2022, were less prominent in the 2023 reports.
Seen in 1 report
Blitz.js request path pollution, which was reported in 2022, was not represented in the 2023 reports.
Seen in 1 report
2022
8 pointsNew this year3
XML parsing libraries such as fast-xml-parser and xml2js that build objects from parsed input appeared as a new sink.
Seen in 1 report
Node's console.table property handling was reported as a pollution vector.
Seen in 1 report
Blitz.js applications, where prototype pollution led to remote code execution, were reported.
Seen in 1 report
Kept working3
Hunters sent XML with element or attribute names aimed at the prototype and checked the parsed object's prototype.
Seen in 1 report
They passed an object with prototype-named properties to console.table and checked whether the prototype was modified.
Seen in 1 report
They polluted a property in a Blitz.js request path and checked whether it reached code execution.
Seen in 1 report
Turned up less2
Deep clone and object utility packages, which were a focus in 2020 and 2021, were not represented in the 2022 reports.
Seen in 5 reports
Client-side DOM XSS chains, which were prominent in 2021, were not represented in the 2022 reports.
2021
10 pointsNew this year3
Client-side prototype pollution leading to DOM XSS in web front ends appeared as a distinct pattern.
Kibana's SIEM signal feature, which merged machine-learning anomaly influencer field names into objects, was reported.
Seen in 1 report
-
$5,000 Critical
-
Mermaid diagram directives in GitLab issues, where a directive JSON object is merged into config, were reported.
Seen in 1 report
Kept working6
Hunters ran a clone or config-merge call over an object containing a prototype-named key and checked whether the clone's prototype was altered.
Seen in 2 reports
They targeted deep clone and object utility packages such as klona, chart.js config handling, i18next, noble and firebase util.
Seen in 2 reports
They fed a nested key named for the prototype into a merge or extend helper and checked whether a property appeared on all plain objects afterwards.
Seen in 1 report
They looked for a client-side sink that reads a property from the prototype and turns it into markup or script, then polluted that property through a query or fragment parameter.
They wrote a crafted influencer field name into an anomaly index, imported a detection rule that uses it, enabled the rule and waited for evaluation.
Seen in 1 report
-
$5,000 Critical
-
They added a Mermaid diagram with a directive that sets a prototype-named key in an issue, saved it and opened the issue to see whether the page broke.
Seen in 1 report
Turned up less1
Path-setting helpers, which were prominent in 2018 and 2020, were not represented in the 2021 reports.
Seen in 7 reports
2020
11 pointsNew this year4
Deep clone and object utility packages appeared as a new class of vulnerable dependency.
Seen in 3 reports
Reports moved from library-level findings to server-side exploitation and code execution chains in products such as Kibana.
Seen in 1 report
-
$10,000 Critical
-
HTML injection reached through prototype pollution on a public web property was reported.
Seen in 1 report
Hunters traced prototype pollution in a popular package down to applications that depend on it and checked whether user input reached the vulnerable merge.
Kept working6
Hunters found prototype pollution in libraries that set a value at a dotted or array property path, such as dot-prop and object-path-set.
Seen in 6 reports
They continued to report prototype pollution in individual npm merge, extend and path-setting packages.
Seen in 6 reports
They passed a path whose first segment names the prototype into a path-setting helper and saw whether the assignment landed on the shared prototype.
Seen in 6 reports
They ran a clone or config-merge call over an object containing a prototype-named key and checked whether the clone's prototype was altered.
Seen in 3 reports
They targeted deep clone and object utility packages such as klona, chart.js config handling, i18next, noble and firebase util.
Seen in 3 reports
They indexed a document whose field names target the prototype in a telemetry collector, then waited for collection or restart to trigger it.
Seen in 1 report
-
$10,000 Critical
-
Turned up less1
jQuery's extend function, which was a focus in 2019, was not represented in the 2020 reports.
Seen in 1 report
2019
7 pointsNew this year1
jQuery's extend function appeared as a new sink for prototype pollution in the disclosed reports.
Seen in 1 report
Kept working5
Hunters continued to find prototype pollution in npm merge and extend helpers by feeding nested keys named for the prototype.
Seen in 2 reports
They checked whether a property appeared on all plain objects after passing a nested key into a merge or extend helper.
Seen in 2 reports
They targeted object merge and extend helper packages on npm where recursive merging of attacker-controlled keys reaches the prototype.
Seen in 2 reports
They sent a nested object with a prototype-named key into a jQuery extend call and checked whether the resulting object had a polluted property.
Seen in 1 report
They focused on jQuery's extend function used to merge user-supplied objects.
Seen in 1 report
Turned up less1
Path-setting helpers, which were a focus in 2018, were not represented in the 2019 reports.
Seen in 1 report
2018
3 pointsKept working3
Hunters found prototype pollution in individual npm merge, extend and path-setting packages by feeding nested keys named for the prototype.
Seen in 6 reports
They checked whether a property appeared on all plain objects after passing a nested key into a merge or extend helper.
Seen in 6 reports
They targeted object merge and extend helper packages on npm where recursive merging of attacker-controlled keys reaches the prototype.
Seen in 6 reports