Parsing Untrusted Data in PHP, Python and JavaScript: unserialize, pickle, YAML and Prototype Pollution, From the Defender's Side
Every language has one parser that runs code while it reads. I tested the defensive side of each in PHP 8.6, Python 3.15 and Node 26: an ordinary destructor running on sender-controlled data, an allow-list unpickler rejecting a harmless datetime, a one-key JSON body adding isAdmin to every...