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 application does not properly validate or restrict which libraries are loaded when handling project files.
-
The application does not sanitise or validate the dest parameter before incorporating it into a shell command.
-
The application enabled Jackson's default typing, letting JSON input specify arbitrary Java classes, and a gadget class was on the classpath.
Seen in 1 report
-
The application escaped special characters but not spaces, letting extra command-line arguments through.
Seen in 1 report
-
The application evaluated a user-controlled file name without sanitisation, allowing code injection.
Seen in 1 report
-
The application evaluated an attacker-controlled header as a Spring Expression Language expression without safeguards.
-
The application exposed its git directory and used unsanitised input in file reads and shell calls.
Seen in 1 report
-
The application failed to enable Velocity's SecureUberspector.
Seen in 1 report
-
The application failed to neutralise special command elements in workspace-controlled input before Workspace Trust was enforced.
Seen in 1 report
-
The application failed to properly sanitise user-supplied paths and parameters, leading to a path traversal authentication bypass, unrestricted file upload, and command argument injection.
Seen in 1 report
-
The application failed to sanitise user input before embedding it in a single-quoted OGNL expression in a Velocity template, and the blocklist of unsafe OGNL elements was incomplete.
-
The application failed to sanitise user input in the Search Pattern field before passing it to a system command.
Seen in 1 report
-
The application failed to sanitise user-supplied input before passing it to a system shell command.
Seen in 1 report
-
The application failed to strip newline characters from the user-supplied email address before passing it to the mail library.
Seen in 1 report
-
The application failed to validate user input before storing it as a custom resource, and the controller used it to build YAML.
Seen in 1 report
-
The application fails to sanitise user input embedded in single quotes within Velocity templates, allowing a Unicode escape sequence to break out of the string and inject OGNL.
Seen in 1 report
-
The application inserted the User-Agent header value into a PHP file without sanitisation.
Seen in 1 report
-
The application inserted user-controlled text directly into reportlab's paragraph markup without sanitisation, and the installed reportlab version evaluated font colour strings as Python expressions.
Seen in 1 report
-
The application is not built with Hardened Runtime, so DYLD environment variables are honoured.
Seen in 1 report
-
The application kept calling unserialize on user input and its mitigations were incomplete.
Seen in 1 report
-
The application kept the same session identifier across authentication instead of issuing a fresh one after login.
-
The application lacks authorization checks on settings modification and does not sanitise input before shell and SQL use.
-
The application let an administrator add PHP to permitted upload extensions without restricting execution of uploaded files.
Seen in 1 report
-
The application loaded an OpenSSL configuration file from a world-writable location at the root of the system drive.
-
The application loads its .asar archive from a user-writable location without any integrity or hash check.
Seen in 1 report
-
The application only checked file extensions, passed user input straight into file_get_contents, and had no anti-CSRF protection on security settings.
Seen in 1 report
-
The application package importer did not validate the source markup of uploaded packages.
Seen in 1 report
-
The application passed a cookie value directly into a PHP code-evaluation function without validating or sanitising it.
Seen in 1 report
-
The application passed unsanitised user input from the 'content' parameter directly into Smarty's fetch() function on an unauthenticated endpoint.
-
The application passed user-controlled base64 data from a multipart form field directly into .NET's BinaryFormatter.Deserialize without validation.
Seen in 1 report
-
The application passed user-controlled data into PHP's unserialize function without validating the resulting object types.
Seen in 1 report
-
The application passed user-controlled data to PHP's unserialize() function, allowing crafted serialised objects to trigger magic methods.
Seen in 1 report
-
The application passes the ntp parameter directly to a shell command without sanitising it.
-
The application passes unsanitised attacker-controlled input from the mtu or data parameter directly into the os.system function.
-
The application passes user-supplied GET parameters directly to a system call without sanitisation or validation.
-
The application ran openssl commands with user-controlled certificate data interpolated directly into the shell command string.
Seen in 1 report
-
The application relied on a restricted shell instead of validating or sanitising user input.
-
The application rendered user-controlled input as a Jinja2 template without sandboxing or validation.
Seen in 1 report
-
The application resolved user-controlled RMI URLs and did not restrict which remote classes could be loaded.
Seen in 1 report
-
The application searched for a required DLL in a user-writable directory without verifying its origin.
Seen in 1 report
-
The application searched for a required library in an insecure location such as the current working directory or a user-writable path.
-
The application searched for its helper binary in the user's home directory before trusted system locations.
Seen in 1 report
-
The application searched its own directory for a DLL before the system directory.
Seen in 1 report
-
The application searches for a required library or executable in a location an attacker can influence rather than a trusted fixed path.
Seen in 1 report
-
The application server was left with default administrative credentials, and the same local administrator password was reused across multiple servers.
Seen in 1 report
-
The application trusted the user-supplied name field for the saved filename and did not restrict extensions.
-
The application trusted user-supplied environment variables and passed them to a child process without blocking dangerous keys.
Seen in 1 report
-
The application unserialised user-controlled data after checking an HMAC whose key leaked through debug output.
Seen in 1 report
-
The application unserialises attacker-controlled data while the installed doctrine/doctrine-bundle and Symfony classes contain magic methods that call file-writing and file-including code.
Seen in 1 report
-
The application used a binary formatter to deserialise data influenced through a Git repository without restricting types.
Seen in 1 report