The Key That Unlocks Everything: Prototype Pollution in JavaScript

작성자

카테고리:

← 피드로
DEV Community · Khue Pham · 2026-07-12 개발(SW)
Cover image for The Key That Unlocks Everything: Prototype Pollution in JavaScript

Khue Pham

Imagine a hotel where every room key is cut from a master template. When a guest checks in, the front desk hands them a key that opens only their room. Simple enough. Now imagine a guest who, during check-in, sneaks a tiny modification into the key-cutting machine itself — changing the template so that every new key cut from that moment on also opens the manager’s office, the safe, and the server room.

The guest didn’t break a lock. They didn’t clone anyone’s key. They changed the factory that makes all keys.

That factory is JavaScript’s Object.prototype. And the attack is called Prototype Pollution.

원문에서 계속 ↗

코멘트

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다