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.
-
Untrusted network names were concatenated into command strings that were then run through a second shell parsing stage, defeating the original quoting.
Seen in 1 report
-
Untrusted POST input reached PHP unserialize, exposing use-after-free bugs in garbage collection.
Seen in 1 report
-
Untrusted session data was deserialised without validation and a local file inclusion flaw allowed reading configuration.
Seen in 1 report
-
Untrusted web content could create a new BrowserWindow with nodeIntegration enabled, giving it Node.js APIs.
Seen in 1 report
-
Untrusted YAML was deserialised into arbitrary Ruby objects and methods were then called on the result.
Seen in 1 report
-
Untrusted YAML was deserialised without restricting allowed types.
-
Unvalidated key and value strings from an uploaded file were concatenated into a shell command run with system().
Seen in 1 report
-
Unvalidated user strings were passed into a configuration file where newlines allowed hook injection.
Seen in 1 report
-
Update metadata and its hash were fetched over plain HTTP and the hash from the same response was trusted.
Seen in 1 report
-
The update process created a temporary shadow copy containing sensitive files that could be stalled and read.
Seen in 1 report
-
Upload and move features did not validate file contents or restrict where files could be moved.
Seen in 1 report
-
Upload path sanitisation only checked the exact lowercase git directory name and missed case variants.
Seen in 1 report
-
The upload.cgi handler passed a POST parameter directly into a system call without sanitising it.
Seen in 1 report
-
Uploaded ZIP files were extracted into a web-accessible directory and dangerous files were only removed later, creating a race condition.
Seen in 1 report
-
URI parameters were URL-decoded and passed to a new process command line without sanitisation, enabling argument injection.
Seen in 1 report
-
URL inputs were fetched without any restriction on the destination.
-
BinaryFormatter and SoapFormatter were used for deserialising untrusted remoting messages.
Seen in 1 report
-
Use of send with an attacker-influenced method name after only converting the path to absolute allowed private methods such as system to be invoked.
Seen in 1 report
-
User chat input was passed into a template engine without sanitisation, causing server-side template injection.
Seen in 1 report
-
User code executed directly on the host without sandboxing and the host user had passwordless sudo.
Seen in 1 report
-
User code ran without restricting OS command execution, and cloud credentials were readable from the process environment.
Seen in 1 report
-
User code was executed directly on the host without a sandbox and without restricting dangerous library functions.
-
User input chose the .NET type used for deserialisation, then that type's Deserialize method was invoked via reflection.
Seen in 1 report
-
User input was concatenated directly into shell commands passed to exec without escaping.
-
User input was concatenated into dynamically generated PHP code executed via the CLI.
Seen in 1 report
-
User input from a request parameter reached YAML.load without sanitisation.
Seen in 1 report
-
User input from password reset requests was passed to a system call without sanitisation.
-
User input from the QUERY_STRING environment variable was passed to a sed command without sanitisation.
-
User input was embedded directly into an expression template without sanitisation.
Seen in 1 report
-
User input was evaluated as a Java expression language expression without sanitisation.
Seen in 1 report
-
User input was passed into a template engine without sanitisation or sandboxing.
Seen in 1 report
-
User input passed to a system command without sanitisation allowed command injection.
Seen in 1 report
-
User input passed to the cloudAccess endpoint was incorporated into a system call without sanitisation.
-
User input reached a Ruby string interpolation context without sanitisation.
-
User input reached Perl's open() through the diamond operator, so a trailing pipe was treated as a command.
Seen in 1 report
-
User input reached a file include without restricting which files could be read, and logs stored unsanitised input.
Seen in 1 report
-
User input was concatenated directly into a shell command string without validation or sanitisation.
Seen in 1 report
-
User input was concatenated directly into a shell command without escaping.
Seen in 1 report
-
User input was concatenated into a command string executed through a shell with no escaping or validation.
Seen in 1 report
-
User input was concatenated into a git command line without a separator, so it was interpreted as git options.
Seen in 1 report
-
User input was concatenated into shell commands without sanitisation, and input was passed as arguments to a download tool without validation.
Seen in 1 report
-
User input was concatenated into SQL queries without parameterisation.
-
User input was embedded into a PHP code string that was evaluated.
Seen in 1 report
-
User input was interpolated into a shell command executed with shell enabled, without escaping.
-
User input was not sanitised before being passed to a shell command.
Seen in 1 report
-
User input was passed directly into an ERB template without sanitisation or sandboxing.
Seen in 1 report
-
User input was passed to a file inclusion function without validation, allowing traversal and log poisoning.
Seen in 1 report
-
User input was passed to a template engine without sanitisation.
Seen in 1 report
-
User input was passed to an expression language evaluator instead of being treated as a literal string.
-
User input was passed into Python's eval function.
Seen in 1 report