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.
-
Fix the parser grammar so a backslash after a dollar or hash sign does not leave the following character unescaped.
-
Fix the race condition or integrity-check bypass during add-on installation.
Seen in 1 report
-
Fix the samba service misconfiguration that allows arbitrary file overwrite.
-
Fix the signed and unsigned comparison in the decode function to prevent the integer overflow.
Seen in 1 report
-
Force a change of default SSH passwords, sanitise user input passed to shell commands in the restricted shell menu, and update the kernel.
Seen in 1 report
-
Handle array input in the sanitiser and check each element as a string before concatenating into a command.
Seen in 1 report
-
Handle newline characters in process names and verify the target directory before writing crash files.
Seen in 1 report
-
HTML-decode attribute values before checking them against the safe-control list.
-
HTML-encode or sanitise the invitation message before inserting it into the outgoing email.
Seen in 1 report
-
Ignore options in comments, enforce that options appear on their own lines, and disallow abbreviated options.
Seen in 1 report
-
Implement certificate validation and require protection on callback contracts.
-
Improve memory handling when processing colour profile files.
-
Improve the eBPF verifier to adequately validate user-supplied programs before execution.
Seen in 1 report
-
Invoke system utilities by absolute path rather than by bare name.
Seen in 1 report
-
Isolate the antivirus sandbox so active content cannot make outbound network connections.
-
Keep the embedded browser up to date and keep its sandbox enabled.
Seen in 1 report
-
Load internal links over HTTPS and add the domains to the HSTS preload list.
Seen in 1 report
-
Match the full normalised URI against public patterns rather than only the end of the URI.
-
Neutralise newlines in SNMP configuration values before writing them to the daemon configuration.
Seen in 1 report
-
Neutralise special characters in job data before building operating system commands.
Seen in 1 report
-
Neutralise special characters in node names before using them in operating system commands.
Seen in 1 report
-
Neutralise special characters in object names before building commands in remediation scripts.
Seen in 1 report
-
Neutralise special command elements before passing them to a command interpreter.
Seen in 1 report
-
Neutralise special template syntax supplied in HTTP requests.
Seen in 1 report
-
Parse the full host parameter and validate it before passing it to a system command.
-
Parse the Time Study value safely as data rather than evaluating it as a Python expression.
Seen in 1 report
-
Pass an allowed-classes list to unserialize or avoid unserializing untrusted data.
-
Pass arguments safely instead of building shell commands from unvalidated user input.
-
Patch against the EternalBlue SMB vulnerability.
Seen in 1 report
-
Perform SQL injection checks after URL decoding, sanitise paths in WebDAV handlers, and encode output.
Seen in 1 report
-
Place the data directory outside the web root so uploaded files are not served or executed directly.
Seen in 1 report
-
Prohibit uploads and edits to the .git directory.
Seen in 1 report
-
Critical
-
-
Properly authenticate requests to functions and sanitise user-supplied input passed to shell commands.
Seen in 1 report
-
Properly escape backslashes followed by control characters in the mail gem's shellquote method.
Seen in 1 report
-
Properly handle TLS errors and cryptographically sign firmware updates.
-
Properly parse GRUB commands and do not copy entire lines that start with certain commands.
Seen in 1 report
-
Properly quote command-line arguments according to Windows' parsing rules, and apply additional quoting when the executable is a .bat or .cmd file.
Seen in 1 report
-
Properly validate and restrict requests accepted by the Event Log RPC endpoint.
Seen in 1 report
-
Properly validate input when handling specially crafted files in the MSHTML engine.
Seen in 1 report
-
Properly validate or restrict the loading of type libraries from documents.
Seen in 1 report
-
Properly validate the certificate presented by a server before acting on the connection.
Seen in 1 report
-
Properly validate the HTTPS server certificate during firmware download.
-
Properly validate user-supplied data before deserialisation in SafeBinaryFormatter.
-
Properly validate user-supplied input before using it to build server-side code.
Seen in 1 report
-
Properly validate which server-side controls can be nested inside permitted controls.
-
Quote service paths to prevent unquoted service path escalation.
Seen in 1 report
-
Quote the full service executable path.
-
Quote user input passed to shell_exec and avoid constructing shell commands from unquoted input.
Seen in 1 report
-
Reject newline characters in configuration values submitted through the settings interface.
Seen in 1 report
-
Reject or strip encoded carriage-return and line-feed characters in FTP URLs.
Seen in 1 report