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.
-
Remove backup files from the web root and do not leak machine keys through debug error handlers.
Seen in 1 report
-
Remove dangling DNS records that point to unclaimed third-party service instances.
-
Remove debug functions that pass user input directly to system commands.
Seen in 1 report
-
Remove default administrative credentials and restrict crontab editing.
Seen in 1 report
-
Remove hardcoded API keys from client-side code, sanitise uploaded filenames, and avoid unsafe deserialisation of pickle files without signature checks.
Seen in 1 report
-
Remove leftover debug commands that spawn a root shell.
-
Remove pickle and switch to a text-based serialisation format.
Seen in 1 report
-
Remove the Lua package variable to prevent loading of the os library.
Seen in 1 report
-
Replace fixed service account passwords with unique, securely managed credentials.
-
Replace the static encryption key with per-instance keys, and sanitise request parameters before concatenating them into shell commands.
Seen in 1 report
-
Replace the wildcard allow-classes setting with a strict whitelist of permitted classes.
-
Require a properly validated credential rather than accepting any non-empty header.
-
Require authentication and encryption on sync daemons and do not let NAT rules bypass sync-interface protection.
-
Require authentication and restrict access to the script console endpoint.
Seen in 1 report
-
Require authentication and restrict the upload directory.
Seen in 1 report
-
Require authentication before accepting firmware uploads and validate the image before writing to flash.
Seen in 1 report
-
Require authentication on internal servlets and do not let callers choose the executed program.
-
Require authentication on locally running servers and do not enable them by default.
Seen in 1 report
-
Require authentication on the cluster HTTP API.
-
Require authentication on the editor and Admin API.
-
Require authentication on the Solr admin interface and update to a non-vulnerable version.
Seen in 1 report
-
Require authentication on the telnet service before granting access.
Seen in 1 report
-
Require cryptographic signature verification for firmware images and remove hard-coded credentials.
Seen in 1 report
-
Require JavaScript execution from note queries to be explicitly enabled rather than on by default.
Seen in 1 report
-
Resolve and confine requested paths.
Seen in 1 report
-
Resolve the requested path and confine it to the intended directory instead of checking for parent-directory sequences.
Seen in 1 report
-
Restrict access to install scripts and prevent unauthenticated writes to settings files.
-
Restrict dangerous functions exposed by the print script sandboxed setting.
-
Restrict dunder attributes in the deserialiser whitelist.
Seen in 1 report
-
Restrict file extensions in the File Manager, prevent overwriting server configuration files, and sanitise stored input in the Event Filter.
-
Restrict inline JavaScript execution, remote plugin loading, and unrestricted file or URL imports in Less.js.
Seen in 1 report
-
Restrict JNDI lookups to safe protocols in JdbcUtils.getConnection.
Seen in 1 report
-
Restrict lifecycle scripts run during package installation.
Seen in 1 report
-
Restrict readability of service account token files by the container user.
Seen in 1 report
-
Restrict sed-specific syntax in user-controlled input.
Seen in 1 report
-
Restrict template drops to a safe allowlist of properties and do not expose arbitrary object methods to templates.
Seen in 1 report
-
Restrict the inputs accepted by deep link handlers.
-
Restrict the IP parameter to trusted RMI servers.
-
Restrict the protocols allowed in submodule URLs to prevent the use of the ext:: remote helper.
-
Restrict types during BinaryFormatter deserialisation and prevent session key manipulation.
Seen in 1 report
-
Restrict uploaded file types and reject double extensions.
Seen in 1 report
-
Restrict uploads of .htaccess files and files with non-PHP extensions that can be renamed.
-
Restrict URL schemes in chat links and display the real destination instead of attacker-controlled text.
Seen in 1 report
-
Restrict which classes can be instantiated during AMF deserialisation.
-
Restrict which files an exposed export method can write.
-
Restrict which hosts may connect to the service.
Seen in 1 report
-
Run untrusted code as an unprivileged user in a network-restricted container and do not trust client-written result files.
Seen in 1 report
-
Sandbox script execution in message filters and validate data from remote JMX servers.
-
Sandbox user macros and restrict access to Java objects that allow outbound JNDI connections.
Seen in 1 report
-
Sandbox user-supplied Python code execution.
Seen in 1 report