In Elixir, what function is not secure due to RCE risk?
- User
In Elixir, what function is not secure due to RCE risk?
- Assistant
In Elixir, the function you need to be careful with due to the risk of Remote Code Execution (RCE) is
Code.eval_string/3. This function evaluates the given string as Elixir code. If you allow user input to be executed by this function without proper sanitization, an attacker could inject malicious code, which could be executed on the server, leading to severe security vulnerabilities.Here is the signature of the function:
elixir
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.