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 pool ID value was not sanitised or escaped before being embedded in a shell script.
-
The port parameter was used in a command without proper sanitisation.
Seen in 1 report
-
The POSIX escaping wrapped arguments in single quotes but escaped embedded quotes with a backslash, which does not work inside single quotes.
Seen in 1 report
-
The post edit function allowed arbitrary meta entries to be updated without validation, and the image crop used the attacker-controlled attached-file value without sanitising it.
Seen in 1 report
-
The POST parameters powerd_normal_mode, powerd_ac_mode and powerd_battery_mode were stored in the config and then concatenated into a shell command passed to mwexec() without escaping or validation.
-
The PowerShell curl alias mapped to Invoke-WebRequest, whose HTML parsing used a legacy engine that executed script and allowed ActiveX objects to launch programs.
Seen in 1 report
-
The preg_replace e modifier evaluated the replacement string as PHP, combined with unsanitised user input from an imported XML file.
-
The preview copy reused a predictable directory and followed symbolic links without validation.
Seen in 1 report
-
The preview endpoint passed the message parameter straight to the scripting engine without restricting callable functions.
Seen in 1 report
-
The preview generator passed attacker-controlled files to ImageMagick without restricting its MSL delegate, allowing file read and write outside the preview area.
Seen in 1 report
-
The preview method passed arbitrary content into a theme process function that eventually called eval.
-
The preview pipeline decoded and evaluated code hidden in a link's URL slug because filtering did not strip it before the eval sink.
Seen in 1 report
-
The Print Spooler service failed to properly validate or restrict who could load printer drivers.
Seen in 1 report
-
The Print Spooler service followed symbolic links without validation, allowing a redirect to an arbitrary DLL.
-
The printing system did not sanitise the FoomaticRIPCommandLine setting, so injected commands were executed.
Seen in 1 report
-
The private package name was not registered on the public registry, and the package manager preferred the highest version across all sources.
Seen in 1 report
-
The private package name was not reserved on the public repository and installs fell back to it.
Seen in 1 report
-
The private registry proxied to the public registry by default and chose the highest version, and the package manager had no namespacing.
Seen in 1 report
-
The privileged binary executed a helper via a name lookup that honoured the caller's PATH and environment instead of using an absolute path or a clean environment.
-
The privileged service followed a user-controlled reparse point when moving files without checking the destination.
-
The process creation call implicitly invokes the shell for batch files, and runtimes escaped arguments using rules for normal executables.
Seen in 1 report
-
The process did not restrict DLL search to trusted paths.
Seen in 1 report
-
The process library converted command arguments into a null-separated array without rejecting embedded null bytes, so user input could create new arguments.
Seen in 1 report
-
The program allowed writes to the Global Offset Table without protection.
Seen in 1 report
-
The program trusted a remote source for updates and its protections could be bypassed.
Seen in 1 report
-
The project declared a local dependency by name and version range instead of a file path, so the package manager resolved it from the public registry.
-
The project documentation pointed to a GitHub account that had become unclaimed, allowing anyone to register it and control the code that users were instructed to download and run.
Seen in 1 report
-
The project name from the URL was concatenated into a bash command in client-side JavaScript without sanitisation, so shell metacharacters were interpreted.
Seen in 1 report
-
The project name was not escaped when generating helper scripts.
-
The project referenced an npm scope and package name it had not registered, leaving the name free to claim.
Seen in 1 report
-
The project's Go module path referenced a GitHub account that was not controlled by the organisation, allowing an attacker to register it and supply malicious code.
Seen in 1 report
-
The promo image URL was converted without scheme validation, and the frontend bypassed the image wrapper for data URIs.
Seen in 1 report
-
The protocol did not properly validate authentication requests, allowing credential relay.
Seen in 1 report
-
The provider released the old organisation name for registration while still redirecting requests from the old URL.
Seen in 1 report
-
The provider's call() method trusted any caller and passed a Bundle extra to untyped getSerializable(), so deserialisation ran without a caller check or fixed target type.
Seen in 1 report
-
The provisioner ran as the same user as user scripts and was not isolated, so user scripts could patch its monitoring.
Seen in 1 report
-
The proxy configuration treated any non-empty Authorization header as a successful login.
-
The proxy forwarded base64-encoded URLs in a parameter without the firewall decoding and inspecting that parameter.
-
The proxy forwarded requests without normalising paths and an internal endpoint passed a name into a shell command.
Seen in 1 report
-
The quote variable was never set to an opening quote, so the close-quote and escaped-quote branches were unreachable.
Seen in 1 report
-
The reader used eval, dynamic imports and unpickling on values taken directly from the file.
Seen in 1 report
-
The readonly setting was disabled, so the default servlet wrote attacker-supplied files into a web-accessible directory.
Seen in 1 report
-
The readVideoInfo method does not validate user-supplied input before passing it to a system call.
Seen in 1 report
-
The recommended nginx configuration passes requests to PHP-FPM in a way that triggers a known PHP-FPM bug.
Seen in 1 report
-
The redirect URL validation regex was not anchored, so URLs with extra characters passed and reached a shell command.
Seen in 1 report
-
The registerFont function omitted return statements after protocol validation, so disallowed protocols were still passed to the file content helper.
Seen in 1 report
-
The registration handler wrote raw request parameters into a PHP source file without escaping or validating them.
Seen in 1 report
-
The registry command template inserted the folder path into a PowerShell command without quoting or sanitisation.
-
The regular expression used to validate domain and client names does not escape a period, so any character can match it, allowing shell metacharacters to pass validation and be written into a file that is later sourced.
Seen in 1 report
-
The remediation path for cloud-tagged placeholders performed a privileged write-back to a user-controlled path without re-validating where it resolved.