Skip to content

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.

Back to the lesson 1 to 50 of 52

2023

11 points

New this year3

  1. Black-box detection of server-side pollution without causing denial of service became a focus.

    Seen in 1 report
  2. They chained a server-side pollution into code execution without relying on the filesystem.

    Seen in 1 report
  3. They polluted a property that EJS reads during rendering and checked whether it reached code execution.

    Seen in 1 report

Kept working6

  1. Hunters found server-side prototype pollution in Node applications, including detection without denial of service.

    Seen in 3 reports
  2. They reviewed recursive merge and dynamic assignment code for missing checks on special key names.

    Seen in 2 reports
  3. They manually reviewed merge and assignment logic in server code.

    Seen in 2 reports
  4. 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
  5. They found client-side prototype pollution leading to DOM XSS in web front ends.

    Seen in 1 report
  6. They sent a protobuf message with field names aimed at the prototype and checked whether the decoded object was polluted.

    Seen in 1 report

Turned up less2

  1. XML parsing libraries, which were reported in 2022, were less prominent in the 2023 reports.

    Seen in 1 report
  2. Blitz.js request path pollution, which was reported in 2022, was not represented in the 2023 reports.

    Seen in 1 report

2022

8 points

New this year3

  1. 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
  2. Node's console.table property handling was reported as a pollution vector.

    Seen in 1 report
  3. Blitz.js applications, where prototype pollution led to remote code execution, were reported.

    Seen in 1 report

Kept working3

  1. Hunters sent XML with element or attribute names aimed at the prototype and checked the parsed object's prototype.

    Seen in 1 report
  2. They passed an object with prototype-named properties to console.table and checked whether the prototype was modified.

    Seen in 1 report
  3. They polluted a property in a Blitz.js request path and checked whether it reached code execution.

    Seen in 1 report

Turned up less2

  1. 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
  2. Client-side DOM XSS chains, which were prominent in 2021, were not represented in the 2022 reports.

    Seen in 1 report

2021

10 points

New this year3

  1. Client-side prototype pollution leading to DOM XSS in web front ends appeared as a distinct pattern.

    Seen in 1 report
  2. Kibana's SIEM signal feature, which merged machine-learning anomaly influencer field names into objects, was reported.

    Seen in 1 report
  3. Mermaid diagram directives in GitLab issues, where a directive JSON object is merged into config, were reported.

    Seen in 1 report

Kept working6

  1. 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
  2. They targeted deep clone and object utility packages such as klona, chart.js config handling, i18next, noble and firebase util.

    Seen in 2 reports
  3. 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
  4. 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.

    Seen in 1 report
  5. 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
  6. 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

  1. Path-setting helpers, which were prominent in 2018 and 2020, were not represented in the 2021 reports.

    Seen in 7 reports

2020

11 points

New this year4

  1. Deep clone and object utility packages appeared as a new class of vulnerable dependency.

    Seen in 3 reports
  2. Reports moved from library-level findings to server-side exploitation and code execution chains in products such as Kibana.

    Seen in 1 report
  3. HTML injection reached through prototype pollution on a public web property was reported.

    Seen in 1 report
  4. Hunters traced prototype pollution in a popular package down to applications that depend on it and checked whether user input reached the vulnerable merge.

    Seen in 1 report

Kept working6

  1. 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
  2. They continued to report prototype pollution in individual npm merge, extend and path-setting packages.

    Seen in 6 reports
  3. 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
  4. 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
  5. They targeted deep clone and object utility packages such as klona, chart.js config handling, i18next, noble and firebase util.

    Seen in 3 reports
  6. 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

Turned up less1

  1. jQuery's extend function, which was a focus in 2019, was not represented in the 2020 reports.

    Seen in 1 report

2019

7 points

New this year1

  1. jQuery's extend function appeared as a new sink for prototype pollution in the disclosed reports.

    Seen in 1 report

Kept working5

  1. Hunters continued to find prototype pollution in npm merge and extend helpers by feeding nested keys named for the prototype.

    Seen in 2 reports
  2. 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
  3. They targeted object merge and extend helper packages on npm where recursive merging of attacker-controlled keys reaches the prototype.

    Seen in 2 reports
  4. 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
  5. They focused on jQuery's extend function used to merge user-supplied objects.

    Seen in 1 report

Turned up less1

  1. Path-setting helpers, which were a focus in 2018, were not represented in the 2019 reports.

    Seen in 1 report

2018

3 points

Kept working3

  1. 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
  2. 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
  3. They targeted object merge and extend helper packages on npm where recursive merging of attacker-controlled keys reaches the prototype.

    Seen in 6 reports