Skip to content

In-depth lesson · RCE

Root causes

Every point the RCE reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1,401 to 1,450 of 2,519
  1. The code used a user-supplied offset field as the length for a memory copy without checking it against the fixed buffer size.

    Seen in 1 report
  2. The code used Ruby string interpolation to build command lines passed to Cocaine::CommandLine.new, which does not escape arguments, instead of using Cocaine's safe placeholder and run mechanism.

    Seen in 1 report
  3. The code used strncpy with the length of the attacker-supplied source string instead of the destination buffer size.

    Seen in 1 report
  4. The code used the untrusted COMSPEC variable as the executable path for execFile instead of a fixed path to the command interpreter.

    Seen in 1 report
  5. The code used yaml.load with Loader=yaml.Loader, which can construct arbitrary Python objects instead of only safe data types.

    Seen in 1 report
  6. The code validated attribute names but not their values, then used those values directly in require statements.

    Seen in 1 report
  7. The command generator for the Windows shell did not escape newline characters in request bodies.

    Seen in 1 report
  8. The command palette allowed running tasks that spawn a terminal, bypassing the UI restriction that hid it.

    Seen in 1 report
  9. The command-line parser searched the raw command line for a switch token instead of parsing tokens properly, so a quoted program path derived from the manifest name could inject switches.

    Seen in 1 report
  10. The commit parameter was not validated before use in a shell command, allowing option injection.

    Seen in 1 report
  11. The company had not reserved its internal npm scope on the public registry, leaving the namespace open to hijacking.

    Seen in 1 report
  12. The compiler processes unicode escapes before parsing, so an escaped quote terminates a string literal.

    Seen in 1 report
  13. The ConditionsController's beforeAction passed user-supplied body parameters into Craft::configure and createObject, letting an unauthenticated user instantiate arbitrary classes.

    Seen in 1 report
  14. The config file parameter allowed arbitrary file writes with no whitelist and weak permissions.

    Seen in 1 report
  15. The configuration endpoint accepted user-supplied runtime flags and appended them unvalidated to a host process command line.

    Seen in 1 report
  16. The configuration endpoint allowed setting executable paths without restriction, so a remote user could make the server launch arbitrary programs.

    Seen in 1 report
  17. The configuration generator did not properly parse GRUB commands and copied entire lines starting with certain commands, allowing injection via a semicolon.

    Seen in 1 report
  18. The configuration parser used unsafe YAML deserialization, and the API lacked authentication and CSRF protection.

    Seen in 1 report
  19. The configuration writer does not quote values containing carriage returns.

    Seen in 1 report
  20. The consent prompt is rendered with prompt_toolkit's HTML() on a string containing an untrusted tool argument, so markup is parsed instead of shown.

    Seen in 1 report
  21. The console execute-script endpoint trusted a client-supplied sandboxed flag instead of enforcing the sandbox server-side.

    Seen in 1 report
  22. The console exposed a full R interpreter with the system function available and no sandboxing or authorisation check.

    Seen in 1 report
  23. The console was exposed without authentication and included command-execution features enabled by default.

    Seen in 1 report
  24. The constant pool count was truncated to 16 bits when the class file was serialised while the full pool was still written, so entries were reinterpreted as fields.

    Seen in 1 report
  25. The Consul servers were publicly accessible and their ACL rules were misconfigured, allowing unauthenticated or weakly authenticated command execution.

    Seen in 1 report
  26. The content script did not validate message origin and the background script forwarded messages to a native app that used input to load a library.

    Seen in 1 report
  27. The control plane trusted kubeconfig files from multicluster secrets and executed credential plugins without restricting authentication methods.

    Seen in 1 report
  28. The controller and view map parts of the URL were parsed differently, so their state could be desynchronised.

    Seen in 1 report
  29. The controller did not sanitise the path field before inserting it into the generated configuration, allowing directive injection.

    Seen in 1 report
  30. The controller failed to validate or sanitise ingress annotations and path fields, allowing configuration injection or path traversal.

    Seen in 1 report
  31. The controller inserted the ingress path value into the generated proxy configuration without escaping or validating it.

    Seen in 1 report
  32. The conversion process allowed arbitrary commands, including file reads and shell execution, without sandboxing.

    Seen in 1 report
  33. The converter reflectively instantiated any class named in attacker-controlled schema metadata without restricting it to safe types.

    Seen in 1 report
  34. The converter script wrote POST values into a PHP source file without escaping them.

    Seen in 1 report
  35. The Copilot component processed prompts from web content without confirming with the user or checking where the request came from.

    Seen in 1 report
  36. The COPY FROM PROGRAM feature did not separate database privileges from operating system privileges.

    Seen in 1 report
  37. The copy operation validated only the folder name, not the individual files inside it, so blacklisted files slipped through.

    Seen in 1 report
  38. The COPY TO/FROM PROGRAM feature was enabled and usable by superusers or members of the program execution role.

    Seen in 1 report
  39. The copy trusted the source tensor's computed byte size without checking the destination buffer was large enough.

    Seen in 1 report
  40. The copy-as-cURL feature did not escape the HTTP method when generating the command, so shell metacharacters survived into the terminal.

    Seen in 1 report
  41. The copyContent command passes a user-supplied path to file operations without validating or restricting it, allowing path manipulation that leads to code execution.

    Seen in 1 report
  42. The core package pinned an outdated, vulnerable version of the vm2 sandbox library.

    Seen in 1 report
  43. The country code value from the JSON body was formatted into a shell command without sanitisation.

    Seen in 1 report
  44. The course upload page lacked proper access control, and the package was extracted onto the server with the script file reachable.

    Seen in 1 report
  45. The crash handler parsed process status files without handling newline characters in the process name and did not correctly verify the target directory.

    Seen in 1 report
  46. The crash handler wrote a permissive DACL to a predictable file in a user-writable directory and later deleted files as SYSTEM without proper access checks.

    Seen in 1 report
  47. The CreateObjectHandler COM object deserialised untrusted data without validation.

    Seen in 1 report
  48. The cronjob command value was passed straight to a command execution function with no sanitisation.

    Seen in 1 report
  49. The crop feature passed user-controlled input directly into server-side image processing and shell commands without validation.

    Seen in 1 report
  50. The Crowd application was not updated to a patched version and stayed vulnerable to a known unauthenticated flaw.

    Seen in 1 report