Skip to content

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.

Back to the lesson 1 to 11 of 11
  1. SnakeYAML was instantiated without a SafeConstructor, allowing arbitrary Java object construction from untrusted YAML.

    Seen in 2 reports
  2. The YAML parser passes tagged values to unserialize, so the documented safety of the yaml_parse family does not hold.

    Seen in 1 report
  3. The session secret was committed to a public repository and the app used CookieStore with unsafe deserialisation of cookie data.

    Seen in 1 report
  4. 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
  5. MessageVerifier and MessageEncryptor default to the Marshal serializer, so signed values deserialise into live Ruby objects.

    Seen in 1 report
  6. 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
  7. The app used PyYAML's unsafe load instead of safe_load, letting YAML tags instantiate arbitrary Python objects.

    Seen in 1 report
  8. 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
  9. 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
  10. The YAML loader for .rdoc_options and the documentation cache permits arbitrary object deserialisation instead of plain data types.

    Seen in 1 report
  11. 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