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 201 to 250 of 450
  1. Fix the parser grammar so a backslash after a dollar or hash sign does not leave the following character unescaped.

    Seen in 1 report
  2. Fix the race condition or integrity-check bypass during add-on installation.

    Seen in 1 report
  3. Fix the samba service misconfiguration that allows arbitrary file overwrite.

    Seen in 1 report
  4. Fix the signed and unsigned comparison in the decode function to prevent the integer overflow.

    Seen in 1 report
  5. 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
  6. Handle array input in the sanitiser and check each element as a string before concatenating into a command.

    Seen in 1 report
  7. Handle newline characters in process names and verify the target directory before writing crash files.

    Seen in 1 report
  8. HTML-decode attribute values before checking them against the safe-control list.

    Seen in 1 report
  9. HTML-encode or sanitise the invitation message before inserting it into the outgoing email.

    Seen in 1 report
  10. Ignore options in comments, enforce that options appear on their own lines, and disallow abbreviated options.

    Seen in 1 report
  11. Implement certificate validation and require protection on callback contracts.

    Seen in 1 report
  12. Improve memory handling when processing colour profile files.

    Seen in 1 report
  13. Improve the eBPF verifier to adequately validate user-supplied programs before execution.

    Seen in 1 report
  14. Invoke system utilities by absolute path rather than by bare name.

    Seen in 1 report
  15. Isolate the antivirus sandbox so active content cannot make outbound network connections.

    Seen in 1 report
  16. Keep the embedded browser up to date and keep its sandbox enabled.

    Seen in 1 report
  17. Load internal links over HTTPS and add the domains to the HSTS preload list.

    Seen in 1 report
  18. Match the full normalised URI against public patterns rather than only the end of the URI.

    Seen in 1 report
  19. Neutralise newlines in SNMP configuration values before writing them to the daemon configuration.

    Seen in 1 report
  20. Neutralise special characters in job data before building operating system commands.

    Seen in 1 report
  21. Neutralise special characters in node names before using them in operating system commands.

    Seen in 1 report
  22. Neutralise special characters in object names before building commands in remediation scripts.

    Seen in 1 report
  23. Neutralise special command elements before passing them to a command interpreter.

    Seen in 1 report
  24. Neutralise special template syntax supplied in HTTP requests.

    Seen in 1 report
  25. Parse the full host parameter and validate it before passing it to a system command.

    Seen in 1 report
  26. Parse the Time Study value safely as data rather than evaluating it as a Python expression.

    Seen in 1 report
  27. Pass an allowed-classes list to unserialize or avoid unserializing untrusted data.

    Seen in 1 report
  28. Pass arguments safely instead of building shell commands from unvalidated user input.

    Seen in 1 report
  29. Patch against the EternalBlue SMB vulnerability.

    Seen in 1 report
  30. Perform SQL injection checks after URL decoding, sanitise paths in WebDAV handlers, and encode output.

    Seen in 1 report
  31. Place the data directory outside the web root so uploaded files are not served or executed directly.

    Seen in 1 report
  32. Prohibit uploads and edits to the .git directory.

    Seen in 1 report
  33. Properly authenticate requests to functions and sanitise user-supplied input passed to shell commands.

    Seen in 1 report
  34. Properly escape backslashes followed by control characters in the mail gem's shellquote method.

    Seen in 1 report
  35. Properly handle TLS errors and cryptographically sign firmware updates.

    Seen in 1 report
  36. Properly parse GRUB commands and do not copy entire lines that start with certain commands.

    Seen in 1 report
  37. 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
  38. Properly validate and restrict requests accepted by the Event Log RPC endpoint.

    Seen in 1 report
  39. Properly validate input when handling specially crafted files in the MSHTML engine.

    Seen in 1 report
  40. Properly validate or restrict the loading of type libraries from documents.

    Seen in 1 report
  41. Properly validate the certificate presented by a server before acting on the connection.

    Seen in 1 report
  42. Properly validate the HTTPS server certificate during firmware download.

    Seen in 1 report
  43. Properly validate user-supplied data before deserialisation in SafeBinaryFormatter.

    Seen in 1 report
  44. Properly validate user-supplied input before using it to build server-side code.

    Seen in 1 report
  45. Properly validate which server-side controls can be nested inside permitted controls.

    Seen in 1 report
  46. Quote service paths to prevent unquoted service path escalation.

    Seen in 1 report
  47. Quote the full service executable path.

    Seen in 1 report
  48. Quote user input passed to shell_exec and avoid constructing shell commands from unquoted input.

    Seen in 1 report
  49. Reject newline characters in configuration values submitted through the settings interface.

    Seen in 1 report
  50. Reject or strip encoded carriage-return and line-feed characters in FTP URLs.

    Seen in 1 report