In-depth lesson · RCE
Typical fixes
Every point the RCE reports back under this heading, best-backed first, each with the reports it is seen in.
-
Stop the request on a failed password change instead of returning a user role object.
-
The vendor declined to fix the issue, so the only mitigation is restricting network access to the component.
Seen in 1 report
-
The vendor removed the vulnerable code.
-
Treat the newline character as unsafe in the safeSystemCmdArg2 function.
Seen in 1 report
-
Trim the namespace attribute in Register directives during safe-list verification.
-
Update glibc to a version that fixes the iconv buffer overflow when converting to the ISO-2022-CN-EXT charset.
-
Update ImageMagick and restrict PostScript handling.
Seen in 1 report
-
$2,000 Critical
-
-
Update the embedded browser and keep its sandbox enabled.
Seen in 1 report
-
Update the library to a patched release.
Seen in 1 report
-
Update the recommended nginx configuration and PHP-FPM version to avoid the known bug.
Seen in 1 report
-
Update the Simple File List plugin to a version that restricts file uploads.
Seen in 1 report
-
Update to the patched version.
Seen in 1 report
-
Upgrade React, the RSC packages and Next.js to patched versions, rebuild and redeploy, and add temporary WAF rules or restrict RSC endpoints.
Seen in 1 report
-
Use a character allowlist and privilege separation so log content never reaches a shell command.
Seen in 1 report
-
Use a privileged, non-user-writable folder and validate ownership and permissions before extracting.
Seen in 1 report
-
Use a proper allow-list or safe evaluation method instead of str_replace sanitisation.
Seen in 1 report
-
Use a random per-instance secret key and validate custom filter queries.
Seen in 1 report
-
Use a random, signed reset token rather than a value derived from the password hash.
Seen in 1 report
-
Use a safe YAML loader instead of the unsafe load function.
Seen in 1 report
-
Use a safe YAML loader that does not allow arbitrary object types.
Seen in 1 report
-
Use a strong secret token and disable unsafe deserialization in Spring Boot DevTools.
Seen in 1 report
-
Use absolute paths in service commands and enforce authorisation checks.
Seen in 1 report
-
Use an allowlist of safe file types instead of a blocklist of dangerous extensions.
Seen in 1 report
-
Use an encrypted channel for firmware downloads.
-
Use an explicit allow-list of safe methods rather than a prefix-based check for read-only methods.
-
Use bounded copying instead of sprintf into a fixed-size stack buffer.
Seen in 1 report
-
Use bounded string handling, enable stack canaries and build with PIE.
Seen in 1 report
-
Use Cocaine's safe placeholder and run mechanism instead of string interpolation to build command lines.
-
Use correct string comparisons in validation methods.
-
Use real server authentication instead of a hardcoded symmetric key, and add bounds checks to packet and DNS-name parsers.
Seen in 1 report
-
Use separate session stores for different purposes and do not let the client choose the session key.
-
Use the wide-character Windows API to retrieve the command line instead of the ANSI API.
Seen in 1 report
-
Use unpredictable nonces, authenticate API functions and prevent regex rules from modifying source code.
-
Use unpredictable scratch bucket names and verify ownership before use.
Seen in 1 report
-
Validate a remote JAR before loading it.
-
Validate and escape packet-capture filter values before passing them to system calls.
Seen in 1 report
-
Validate and escape the password parameter before embedding it in a Python command string.
-
Validate and escape the serial number before concatenating it into a key generation command.
Seen in 1 report
-
Validate and escape user input before building commands run through popen.
Seen in 1 report
-
Validate and escape user-supplied values before inserting them into shell command strings.
Seen in 1 report
-
Validate and re-encode uploaded content and do not store uploads in a directory that executes handlers.
-
Validate and restrict the types that can be instantiated during deserialisation.
-
Validate and restrict types during deserialisation of AMF messages.
-
Validate and restrict types during deserialisation of client-supplied data.
-
Validate and restrict URLs supplied to the API endpoint.
Seen in 1 report
-
Validate and sign the ViewState parameter, and validate the datasource parameter before using it in a JNDI lookup.
-
Validate annotation values and reject duplicate YAML keys.
-
Validate attachment filenames and restrict file types when writing uploaded data to server paths.
-
Validate cache file data before deserialising it and restrict which objects may be reconstructed.
-
Validate data received from the cloud tenant before applying it on-premises.
Seen in 1 report