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 upload endpoint did not verify the file was an actual image before passing it to ImageMagick.
Seen in 1 report
-
The upload endpoint passed untrusted images to an outdated ImageMagick build without validating or sandboxing the processing.
Seen in 1 report
-
The upload endpoint trusted a user-controlled hash key as proof of a genuine upload, and content was read with a method that treats a leading pipe as a command.
Seen in 1 report
-
The upload endpoint trusted file content without validating its type, and ImageMagick was configured with Ghostscript enabled.
Seen in 1 report
-
The upload endpoint trusted the content type header for the file extension and the encoder path executed the file without validation.
Seen in 1 report
-
The upload endpoint validated only the client-supplied content type, not the file extension or content.
Seen in 1 report
-
The upload feature trusted client-supplied file metadata and stored files in a web-accessible directory configured to execute ASP.NET handlers.
-
The upload handler failed to properly validate uploaded files and deserialised untrusted data.
Seen in 1 report
-
The upload handler invoked ExifTool on user-supplied files before authentication, and the bundled ExifTool version was vulnerable to command injection via DjVu files.
Seen in 1 report
-
The upload restriction for Channel Sets was incomplete, allowing a PHP file to be uploaded, and the temporary folder name was predictable enough to guess.
Seen in 1 report
-
The uploaded file name was concatenated into a shell command string passed to shell.exec.
-
The uploaded file name was inserted into a shell command string without escaping special characters.
Seen in 1 report
-
The uploaded file's original name was placed directly into shell command strings without escaping or validation.
-
The URL and derived variables were passed unquoted into a command, allowing shell metacharacters and extra flags.
Seen in 1 report
-
The URL protocol handler let a calling application pass attacker-controlled arguments to MSDT without adequate validation.
-
Shared hardcoded credentials for MQTT authentication combined with a broker misconfiguration that failed to restrict topic permissions, plus a command protocol that executes OS commands.
-
The user-agent was written into the session without sanitisation, and PHP's session encoding plus a MySQL collation truncation allowed an injected serialised object to survive.
Seen in 1 report
-
The user-controlled filename was concatenated into a shell command without sanitisation.
Seen in 1 report
-
The user-controlled project parameter was embedded into a Python script without encoding.
Seen in 1 report
-
The user-controlled SID value was passed directly to Perl's open() function without sanitisation, enabling command injection.
Seen in 1 report
-
The user-supplied log message was passed as the format argument rather than as data.
Seen in 1 report
-
The user-supplied NTP server value was formatted into a command string and passed to a shell popen call with no sanitisation or escaping.
-
The user-supplied sender email address was passed directly to the sendmail command without sanitising it.
-
The username field was interpolated into a PowerShell command string without escaping, unlike the password field.
Seen in 1 report
-
The username was not sanitised before being added to the environment block, so a null byte allowed extra environment variables.
Seen in 1 report
-
The username was passed into environment setup without stripping newlines.
Seen in 1 report
-
The username was validated with a regex that permitted shell metacharacters and was then passed unsanitised into a system command.
Seen in 1 report
-
The username was written into a Lua session file without stripping null bytes or special characters, and the file was then executed without validation.
Seen in 1 report
-
The USSD code parameter was passed through snprintf and popen into a shell command without sanitisation.
Seen in 1 report
-
The USSD request value was formatted into a buffer and handed to a system call without sanitisation.
Seen in 1 report
-
The validate endpoint executed user-supplied Python without authentication or a trust check, reintroducing unsafe execution after an earlier fix.
Seen in 1 report
-
The validation function only checked the length of the value and did not reject shell metacharacters, and the value was later wrapped in single quotes and executed via a shell.
-
The validation logic used Python's ast module to parse user code but also executed function decorators, allowing arbitrary code execution during parsing.
-
The validation routine compiled and executed each function definition from user input, and the endpoint lacked the authentication dependency that sibling routes enforced.
Seen in 1 report
-
The validator accepted a plain string as a function name and called it without checking it was a trusted built-in.
Seen in 1 report
-
The validator built a shell command string from an attacker-controlled archive path and passed it to a process launcher that interprets it via the shell.
Seen in 1 report
-
The variable server was enabled by default on all interfaces and executed client-supplied code without authentication or sandboxing.
Seen in 1 report
-
The verification code did not HTML-decode attribute values before checking them against the safe-control list, while the processing code did decode them, creating a parser differential.
-
The verification key was derived from the requester-supplied encryption key instead of a server-held secret.
-
The verifier and encryptor defaulted to a serialiser that turns attacker-influenced data into live objects instead of plain data.
-
The verifier rebuilt from the very tarball it was meant to verify, so untrusted code ran before checksum and signature checks.
-
The version control driver passed user-controlled branch and file names to a command without sanitisation.
Seen in 1 report
-
The video-core process built an ffmpeg argument string by concatenating user-controlled values and then split it on spaces, so a space in the camera password became an argument separator.
Seen in 1 report
-
The ViewState value was passed to a formatter deserialiser without MAC validation, so a crafted serialised object executed.
Seen in 1 report
-
The VPN service parsed attacker-supplied certificate data without proper bounds checking and with a flawed validation chain.
-
The VSIX Auto Update task deserialised untrusted input without validating it.
-
The WAF's blacklist rules were incomplete and did not account for alternative syntaxes and utilities that achieve the same actions.
Seen in 1 report
-
The web API lacked authentication and passed user input directly to a shell command.
Seen in 1 report
-
The web interface passed the key path parameter directly to a shell command without sanitisation.
Seen in 1 report
-
The web interface passed user input to shell commands, used GET for state changes without CSRF protection and stored credentials and keys insecurely.
Seen in 1 report