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.
-
User input was passed into the fifth argument of the mail function, which is appended to the sendmail command line.
Seen in 1 report
-
User input was passed into the template engine without sanitisation, allowing arbitrary method calls.
Seen in 1 report
-
User input was passed straight to a Python interpreter with no sandboxing.
Seen in 1 report
-
User input was passed to a shell command without adequate sanitisation, and added filters for single quotes could be evaded.
Seen in 1 report
-
User input was used directly in a require call without validation, and URL inclusion was enabled on the server.
Seen in 1 report
-
User input was written to a file without sanitisation and later embedded into crontab lines by a shell script.
Seen in 1 report
-
User inputs were concatenated into a Jinja2 template without sandboxing or escaping, and the filter was a narrow blacklist.
Seen in 1 report
-
User string was passed into Python code execution without validation.
-
User values were inserted into a system() call without validation or escaping.
Seen in 1 report
-
User-controlled array keys and values were concatenated into a PHP code string without escaping, so special characters could break out of the intended string context.
Seen in 1 report
-
User-controlled binary and script values were passed straight to the process execution call without validation or an allowlist.
Seen in 1 report
-
User-controlled build settings such as root directory and output directory were passed unsafely into shell commands, and overly permissive file permissions and PATH entries allowed privilege escalation.
Seen in 1 report
-
User-controlled certificate fields were copied into a fixed-size stack buffer with strcat and no length validation.
Seen in 1 report
-
User-controlled chat input was passed into a server-side template renderer without isolation, with weak sandboxing and excessive privileges.
-
User-controlled comment text was interpolated directly into a PowerShell script without sanitisation.
-
User-controlled configuration values were concatenated into a shell command without sanitisation.
Seen in 1 report
-
User-controlled configuration values were evaluated as Spring expressions.
-
User-controlled configuration values were stored in NVRAM and later retrieved and inserted directly into shell commands via sprintf/snprintf and system() without sanitisation.
Seen in 1 report
-
User-controlled cookie data was passed straight to PHP's unserialise() without validation, allowing object injection.
Seen in 1 report
-
User-controlled data inserted into the wp_termmeta table is unserialized without sufficient validation, allowing PHP object injection.
Seen in 1 report
-
User-controlled directory names were passed unsanitised to a shell command.
Seen in 1 report
-
User-controlled domain, account name and password values were concatenated into a string passed to cmd /c, so shell metacharacters broke out of the intended command.
Seen in 1 report
-
User-controlled fields, including cookies from remote servers, were rendered as templates without sandboxing.
Seen in 1 report
-
User-controlled file and directory names were concatenated into a shell command without escaping.
Seen in 1 report
-
User-controlled health check settings were interpolated directly into a shell command string without escaping or validation.
Seen in 1 report
-
User-controlled inline Kramdown options were used to instantiate arbitrary Ruby classes and load files via a driver path.
Seen in 1 report
-
User-controlled input from the basic authentication header was passed unsanitised to a system call.
-
User-controlled input reached a serialise/unserialise round-trip in caching logic.
Seen in 1 report
-
User-controlled input was compiled as a Handlebars template without sanitisation.
Seen in 1 report
-
User-controlled input was evaluated as code or passed to dangerous Java features (scripting, JMX deserialisation, JNDI) without restrictions.
Seen in 1 report
-
User-controlled input was passed directly into an eval call without sanitisation or validation.
-
User-controlled input was passed directly into the Django template engine without sanitisation.
-
User-controlled input was passed directly to a shell command without sanitisation or validation.
-
User-controlled input was passed into Log4j without disabling JNDI lookups.
Seen in 1 report
-
$1,000 Critical
-
-
User-controlled input was passed straight to a file-include function without restricting which files could be opened.
Seen in 1 report
-
User-controlled input was passed to a template rendering function that evaluated expressions without sanitisation.
Seen in 1 report
-
User-controlled input was passed to Perl's two-argument open() without validation, allowing pipe characters to trigger command execution.
Seen in 1 report
-
User-controlled input was placed into PHP eval statements or files without proper sanitisation.
Seen in 1 report
-
User-controlled input was rendered directly as template code instead of being passed as a data variable.
Seen in 1 report
-
User-controlled JSON fields were concatenated into a shell call, and the token check accepted a hardcoded encrypted value.
Seen in 1 report
-
User-controlled JSON keys were passed into a Perl eval call without sanitisation.
-
User-controlled parameter data was passed into an unsafe deserialisation function.
Seen in 1 report
-
User-controlled parameters were concatenated into shell commands or copied into fixed-size buffers without proper sanitisation, and some authorisation checks were missing or bypassable.
Seen in 1 report
-
User-controlled POST parameters were passed straight into unserialize() without validation.
-
User-controlled push option values were concatenated into a metadata format whose delimiter could appear in user input, and parsing was last-write-wins.
Seen in 1 report
-
User-controlled query string input was passed unsanitised into an eval call in a CGI shell script, and the script was also exposed in an unauthenticated public directory.
-
User-controlled remote and destination values were passed to git clone without sanitisation.
Seen in 1 report
-
Critical
-
-
User-controlled revision data was appended to a command line without a -- separator, so Mercurial interpreted a dash-leading value as an option.
-
User-controlled templates were rendered server-side without sandboxing, so expressions could reach the JavaScript Function constructor.
-
User-controlled text was passed to eval instead of being parsed as data.