In-depth lesson · Unsafe deserialisation
Root causes
Every point the Unsafe deserialisation reports back under this heading, best-backed first, each with the reports it is seen in.
-
SnakeYAML was instantiated without a SafeConstructor, allowing arbitrary Java object construction from untrusted YAML.
Seen in 2 reports
-
The YAML parser passes tagged values to unserialize, so the documented safety of the yaml_parse family does not hold.
Seen in 1 report
-
The session secret was committed to a public repository and the app used CookieStore with unsafe deserialisation of cookie data.
Seen in 1 report
-
Checksum parsing used YAML.load instead of a safe loader, and the resulting objects allowed a chain to Marshal.load on attacker data.
Seen in 1 report
-
$1,500 Critical
-
-
MessageVerifier and MessageEncryptor default to the Marshal serializer, so signed values deserialise into live Ruby objects.
-
Default typing let a JSON property name any class, and the blacklist did not cover the logback and database driver classes used in the chain.
Seen in 1 report
-
The app used PyYAML's unsafe load instead of safe_load, letting YAML tags instantiate arbitrary Python objects.
Seen in 1 report
-
The Sawyer library turns JSON keys into methods on a Ruby object, letting an attacker override methods like to_s and bytesize used by the Redis client.
Seen in 1 report
-
$33,510 Critical
-
-
Connector configuration allowed a JAAS login module to perform a JNDI lookup to an attacker LDAP server, and the response was deserialised without validation.
Seen in 1 report
-
The YAML loader for .rdoc_options and the documentation cache permits arbitrary object deserialisation instead of plain data types.
Seen in 1 report
-
The template engine exposed JSON serializer objects directly to the JavaScript engine, letting attacker JSON influence overload resolution and create a serializer with unsafe type handling.
Seen in 1 report