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 code used a user-supplied offset field as the length for a memory copy without checking it against the fixed buffer size.
Seen in 1 report
-
The code used Ruby string interpolation to build command lines passed to Cocaine::CommandLine.new, which does not escape arguments, instead of using Cocaine's safe placeholder and run mechanism.
-
The code used strncpy with the length of the attacker-supplied source string instead of the destination buffer size.
-
The code used the untrusted COMSPEC variable as the executable path for execFile instead of a fixed path to the command interpreter.
Seen in 1 report
-
The code used yaml.load with Loader=yaml.Loader, which can construct arbitrary Python objects instead of only safe data types.
Seen in 1 report
-
The code validated attribute names but not their values, then used those values directly in require statements.
Seen in 1 report
-
The command generator for the Windows shell did not escape newline characters in request bodies.
Seen in 1 report
-
The command palette allowed running tasks that spawn a terminal, bypassing the UI restriction that hid it.
Seen in 1 report
-
The command-line parser searched the raw command line for a switch token instead of parsing tokens properly, so a quoted program path derived from the manifest name could inject switches.
Seen in 1 report
-
The commit parameter was not validated before use in a shell command, allowing option injection.
Seen in 1 report
-
The company had not reserved its internal npm scope on the public registry, leaving the namespace open to hijacking.
-
The compiler processes unicode escapes before parsing, so an escaped quote terminates a string literal.
Seen in 1 report
-
The ConditionsController's beforeAction passed user-supplied body parameters into Craft::configure and createObject, letting an unauthenticated user instantiate arbitrary classes.
Seen in 1 report
-
The config file parameter allowed arbitrary file writes with no whitelist and weak permissions.
Seen in 1 report
-
The configuration endpoint accepted user-supplied runtime flags and appended them unvalidated to a host process command line.
-
The configuration endpoint allowed setting executable paths without restriction, so a remote user could make the server launch arbitrary programs.
Seen in 1 report
-
The configuration generator did not properly parse GRUB commands and copied entire lines starting with certain commands, allowing injection via a semicolon.
Seen in 1 report
-
The configuration parser used unsafe YAML deserialization, and the API lacked authentication and CSRF protection.
Seen in 1 report
-
The configuration writer does not quote values containing carriage returns.
Seen in 1 report
-
The consent prompt is rendered with prompt_toolkit's HTML() on a string containing an untrusted tool argument, so markup is parsed instead of shown.
-
The console execute-script endpoint trusted a client-supplied sandboxed flag instead of enforcing the sandbox server-side.
Seen in 1 report
-
The console exposed a full R interpreter with the system function available and no sandboxing or authorisation check.
Seen in 1 report
-
The console was exposed without authentication and included command-execution features enabled by default.
Seen in 1 report
-
The constant pool count was truncated to 16 bits when the class file was serialised while the full pool was still written, so entries were reinterpreted as fields.
Seen in 1 report
-
The Consul servers were publicly accessible and their ACL rules were misconfigured, allowing unauthenticated or weakly authenticated command execution.
Seen in 1 report
-
The content script did not validate message origin and the background script forwarded messages to a native app that used input to load a library.
Seen in 1 report
-
The control plane trusted kubeconfig files from multicluster secrets and executed credential plugins without restricting authentication methods.
Seen in 1 report
-
The controller and view map parts of the URL were parsed differently, so their state could be desynchronised.
-
The controller did not sanitise the path field before inserting it into the generated configuration, allowing directive injection.
Seen in 1 report
-
The controller failed to validate or sanitise ingress annotations and path fields, allowing configuration injection or path traversal.
-
The controller inserted the ingress path value into the generated proxy configuration without escaping or validating it.
Seen in 1 report
-
The conversion process allowed arbitrary commands, including file reads and shell execution, without sandboxing.
Seen in 1 report
-
The converter reflectively instantiated any class named in attacker-controlled schema metadata without restricting it to safe types.
Seen in 1 report
-
The converter script wrote POST values into a PHP source file without escaping them.
-
The Copilot component processed prompts from web content without confirming with the user or checking where the request came from.
Seen in 1 report
-
The COPY FROM PROGRAM feature did not separate database privileges from operating system privileges.
Seen in 1 report
-
The copy operation validated only the folder name, not the individual files inside it, so blacklisted files slipped through.
Seen in 1 report
-
The COPY TO/FROM PROGRAM feature was enabled and usable by superusers or members of the program execution role.
Seen in 1 report
-
The copy trusted the source tensor's computed byte size without checking the destination buffer was large enough.
Seen in 1 report
-
The copy-as-cURL feature did not escape the HTTP method when generating the command, so shell metacharacters survived into the terminal.
-
The copyContent command passes a user-supplied path to file operations without validating or restricting it, allowing path manipulation that leads to code execution.
Seen in 1 report
-
The core package pinned an outdated, vulnerable version of the vm2 sandbox library.
Seen in 1 report
-
The country code value from the JSON body was formatted into a shell command without sanitisation.
Seen in 1 report
-
The course upload page lacked proper access control, and the package was extracted onto the server with the script file reachable.
Seen in 1 report
-
The crash handler parsed process status files without handling newline characters in the process name and did not correctly verify the target directory.
Seen in 1 report
-
The crash handler wrote a permissive DACL to a predictable file in a user-writable directory and later deleted files as SYSTEM without proper access checks.
Seen in 1 report
-
The CreateObjectHandler COM object deserialised untrusted data without validation.
-
The cronjob command value was passed straight to a command execution function with no sanitisation.
Seen in 1 report
-
The crop feature passed user-controlled input directly into server-side image processing and shell commands without validation.
Seen in 1 report
-
The Crowd application was not updated to a patched version and stayed vulnerable to a known unauthenticated flaw.