The result is a null-prototype map. state comes straight off the request
body on a dev server (POST /apps/:appName/users/:userId/sessions/:sessionId),
and JSON.parse makes __proto__ an own key, so copying it into a plain
object literal would invoke the inherited __proto__ setter: the entry is
dropped and the new state object is re-parented onto the attacker's object.
Removes temporary state keys from the state.
The result is a null-prototype map.
statecomes straight off the request body on a dev server (POST /apps/:appName/users/:userId/sessions/:sessionId), andJSON.parsemakes__proto__an own key, so copying it into a plain object literal would invoke the inherited__proto__setter: the entry is dropped and the new state object is re-parented onto the attacker's object.