Skip to content
Prototype pollution Write-up Intermediate

Menemukan Kerentanan Prototype Pollution di Absensi Pemerintahan:

The author found an outdated jQuery 1.10.2 on a government attendance system and confirmed in the browser console that the known prototype pollution flaw in $.extend() could pollute Object.prototype. However, attempts to send injected properties to the server through login and query parameters had no effect, so no real server-side impact was demonstrated.

Ahmadfaizabdillah Follow

Published on medium.com

Selama penetration testing terhadap sistem absensi pemerintah daerah, saya menemukan kerentanan kritis CVE-2019–11358 (Prototype Pollution) pada jQuery versi 1.10.2 yang berusia 11 tahun. Artikel ini membahas journey saya dalam mengidentifikasi, memvalidasi, dan membuktikan dampak nyata dari vulnerability ini termasuk…

Ahmadfaizabdillah, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the site shipped an old jQuery version whose deep extend function copies a __proto__ key into Object.prototype, but the server-side code did not process attacker-controlled input through that path.

Impact

The pollution was only demonstrated in the tester's own browser; server-side injection attempts were ignored or rejected, so no privilege escalation or effect on other users was shown.

What the attacker needed

A normal user account; access to the login page

The fix

The outdated jQuery library should be upgraded to a version that is not affected by this flaw.

How it was found

  1. Check the jQuery version in the browser console and find 1.10.2.
  2. Confirm prototype pollution locally by calling the deep extend function with a __proto__ key.
  3. Log in with a normal user account to record a baseline of limited access.
  4. Send extra admin-related form fields in the login request and observe they are ignored.
  5. Send a JSON body containing a __proto__ object and receive a 400 error.
  6. Send a query string with a __proto__ parameter and observe no change.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Prototype pollution is a JavaScript flaw where an attacker changes a shared template that all objects inherit from, so every object suddenly gains extra properties. The author could do this inside their own browser, but the server never accepted the injected data, so other users were not affected.

What is Prototype pollution?

Input changes JavaScript's shared object prototype, altering behaviour across the application, sometimes to XSS or code execution.

Similar reports

View all

Same bug class and techniques, clearest first.

Prototype pollution

The lesson behind this report.

Input changes JavaScript's shared object prototype, altering behaviour across the application, sometimes to XSS or code execution.