Skip to content

In-depth lesson · Unsafe deserialisation

Reports behind this point

Search for the unsafe variant of a load function in code you can read, and check whether the input is user controlled. The reports name several: YAML load instead of a safe loader, PyYAML unsafe load instead of safe load, SnakeYAML without a safe constructor, and unserialise without an allowed-classes list.