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 same session store is used for two purposes and the client chooses the session key.
-
The same URL parameter was sanitised on the server but inserted unsanitised into a client-side selector, a parser mismatch.
Seen in 1 report
-
The sandbox check on property enumerability could be bypassed by redefining the enumerability function.
Seen in 1 report
-
The sandbox creation logic resolved and executed a binary from a location an attacker could influence rather than a trusted fixed path.
-
The sandbox did not block access to the constructor property of functions, allowing escape to the global Function constructor.
Seen in 1 report
-
The sandbox did not fully isolate untrusted template input, allowing access to dangerous objects and methods.
-
The sandbox failed to isolate the error object and its stack preparation method, allowing access to call site objects from outside.
-
The sandbox library could be escaped by manipulating error stack traces, and the product used it to run user-controlled templates.
-
The sandbox only restricted the agent process itself and did not account for host components that later trust and execute files the agent is allowed to write.
Seen in 1 report
-
The sandbox whitelisted static methods that automatically invoke constructors during type coercion, enabling a gadget chain.
Seen in 1 report
-
The sandbox's argument check handled only simple identifiers, not destructured parameters.
Seen in 1 report
-
The sandbox's custom getattr and type functions could be bypassed with a str subclass that manipulated equality checks and by calling type on itself to reach the original builtin type.
Seen in 1 report
-
The sandbox's prefix-based allow-list for read-only methods could be bypassed, allowing calls to methods that were not actually read-only.
-
The sandbox's syntax tree transformation did not cover all node types, leaving some unchecked.
-
The sandboxed code service did not isolate submitted code from the web service account.
Seen in 1 report
-
The sandboxing package was insufficient and could be bypassed to run arbitrary JavaScript in the Node.js process.
-
The sanitiser assumed its input was a string and indexed it character by character, so an array input made each index return the whole element and bypassed every character check before the value was concatenated into a command.
Seen in 1 report
-
The sanitiser only escapes ASCII quotes while PowerShell treats Unicode quotes as delimiters.
-
The SaveData parameter was passed directly into a system call without sanitisation or validation.
-
The scanner disabled certificate verification and then executed the received data with an eval call.
Seen in 1 report
-
The scanner invoked git with default settings, so git read the repository's own config and ran the configured command.
Seen in 1 report
-
The schema designer allowed configurations that caused external jar files to be loaded without sufficient validation.
Seen in 1 report
-
The script built a shell command from unvalidated input, so special characters were interpreted.
Seen in 1 report
-
The script concatenated the user-supplied domain parameter directly into a shell command without validation or escaping.
Seen in 1 report
-
The script console endpoint was exposed without any authentication or access restriction.
Seen in 1 report
-
The script console was reachable without authentication or authorisation.
Seen in 1 report
-
The script evaluator set the host access policy to allow all host access, so scripts could use reflection to reach runtime classes and execute commands.
Seen in 1 report
-
The script failed to exit after sending a redirect and then unsafely evaluated user-supplied input.
Seen in 1 report
-
The script placed untrusted repository data such as branch names into PS1, which bash evaluates for command substitutions.
-
The script template API intentionally executed scripts without restricting the command, and the upload endpoint did not sanitise filenames.
Seen in 1 report
-
The script URI handler did not properly restrict the path (allowing directory traversal) and a bundled Python function passed user-supplied arguments to os.system without sanitisation.
Seen in 1 report
-
The script used a substring search to check whether the remote hostname contained an allowed domain, instead of matching the hostname exactly.
Seen in 1 report
-
The scripting environment exposed powerful Java classes and helper objects without sandboxing.
Seen in 1 report
-
The scripting policy exposed internal objects whose task-submission method accepted a runnable, allowing code outside the Java sandbox.
-
The search endpoint passed user-controlled search text into the wiki macro renderer without sanitising it, allowing macro injection.
Seen in 1 report
-
The search input was rendered through a server-side template engine without being treated as plain data, so template syntax in the query was evaluated.
Seen in 1 report
-
The security check looked up the service by path and version, but the later deserialisation step used only the path, so a mismatched version bypassed the check.
-
The select template called findString on user-controlled list value key and passed the result to getText, which performed a second OGNL evaluation without escaping.
Seen in 1 report
-
The serialiser wrote a length header for a typed array view but the buffer was detached by a previous write, so the parser trusted the header and consumed the wrong number of bytes.
-
The server accepted a user-controlled layout type and content and rendered it with Twig without sanitising template expressions.
Seen in 1 report
-
The server accepted PUT requests without authentication and served uploads from a directory where scripts execute.
-
The server built a shell command by concatenating untrusted input into a string instead of using safe process APIs.
Seen in 1 report
-
The server built a shell command string by concatenating the user-supplied host value without sanitisation or a safe argument-array API.
-
The server built executable code paths or logic directly from externally supplied handshake parameters without neutralising dangerous input.
Seen in 1 report
-
The server concatenated raw HTTP parameter values into operating system commands and ran them through a shell without validation or escaping.
Seen in 1 report
-
The server deserialised attacker-controlled data from a login request without validating or restricting it.
-
The server deserialised untrusted input with a Python deserialiser before performing any authorisation check.
Seen in 1 report
-
The server deserialised untrusted network data with Hessian without validation or class filtering.
Seen in 1 report
-
The server deserialised untrusted serialised Java objects without validating their classes.
Seen in 1 report
-
The server deserialises parameters from an uploaded file without validating or restricting the types it will instantiate.
Seen in 1 report