3 ms·
Exactly. The people loading up a YAML library and using it that way may have no idea its a potential remote code execution vector into their application.
by simonh 8y ago
Exactly. The people loading up a YAML library and using it that way may have no idea its a potential remote code execution vector into their application.
- philipov 8y agoLuckily, for those that do know what they're doing, it's simple enough to use the yaml.safe_load function that disables support for arbitrary object instantiation.
- willvarfar 8y agoI believe that the safe_load function only got added because of the spate of exploits that the blog post was talking about. Its good that its been added, although it would have been better if it'd been there from the beginning and the safe version was default and you had to invoke 'unsafe_load' if you wanted complex object instantiation, to hopefully encourage even novices to think twice before doing it with tainted input.