Now the developer blocks __proto__ and constructor, but checks only the top-level keys. The merge is recursive, so if you nest __proto__ inside another object it passes the shallow check and pollutes as the merge descends.
The same settings page, with a security check on what you send, and a panel that reads the settings after you save.
You polluted the prototype via a nested path.
Why the solution worked
A shallow check does not see the dangerous key when nested, and the recursive merge reaches it on the way down. The fix is checking every key at every depth, not the top level alone.
The root cause
The check is shallow while the merge is recursive, so a nested key slips through. The root is not checking keys at every depth.
How the code is fixed
Check dangerous keys at every depth, not only the top level.
Vulnerable code
// Only the top-level keys are checked; nested __proto__ slips past.
for (const key of Object.keys(source)) if (depth === 0 && BAD.has(key)) continue;
Safe code
// Check dangerous keys at EVERY depth of the recursion.
for (const key of Object.keys(source)) if (BAD.has(key)) continue;
Impact in the real world
Bypassing a shallow check with a nested path has reintroduced prototype pollution in real merge libraries.
How defenders detect it
Defenders check dangerous keys at every depth, prefer null-prototype objects or Map, and test that properties do not change.
Your workspace now has a Server logs tab: your own attack, as the defender saw it, with the alerting lines marked.
Solved with the walkthrough. Put it aside and solve again to earn the feather.