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 351 to 400 of 450
  1. Stop the request on a failed password change instead of returning a user role object.

    Seen in 1 report
  2. The vendor declined to fix the issue, so the only mitigation is restricting network access to the component.

    Seen in 1 report
  3. The vendor removed the vulnerable code.

    Seen in 1 report
  4. Treat the newline character as unsafe in the safeSystemCmdArg2 function.

    Seen in 1 report
  5. Trim the namespace attribute in Register directives during safe-list verification.

    Seen in 1 report
  6. Update glibc to a version that fixes the iconv buffer overflow when converting to the ISO-2022-CN-EXT charset.

    Seen in 1 report
  7. Update ImageMagick and restrict PostScript handling.

    Seen in 1 report
  8. Update the embedded browser and keep its sandbox enabled.

    Seen in 1 report
  9. Update the library to a patched release.

    Seen in 1 report
  10. Update the recommended nginx configuration and PHP-FPM version to avoid the known bug.

    Seen in 1 report
  11. Update the Simple File List plugin to a version that restricts file uploads.

    Seen in 1 report
  12. Update to the patched version.

    Seen in 1 report
  13. Upgrade React, the RSC packages and Next.js to patched versions, rebuild and redeploy, and add temporary WAF rules or restrict RSC endpoints.

    Seen in 1 report
  14. Use a character allowlist and privilege separation so log content never reaches a shell command.

    Seen in 1 report
  15. Use a privileged, non-user-writable folder and validate ownership and permissions before extracting.

    Seen in 1 report
  16. Use a proper allow-list or safe evaluation method instead of str_replace sanitisation.

    Seen in 1 report
  17. Use a random per-instance secret key and validate custom filter queries.

    Seen in 1 report
  18. Use a random, signed reset token rather than a value derived from the password hash.

    Seen in 1 report
  19. Use a safe YAML loader instead of the unsafe load function.

    Seen in 1 report
  20. Use a safe YAML loader that does not allow arbitrary object types.

    Seen in 1 report
  21. Use a strong secret token and disable unsafe deserialization in Spring Boot DevTools.

    Seen in 1 report
  22. Use absolute paths in service commands and enforce authorisation checks.

    Seen in 1 report
  23. Use an allowlist of safe file types instead of a blocklist of dangerous extensions.

    Seen in 1 report
  24. Use an encrypted channel for firmware downloads.

    Seen in 1 report
  25. Use an explicit allow-list of safe methods rather than a prefix-based check for read-only methods.

    Seen in 1 report
  26. Use bounded copying instead of sprintf into a fixed-size stack buffer.

    Seen in 1 report
  27. Use bounded string handling, enable stack canaries and build with PIE.

    Seen in 1 report
  28. Use Cocaine's safe placeholder and run mechanism instead of string interpolation to build command lines.

    Seen in 1 report
  29. Use correct string comparisons in validation methods.

    Seen in 1 report
  30. Use real server authentication instead of a hardcoded symmetric key, and add bounds checks to packet and DNS-name parsers.

    Seen in 1 report
  31. Use separate session stores for different purposes and do not let the client choose the session key.

    Seen in 1 report
  32. Use the wide-character Windows API to retrieve the command line instead of the ANSI API.

    Seen in 1 report
  33. Use unpredictable nonces, authenticate API functions and prevent regex rules from modifying source code.

    Seen in 1 report
  34. Use unpredictable scratch bucket names and verify ownership before use.

    Seen in 1 report
  35. Validate a remote JAR before loading it.

    Seen in 1 report
  36. Validate and escape packet-capture filter values before passing them to system calls.

    Seen in 1 report
  37. Validate and escape the password parameter before embedding it in a Python command string.

    Seen in 1 report
  38. Validate and escape the serial number before concatenating it into a key generation command.

    Seen in 1 report
  39. Validate and escape user input before building commands run through popen.

    Seen in 1 report
  40. Validate and escape user-supplied values before inserting them into shell command strings.

    Seen in 1 report
  41. Validate and re-encode uploaded content and do not store uploads in a directory that executes handlers.

    Seen in 1 report
  42. Validate and restrict the types that can be instantiated during deserialisation.

    Seen in 1 report
  43. Validate and restrict types during deserialisation of AMF messages.

    Seen in 1 report
  44. Validate and restrict types during deserialisation of client-supplied data.

    Seen in 1 report
  45. Validate and restrict URLs supplied to the API endpoint.

    Seen in 1 report
  46. Validate and sign the ViewState parameter, and validate the datasource parameter before using it in a JNDI lookup.

    Seen in 1 report
  47. Validate annotation values and reject duplicate YAML keys.

    Seen in 1 report
  48. Validate attachment filenames and restrict file types when writing uploaded data to server paths.

    Seen in 1 report
  49. Validate cache file data before deserialising it and restrict which objects may be reconstructed.

    Seen in 1 report
  50. Validate data received from the cloud tenant before applying it on-premises.

    Seen in 1 report