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.
-
Sanitise and escape values before embedding them in shell scripts.
-
Sanitise and validate user-supplied input before passing it to a system shell.
Seen in 1 report
-
Sanitise answers that begin with formula characters before writing them to the exported file.
Seen in 1 report
-
Sanitise argument separators in SSH client parameters, add an authentication check to the wheel_async client, and prevent path traversal in the pillar roots write.
Seen in 1 report
-
Sanitise arguments passed to image processing tools and avoid dynamic method calls on user input.
Seen in 1 report
-
Sanitise arguments passed to image processing tools and avoid dynamic method calls on user input.
Seen in 1 report
-
Sanitise cell values by checking for and neutralising formula triggers even after a leading newline character.
Seen in 1 report
-
Sanitise external input before passing it to command execution APIs.
Seen in 1 report
-
Critical
-
-
Sanitise filenames from headers and URL paths and reject traversal sequences and absolute paths.
Seen in 1 report
-
Critical
-
-
Sanitise form fields before passing them to shell commands.
Seen in 1 report
-
Sanitise integration name and role parameters before reflecting them into generated scripts.
-
Sanitise issue titles before using them in shell commands and JavaScript.
-
Sanitise JSON field values before inserting them into shell commands.
Seen in 1 report
-
Sanitise newline characters in database flag values before writing them to the configuration file.
Seen in 1 report
-
Sanitise notification input on the backend and add context isolation in the desktop client.
-
Sanitise or sandbox user input passed to template engines.
Seen in 1 report
-
Sanitise parameters before building shell commands in CGI handlers.
Seen in 1 report
-
Sanitise password input before passing it to a system call.
Seen in 1 report
-
Sanitise POST parameters before passing them to system calls in upload.cgi.
Seen in 1 report
-
Sanitise pull request descriptions and step outputs before using them in shell commands.
-
Sanitise shell metacharacters in process names and avoid executing shell commands built from them.
Seen in 1 report
-
Sanitise the app_name argument before it reaches shell, AppleScript and other command sinks.
-
Sanitise the location parameter before passing it to a system call.
-
Sanitise the mtu and data parameters before passing them to os.system.
-
Sanitise the Name value before using it in a shell command.
Seen in 1 report
-
Sanitise the PL_TRAINER_GPUS environment variable before passing it to shell or eval-like functions.
Seen in 1 report
-
Critical
-
-
Sanitise the project repository URL before passing it to hg clone.
Seen in 1 report
-
Sanitise the session ID before concatenating it into a file path, and avoid passing filenames to shell commands with shell=True.
Seen in 1 report
-
Sanitise the SID value before passing it to Perl's open() function.
Seen in 1 report
-
Sanitise the template argument before interpolating it into a shell command.
Seen in 1 report
-
Medium
-
-
Sanitise the timezone value before passing it into a shell command.
Seen in 1 report
-
Sanitise the username parameter before passing it to a shell command.
Seen in 1 report
-
Sanitise user input before passing it into a Freemarker template.
-
Sanitise user input in parameters with action, redirect or redirectAction prefixes.
Seen in 1 report
-
Sanitise user input in the unprivileged portal to prevent SQL injection and command injection.
Seen in 1 report
-
Sanitise user-controlled input before passing it to a template engine.
-
Sanitise user-controlled startup variables before passing them into shell commands.
-
Sanitise user-supplied input passed to shell commands and remove hardcoded backdoor credentials.
Seen in 1 report
-
Sanitise user-supplied parameters before using them in system calls.
Seen in 1 report
-
Sanitise user-supplied paths and parameters to prevent path traversal, unrestricted file upload, and command argument injection.
Seen in 1 report
-
Sanitise user-supplied URLs before using them in system commands.
Seen in 1 report
-
Sanitise user-supplied values such as the SFTP username before passing them into shell commands.
-
Sanitise XML node contents before building shell command strings.
-
Scope and pin internal package names so the package manager does not fall back to the public registry.
-
Search for libraries and executables only in trusted fixed paths.
Seen in 1 report
-
Send cache-control headers on authenticated pages.
-
Separate template data from engine configuration options so user input cannot override sensitive settings.
Seen in 1 report
-
Serve updates over HTTPS and validate digital signatures before executing downloaded files.
Seen in 1 report
-
Show the security confirmation prompt before parsing HTML responses through MSHTML.
Seen in 1 report
-
Sign update manifests digitally and never disable TLS verification when a proxy is set.
Seen in 1 report