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 101 to 150 of 450
  1. Validate user-supplied input before using it in system calls in the password change mechanism.

    Seen in 2 reports
  2. Validate user-supplied strings before using them in system calls.

    Seen in 2 reports
  3. Verify the authenticity and integrity of software update packages before installing.

    Seen in 2 reports
  4. Account for all batch file extensions when deciding whether to treat a file as a batch script.

    Seen in 1 report
  5. Add a @JsonProperty annotation to the JavaScriptConfig parameter so an empty JSON key cannot override it.

    Seen in 1 report
  6. Add access controls and restrictions to dangerous functions exposed by the gateway server.

    Seen in 1 report
  7. Add authentication to the REST endpoint and validate user-supplied class and method names used in reflection.

    Seen in 1 report
  8. Add authorisation checks on settings modification and sanitise input before shell and SQL use.

    Seen in 1 report
  9. Add bounds checking when copying user-supplied filenames into fixed-size buffers, and enable stack cookies.

    Seen in 1 report
  10. Add CSRF tokens to the CKEditor configuration form and validate user-controlled input passed to getimagesize().

    Seen in 1 report
  11. Add input sanitisation in core processes and library APIs.

    Seen in 1 report
  12. Add length checks when appending XML element names to a fixed global buffer.

    Seen in 1 report
  13. Add proper access controls to the PJL command handler.

    Seen in 1 report
  14. Add the ObjRef gadget to the deserialisation blacklist.

    Seen in 1 report
  15. Add unit testing and code consistency checks to prevent regressions in the restapps module.

    Seen in 1 report
  16. Add validation and authorisation to endpoints reachable from the adjacent network.

    Seen in 1 report
  17. Apply the macOS quarantine attribute to downloaded files before they are opened.

    Seen in 1 report
  18. Apply the same class restriction on the parser side as on the serialiser side.

    Seen in 1 report
  19. Avoid using BinaryFormatter and SoapFormatter for deserialising untrusted remoting messages.

    Seen in 1 report
  20. Avoid using Python pickle for cache serialisation or restrict access to the cache store.

    Seen in 1 report
  21. Bind cache upload links to a single upload and make them non-reusable.

    Seen in 1 report
  22. Block access to boxed primitive type TYPE fields in the JEXL sandbox.

    Seen in 1 report
  23. Block access to constructor properties and the Function constructor in expression evaluators.

    Seen in 1 report
  24. Block and remove the vulnerable AEAD module as a temporary mitigation, then patch the kernel and reboot.

    Seen in 1 report
  25. Block HTTP dependency downloads and change defaults to encrypted transport with integrity checks.

    Seen in 1 report
  26. Block re-installation once installed and use a safe serialisation format for configuration files.

    Seen in 1 report
  27. Build the application with Hardened Runtime and disable the Allow DYLD Environment Variables entitlement.

    Seen in 1 report
  28. Call CertUtil.exe using its full path instead of relying on the current working directory.

    Seen in 1 report
  29. Change default admin credentials and do not expose the device online.

    Seen in 1 report
  30. Check the full class hierarchy, including superclasses and interfaces, against the blocklist.

    Seen in 1 report
  31. Check the length of the target MAC parameter before copying it into a fixed-size buffer.

    Seen in 1 report
  32. Check the type of the source parameter in the Factory class before using it as a configuration.

    Seen in 1 report
  33. Check the validity and revocation status of signing certificates before running downloaded executables.

    Seen in 1 report
  34. Correct how SMBv1 handles crafted requests.

    Seen in 1 report
  35. Correct how Windows handles objects in memory.

    Seen in 1 report
  36. Detect incoming HTTP connections and close them before executing any code.

    Seen in 1 report
  37. Disable automatic superuser login by default and require credentials.

    Seen in 1 report
  38. Disable dangerous functions in configuration or sandbox execution rather than relying on a name-based blacklist.

    Seen in 1 report
  39. Disable external entity processing in the XML parser.

    Seen in 1 report
  40. Disable the vulnerable parser rather than patching it.

    Seen in 1 report
  41. Disable the Werkzeug debugger in production deployments.

    Seen in 1 report
  42. Do not allow user-controlled template strings to call exported methods on the data object.

    Seen in 1 report
  43. Do not bind-mount hostPath sources read-write into the VM share directory.

    Seen in 1 report
  44. Do not build shell commands from filenames; pass arguments without a shell and sanitise metacharacters.

    Seen in 1 report
  45. Do not check out and build pull request code in a workflow triggered on pull_request_target.

    Seen in 1 report
  46. Do not choose a deserialisation function from the file extension; validate content and warn the user.

    Seen in 1 report
  47. Do not derive API credentials from publicly available identifiers such as MAC addresses.

    Seen in 1 report
  48. Do not deserialise Java objects from server responses without validation.

    Seen in 1 report
  49. Do not evaluate decoded and decrypted environment variables.

    Seen in 1 report
  50. Do not evaluate metadata strings; parse them with a strict parser instead.

    Seen in 1 report