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 401 to 450 of 450
  1. Validate DNS responses before processing them.

    Seen in 1 report
  2. Validate download parameters against traversal and sanitise log filter values before shell use.

    Seen in 1 report
  3. Validate file content rather than relying on file headers, and restrict executable file uploads.

    Seen in 1 report
  4. Validate file writes under the navigation directory and restrict which files can execute scripts.

    Seen in 1 report
  5. Validate incoming serialised data before deserialising it.

    Seen in 1 report
  6. Validate input before it is used in a sensitive operation.

    Seen in 1 report
  7. Validate or escape the fileName parameter before passing it to a shell command.

    Seen in 1 report
  8. Validate or restrict which libraries are loaded when handling project files.

    Seen in 1 report
  9. Validate or sandbox plugin code before allowing it to be activated.

    Seen in 1 report
  10. Validate pod-supplied sysctl values before passing them to the pinns utility.

    Seen in 1 report
  11. Validate strings from DHCP requests before passing them to system calls.

    Seen in 1 report
  12. Validate that an 'as' property value is a valid behaviour class or configuration before creating an object.

    Seen in 1 report
  13. Validate the file extension and content of uploaded avatars and store them outside executable paths.

    Seen in 1 report
  14. Validate the filter parameter in diag_routes.php to prevent arbitrary file creation.

    Seen in 1 report
  15. Validate the loading process rather than relying on a blocklist of file names.

    Seen in 1 report
  16. Validate the model name in the pull endpoint.

    Seen in 1 report
  17. Validate the notification email setting with an email-format check rather than a generic string sanitiser.

    Seen in 1 report
  18. Validate the origin header on WebSocket connections and do not connect to attacker-supplied gateway URLs.

    Seen in 1 report
  19. Validate the scheme and destination of user-supplied URLs before passing them to the operating system.

    Seen in 1 report
  20. Validate the SOAPAction header before using it in a system call.

    Seen in 1 report
  21. Validate the source of DLLs loaded from user-writable directories.

    Seen in 1 report
  22. Validate the target path and file type from XML files during firmware updates.

    Seen in 1 report
  23. Validate the timezone value before interpolating it into a shell command.

    Seen in 1 report
  24. Validate the type and content of data deserialised from API requests.

    Seen in 1 report
  25. Validate the type of the __VSTATE form value before deserialisation.

    Seen in 1 report
  26. Validate uploaded file types and extend the disabled-function list to cover process-spawning functions.

    Seen in 1 report
  27. Validate user-controlled input before passing it to PHP's unserialize function.

    Seen in 1 report
  28. Validate user-supplied input before passing it to system calls in the file-copy JSON RPC handler.

    Seen in 1 report
  29. Validate user-supplied input before using it to compile code.

    Seen in 1 report
  30. Validate user-supplied name and email fields before using them in system calls.

    Seen in 1 report
  31. Validate user-supplied namespace data before constructing server objects.

    Seen in 1 report
  32. Validate user-supplied strings before passing them to exec calls.

    Seen in 1 report
  33. Validate user-supplied strings before writing them to configuration files.

    Seen in 1 report
  34. Validate ValueExpression objects deserialized by the AttributesMap class before evaluating them.

    Seen in 1 report
  35. Validate vSMB packet data on the host.

    Seen in 1 report
  36. Validate which cmdlets a policy template's command blocks may contain.

    Seen in 1 report
  37. Validate ZIP contents and extract to a non-web-accessible directory with unpredictable names.

    Seen in 1 report
  38. Verify a cryptographic signature of uploaded application code instead of relying only on a CRC32 check.

    Seen in 1 report
  39. Verify firmware integrity and authenticity before installing it.

    Seen in 1 report
  40. Verify source archive checksums and secure the distribution server against compromise.

    Seen in 1 report
  41. Verify that an object is a genuine Promise rather than relying on a callable then property.

    Seen in 1 report
  42. Verify that IOCTL requests come from kernel mode before invoking function pointers from the input buffer.

    Seen in 1 report
  43. Verify the authenticity of HTTP requests to the ConnectivityService.

    Seen in 1 report
  44. Verify the caller before trusting user-supplied session ID and username parameters in authentication endpoints.

    Seen in 1 report
  45. Verify the deserialized data, not just the class name, and avoid separate validation and connection steps that allow time-of-check/time-of-use flaws.

    Seen in 1 report
  46. Verify the downloaded package's checksum against the expected value before moving or extracting it.

    Seen in 1 report
  47. Verify the integrity and authenticity of uploaded firmware images.

    Seen in 1 report
  48. Verify the integrity of notification data before acting on it.

    Seen in 1 report
  49. Verify the version as well as the signature of updater binaries.

    Seen in 1 report
  50. Warn the user before opening unsafe attachments.

    Seen in 1 report