In-depth lesson · RCE
Root causes
Every point the RCE reports back under this heading, best-backed first, each with the reports it is seen in.
-
The server deserialised data from low-privileged authenticated users without validating or restricting the types it would reconstruct.
Seen in 3 reports
-
The server deserialises attacker-supplied data without restricting which types can be instantiated.
Seen in 3 reports
-
The service deserialised request data without validating its origin or type.
Seen in 3 reports
-
The service passed unvalidated user-supplied strings into system calls, enabling command injection.
Seen in 3 reports
-
The session write and read paths used different serialisation handlers, so attacker-controlled data was decoded as a serialised object.
Seen in 3 reports
-
The Windows best-fit encoding conversion maps certain Unicode characters to ASCII characters like double quotes, breaking argument boundaries.
Seen in 3 reports
-
Tunnel management methods deserialised user-controlled data without restricting instantiable classes.
Seen in 3 reports
-
User string was used directly as a format specifier.
Seen in 3 reports
-
User-controlled input was passed directly into a template engine without sanitising.
Seen in 3 reports
-
User-controlled push option values were embedded into a semicolon-delimited internal header without sanitising the delimiter, and downstream services trusted every field.
Seen in 3 reports
-
User-influenced input was passed into a command without neutralising special characters.
Seen in 3 reports
-
User-supplied values were concatenated into a git command string or argument list without validation or an argument terminator.
Seen in 3 reports
-
Values were interpolated into a string passed to a shell-running child process function instead of being passed as separate arguments.
Seen in 3 reports
-
The .NET Framework does not properly validate the source markup of a file before processing it.
Seen in 2 reports
-
A backup directory parameter was concatenated into a file path used with a stream wrapper without validation, so a phar path caused deserialisation.
-
A caller-supplied continuation token was passed straight to a deserialiser after decoding, so untrusted data became live objects.
-
A coding mistake in a conditional check combined with an uninitialised authentication structure made requests without an Authorization header be treated as root.
-
A command handler does not validate the type of user-supplied data before using it, causing type confusion.
-
A connection was marked reusable while a request was active, and an unchecked flow-control refund underflowed an unsigned counter.
-
A constraint violation message is built from user input and then evaluated as a template.
-
A failure to keep the batch request list and handler list aligned after a malformed sub-request, combined with missing sanitisation of a string value in the query class.
-
A file descriptor leak in runC and race conditions or privilege-check gaps in BuildKit.
-
A file parameter allowed path traversal and included files without restricting to a safe directory.
-
A logical error in the URI safety check allowed unsafe URIs to be treated as safe.
-
A metadata string is passed to an eval after an incomplete filter.
-
A method deserialised attacker-controlled input without restricting which classes could be instantiated.
-
A missing range check on a signed 16-bit repeat identifier in Onigmo, combined with org-ruby failing to escape regex metacharacters in custom TODO keywords.
-
A signed Windows utility loads executables from its current working directory, which a shortcut file can redirect to an attacker-controlled remote share.
-
A static, publicly known secret_key_base combined with hybrid cookie serialization permits deserialization of Marshal-serialized objects.
Seen in 2 reports
-
A time-of-check-to-time-of-use race exists between signature verification and loading.
Seen in 2 reports
-
A user preference value was stored without validation and later passed directly to unserialize, so attacker-supplied serialised data was trusted.
-
A vulnerable Log4j version processed JNDI lookups in logged strings without restriction.
-
A workflow action evaluated user-supplied inputs as a template, so text between double braces ran as code.
-
The allowed-commands check was applied to the wrong part of the input, so the string still reached a system call.
-
An authentication bypass from a spoofable referer header combined with unsafe ViewState deserialisation.
-
An out-of-memory error during multipart parsing left a dangling pointer in the session global that could be reclaimed with attacker data.
-
An unauthenticated message string reached a configuration command parser that invoked a native command via reflection without validation.
-
APIs were not protected from unsafe data input and deserialised untrusted data incorrectly.
Seen in 2 reports
-
Applications loaded files from locations an attacker could influence instead of trusted ones.
-
Applications use the default DLL search order and load DLLs from their own directory without validation.
-
The beanName parameter was passed into an expression language evaluation without validation or escaping.
Seen in 2 reports
-
Build settings were interpolated into pipeline variables without sanitisation, and build helpers had permissive permissions and unsafe paths.
Seen in 2 reports
-
Chat message rendering treated user-supplied strings as template or code input rather than inert text.
-
Checkpoint loading functions deserialised untrusted data without validation.
-
Clojure read-string, which evaluates reader macros, was used on untrusted input instead of the safe EDN reader.
-
Code calls an external binary without an absolute path, so the current directory is searched first on Windows.
-
Code execution environments run untrusted code with excessive privileges or without network and file system restrictions.
-
Code generated by a large language model was executed without sandboxing or validation.
-
Configuration and parameter file readers deserialise untrusted input without restricting instantiable classes.
-
Configuration attributes were deserialised without filtering and downloaded kernels were executed unsandboxed, bypassing the remote code safeguard.