Skip to content

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.

Back to the lesson 301 to 350 of 450
  1. Sanitise and escape values before embedding them in shell scripts.

    Seen in 1 report
  2. Sanitise and validate user-supplied input before passing it to a system shell.

    Seen in 1 report
  3. Sanitise answers that begin with formula characters before writing them to the exported file.

    Seen in 1 report
  4. 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
  5. Sanitise arguments passed to image processing tools and avoid dynamic method calls on user input.

    Seen in 1 report
  6. Sanitise arguments passed to image processing tools and avoid dynamic method calls on user input.

    Seen in 1 report
  7. Sanitise cell values by checking for and neutralising formula triggers even after a leading newline character.

    Seen in 1 report
  8. Sanitise external input before passing it to command execution APIs.

    Seen in 1 report
  9. Sanitise filenames from headers and URL paths and reject traversal sequences and absolute paths.

    Seen in 1 report
  10. Sanitise form fields before passing them to shell commands.

    Seen in 1 report
  11. Sanitise integration name and role parameters before reflecting them into generated scripts.

    Seen in 1 report
  12. Sanitise issue titles before using them in shell commands and JavaScript.

    Seen in 1 report
  13. Sanitise JSON field values before inserting them into shell commands.

    Seen in 1 report
  14. Sanitise newline characters in database flag values before writing them to the configuration file.

    Seen in 1 report
  15. Sanitise notification input on the backend and add context isolation in the desktop client.

    Seen in 1 report
  16. Sanitise or sandbox user input passed to template engines.

    Seen in 1 report
  17. Sanitise parameters before building shell commands in CGI handlers.

    Seen in 1 report
  18. Sanitise password input before passing it to a system call.

    Seen in 1 report
  19. Sanitise POST parameters before passing them to system calls in upload.cgi.

    Seen in 1 report
  20. Sanitise pull request descriptions and step outputs before using them in shell commands.

    Seen in 1 report
  21. Sanitise shell metacharacters in process names and avoid executing shell commands built from them.

    Seen in 1 report
  22. Sanitise the app_name argument before it reaches shell, AppleScript and other command sinks.

    Seen in 1 report
  23. Sanitise the location parameter before passing it to a system call.

    Seen in 1 report
  24. Sanitise the mtu and data parameters before passing them to os.system.

    Seen in 1 report
  25. Sanitise the Name value before using it in a shell command.

    Seen in 1 report
  26. Sanitise the PL_TRAINER_GPUS environment variable before passing it to shell or eval-like functions.

    Seen in 1 report
  27. Sanitise the project repository URL before passing it to hg clone.

    Seen in 1 report
  28. 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
  29. Sanitise the SID value before passing it to Perl's open() function.

    Seen in 1 report
  30. Sanitise the template argument before interpolating it into a shell command.

    Seen in 1 report
  31. Sanitise the timezone value before passing it into a shell command.

    Seen in 1 report
  32. Sanitise the username parameter before passing it to a shell command.

    Seen in 1 report
  33. Sanitise user input before passing it into a Freemarker template.

    Seen in 1 report
  34. Sanitise user input in parameters with action, redirect or redirectAction prefixes.

    Seen in 1 report
  35. Sanitise user input in the unprivileged portal to prevent SQL injection and command injection.

    Seen in 1 report
  36. Sanitise user-controlled input before passing it to a template engine.

    Seen in 1 report
  37. Sanitise user-controlled startup variables before passing them into shell commands.

    Seen in 1 report
  38. Sanitise user-supplied input passed to shell commands and remove hardcoded backdoor credentials.

    Seen in 1 report
  39. Sanitise user-supplied parameters before using them in system calls.

    Seen in 1 report
  40. Sanitise user-supplied paths and parameters to prevent path traversal, unrestricted file upload, and command argument injection.

    Seen in 1 report
  41. Sanitise user-supplied URLs before using them in system commands.

    Seen in 1 report
  42. Sanitise user-supplied values such as the SFTP username before passing them into shell commands.

    Seen in 1 report
  43. Sanitise XML node contents before building shell command strings.

    Seen in 1 report
  44. Scope and pin internal package names so the package manager does not fall back to the public registry.

    Seen in 1 report
  45. Search for libraries and executables only in trusted fixed paths.

    Seen in 1 report
  46. Send cache-control headers on authenticated pages.

    Seen in 1 report
  47. Separate template data from engine configuration options so user input cannot override sensitive settings.

    Seen in 1 report
  48. Serve updates over HTTPS and validate digital signatures before executing downloaded files.

    Seen in 1 report
  49. Show the security confirmation prompt before parsing HTML responses through MSHTML.

    Seen in 1 report
  50. Sign update manifests digitally and never disable TLS verification when a proxy is set.

    Seen in 1 report