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.
-
Configuration values were stored in the database and later passed directly to eval or unserialize, so any value written there was executed or deserialised.
-
Dangerous methods were exposed without authorisation checks, allowing unauthenticated invocation.
-
Date parameters were built into PHP code strings and passed to eval without sanitisation.
-
Debug features left enabled in production exposed command execution paths.
-
Decrypted YAML was parsed with a loader that constructs arbitrary objects instead of plain data.
Seen in 2 reports
-
Documentation referenced a package name without ensuring it was registered on the public registry.
Seen in 2 reports
-
fastcgi_split_path mishandles URIs with newlines, leaving the path info empty and causing a buffer underflow.
-
Feedback form input is passed directly into a shell command without sanitisation.
-
File paths were concatenated into shell command strings without escapeshellarg.
Seen in 2 reports
-
Firmware shipped with default credentials that were never removed or made unique per device.
-
Hash verification could be skipped for some packages, and the fallback download site used plain HTTP.
-
Helper binaries loaded DLLs by bare name without a fully qualified path, so the Windows search order reached user-writable folders.
-
Improper input validation in the handling of RPC requests.
-
Improper neutralisation of special elements used in a command.
Seen in 2 reports
-
Input from the test mail form was passed to a system shell without validation or sanitisation.
-
Internal package names were not reserved on public registries, allowing an attacker to publish a higher-version package.
-
Lack of class whitelisting during AMF deserialisation allowed arbitrary classes to be instantiated.
-
Likely a memory-safety flaw in the server's handling of network requests.
-
Likely a memory-safety or input-validation flaw in how RRAS parses network packets.
-
The manager was exposed with default credentials and the deploy function was left enabled.
-
Methods were exposed without proper access checks, allowing unauthenticated invocation.
-
Missing input validation and sanitisation on parameters before they were written into a PHP source file.
-
Modules concatenated caller-supplied values into shell command strings instead of passing them as separate arguments.
Seen in 2 reports
-
Critical -
Critical
-
-
Network-controlled indexes are used as array indexes without bounds checks.
-
NPZ loading paths deserialise attacker-controlled content without validation.
-
Package managers check both private and public repositories and install the highest version, so unclaimed private names can be taken over.
Seen in 2 reports
-
Part of a URL was passed to a system command without sanitisation.
Seen in 2 reports
-
The password change routine built a shell command from unvalidated user input.
-
Private dependency names are not reserved on the public registry, so the package manager resolves them to attacker packages.
-
A privileged cron job executes a script from a web-writable directory.
-
Sandbox helper methods pass user-controlled keys or callables to evaluation functions, or only validate string arguments.
-
Sanitisation runs before decryption or parsing, so the checked value differs from the value later used.
-
Schema property names were inserted into generated JavaScript source without escaping or validating them.
Seen in 2 reports
-
Scripts build and execute Python code from unvalidated user strings.
-
The server used BinaryFormatter on a pipe accessible to any authenticated user and relied on a spoofable process property for authentication.
Seen in 2 reports
-
The service builds an OS command from untrusted input without neutralising special characters.
Seen in 2 reports
-
SharePoint does not properly identify and filter unsafe ASP.Net web controls.
-
Shortcut references were processed incorrectly, letting a crafted shortcut trigger execution of an associated binary.
Seen in 2 reports
-
SpEL expressions are evaluated with a standard context that allows class access, and the auth filter uses a substring match on the path.
-
sprintf copied a user-controlled filename into a fixed-size stack buffer without a length check.
-
Sudo pivots into an attacker-controlled root before loading NSS libraries, so library paths resolve inside that root.
-
Template data and engine configuration shared one object, so user input could override security settings.
-
The annotation value was inserted into the nginx configuration without quoting or validation, allowing directive injection.
-
The app deserialised untrusted input with Ruby's Marshal.load, letting attackers instantiate arbitrary objects and trigger dangerous methods.
Seen in 2 reports
-
The application allowed uploads and edits inside the .git directory without restricting that path.
Seen in 2 reports
-
Critical -
Critical
-
-
The application explicitly enabled the auto-type feature that is disabled by default for security.
-
The application included user-controlled paths without validation while the server wrote user-controlled data into files without sanitisation.
-
The application loads a library from a location an attacker can write to without verifying its origin.
-
The application passed the user-supplied Token and userName parameters directly into a system call without validating or sanitising them.
-
The application trusted a client-supplied header to set the remote IP address, so the localhost restriction could be spoofed.