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 251 to 300 of 450
  1. Remove backup files from the web root and do not leak machine keys through debug error handlers.

    Seen in 1 report
  2. Remove dangling DNS records that point to unclaimed third-party service instances.

    Seen in 1 report
  3. Remove debug functions that pass user input directly to system commands.

    Seen in 1 report
  4. Remove default administrative credentials and restrict crontab editing.

    Seen in 1 report
  5. 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
  6. Remove leftover debug commands that spawn a root shell.

    Seen in 1 report
  7. Remove pickle and switch to a text-based serialisation format.

    Seen in 1 report
  8. Remove the Lua package variable to prevent loading of the os library.

    Seen in 1 report
  9. Replace fixed service account passwords with unique, securely managed credentials.

    Seen in 1 report
  10. Replace the static encryption key with per-instance keys, and sanitise request parameters before concatenating them into shell commands.

    Seen in 1 report
  11. Replace the wildcard allow-classes setting with a strict whitelist of permitted classes.

    Seen in 1 report
  12. Require a properly validated credential rather than accepting any non-empty header.

    Seen in 1 report
  13. Require authentication and encryption on sync daemons and do not let NAT rules bypass sync-interface protection.

    Seen in 1 report
  14. Require authentication and restrict access to the script console endpoint.

    Seen in 1 report
  15. Require authentication and restrict the upload directory.

    Seen in 1 report
  16. Require authentication before accepting firmware uploads and validate the image before writing to flash.

    Seen in 1 report
  17. Require authentication on internal servlets and do not let callers choose the executed program.

    Seen in 1 report
  18. Require authentication on locally running servers and do not enable them by default.

    Seen in 1 report
  19. Require authentication on the cluster HTTP API.

    Seen in 1 report
  20. Require authentication on the editor and Admin API.

    Seen in 1 report
  21. Require authentication on the Solr admin interface and update to a non-vulnerable version.

    Seen in 1 report
  22. Require authentication on the telnet service before granting access.

    Seen in 1 report
  23. Require cryptographic signature verification for firmware images and remove hard-coded credentials.

    Seen in 1 report
  24. Require JavaScript execution from note queries to be explicitly enabled rather than on by default.

    Seen in 1 report
  25. Resolve and confine requested paths.

    Seen in 1 report
  26. Resolve the requested path and confine it to the intended directory instead of checking for parent-directory sequences.

    Seen in 1 report
  27. Restrict access to install scripts and prevent unauthenticated writes to settings files.

    Seen in 1 report
  28. Restrict dangerous functions exposed by the print script sandboxed setting.

    Seen in 1 report
  29. Restrict dunder attributes in the deserialiser whitelist.

    Seen in 1 report
  30. Restrict file extensions in the File Manager, prevent overwriting server configuration files, and sanitise stored input in the Event Filter.

    Seen in 1 report
  31. Restrict inline JavaScript execution, remote plugin loading, and unrestricted file or URL imports in Less.js.

    Seen in 1 report
  32. Restrict JNDI lookups to safe protocols in JdbcUtils.getConnection.

    Seen in 1 report
  33. Restrict lifecycle scripts run during package installation.

    Seen in 1 report
  34. Restrict readability of service account token files by the container user.

    Seen in 1 report
  35. Restrict sed-specific syntax in user-controlled input.

    Seen in 1 report
  36. Restrict template drops to a safe allowlist of properties and do not expose arbitrary object methods to templates.

    Seen in 1 report
  37. Restrict the inputs accepted by deep link handlers.

    Seen in 1 report
  38. Restrict the protocols allowed in submodule URLs to prevent the use of the ext:: remote helper.

    Seen in 1 report
  39. Restrict types during BinaryFormatter deserialisation and prevent session key manipulation.

    Seen in 1 report
  40. Restrict uploaded file types and reject double extensions.

    Seen in 1 report
  41. Restrict uploads of .htaccess files and files with non-PHP extensions that can be renamed.

    Seen in 1 report
  42. Restrict URL schemes in chat links and display the real destination instead of attacker-controlled text.

    Seen in 1 report
  43. Restrict which classes can be instantiated during AMF deserialisation.

    Seen in 1 report
  44. Restrict which files an exposed export method can write.

    Seen in 1 report
  45. Restrict which hosts may connect to the service.

    Seen in 1 report
  46. Run untrusted code as an unprivileged user in a network-restricted container and do not trust client-written result files.

    Seen in 1 report
  47. Sandbox script execution in message filters and validate data from remote JMX servers.

    Seen in 1 report
  48. Sandbox user macros and restrict access to Java objects that allow outbound JNDI connections.

    Seen in 1 report
  49. Sandbox user-supplied Python code execution.

    Seen in 1 report