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 51 to 100 of 450
  1. Require user confirmation before activating virtual environments or applying workspace settings from cloned repositories.

    Seen in 3 reports
  2. Restrict which classes may be instantiated when deserialising.

    Seen in 3 reports
  3. Restrict which types can be instantiated when deserialising request data.

    Seen in 3 reports
  4. Validate and restrict the file types inside uploaded archives, and extract into a directory that is not web-accessible.

    Seen in 3 reports
  5. Validate and sanitise user-supplied strings before passing them to system calls.

    Seen in 3 reports
  6. Validate file content and extension, and store uploads outside web-accessible directories without execute permission.

    Seen in 3 reports
  7. Validate parameters and use bounds checking before passing them to system calls.

    Seen in 3 reports
  8. Validate the structure and type of data in incoming Flight payloads and restrict prototype and constructor references.

    Seen in 3 reports
  9. Validate untrusted data before deserialising it.

    Seen in 3 reports
  10. Bounds-check network-controlled indexes before using them as array indexes.

    Seen in 2 reports
  11. Call external binaries with absolute paths or a safe lookup function.

    Seen in 2 reports
  12. Check binary validity before reading entitlements.

    Seen in 2 reports
  13. Check that properties being set are the object's own properties before applying them.

    Seen in 2 reports
  14. Claim private package names on public registries and configure package managers to resolve private names only from private sources.

    Seen in 2 reports
  15. Do not accept serialised objects from the client, and restrict which classes may be reconstructed.

    Seen in 2 reports
  16. Do not deserialise parameters from uploaded files without validation.

    Seen in 2 reports
  17. Do not execute MCP server definitions from workspace-local files without validating the source and asking the user.

    Seen in 2 reports
  18. Do not expose the setup token to unauthenticated users and restrict JDBC parameters passed to the driver.

    Seen in 2 reports
  19. Do not interpolate untrusted commit messages or branch names into shell scripts; pass them through environment variables instead.

    Seen in 2 reports
  20. Do not interpolate untrusted workflow context values into shell commands; pass them through environment variables or validate them.

    Seen in 2 reports
  21. Do not pass user-controlled input directly to a template rendering function.

    Seen in 2 reports
  22. Do not pass user-supplied strings into Python code execution mechanisms; validate and restrict them.

    Seen in 2 reports
  23. Do not render user-controlled fields through template engines, and restrict log file paths to non-executable locations.

    Seen in 2 reports
  24. Enable context isolation and disable node integration in Electron apps.

    Seen in 2 reports
  25. Escape or prefix cells that begin with formula trigger characters before writing them to a CSV file.

    Seen in 2 reports
  26. Escape regex metacharacters in custom TODO keywords and add range checks in the regex compiler.

    Seen in 2 reports
  27. Escape user-controlled fields when generating CSV output.

    Seen in 2 reports
  28. Fix the URI safety check logic so unsafe URIs are not treated as safe.

    Seen in 2 reports
  29. Harden expression sanitisers to resolve computed keys and block access to constructors.

    Seen in 2 reports
  30. Patch runC and BuildKit to close the file descriptor leak and race conditions.

    Seen in 2 reports
  31. Properly escape the sender address to prevent argument injection, avoiding clashes between escapeshellarg() and escapeshellcmd().

    Seen in 2 reports
  32. Properly identify and filter unsafe ASP.Net web controls.

    Seen in 2 reports
  33. Reserve internal package names on public registries and pin versions.

    Seen in 2 reports
  34. Reserve private dependency names on the public registry or use scoped names.

    Seen in 2 reports
  35. Resolve library paths from trusted fixed locations and sanitise input.

    Seen in 2 reports
  36. Restrict JDBC parameters passed to the driver during setup validation.

    Seen in 2 reports
  37. Sandbox or validate code generated by a large language model before executing it.

    Seen in 2 reports
  38. Sanitise and escape user-supplied input before passing it to a system shell.

    Seen in 2 reports
  39. Sanitise interface and VLAN names before building shell commands.

    Seen in 2 reports
  40. Sanitise user input before embedding it in single-quoted OGNL expressions in Velocity templates, and complete the blocklist of unsafe OGNL elements.

    Seen in 2 reports
  41. Sanitise usernames before passing them to shell scripts.

    Seen in 2 reports
  42. Use an allowlist of permitted file types instead of a blocklist of dangerous extensions.

    Seen in 2 reports
  43. Use safe DLL search settings and validate the origin of loaded DLLs.

    Seen in 2 reports
  44. Validate and sanitise data received from remote performance counter sources.

    Seen in 2 reports
  45. Validate and sanitise the Token and userName parameters before use in a system call.

    Seen in 2 reports
  46. Validate that a backup directory parameter is a safe path before using it in a file operation.

    Seen in 2 reports
  47. Validate the type of user-supplied data before using it in command handlers.

    Seen in 2 reports
  48. Validate user-supplied data before deserialising it.

    Seen in 2 reports