Sobelow.RCE.Compile (Sobelow v0.18.1)
View SourceCode execution through compilation and loading
Code.compile_string/1,2 and Code.compile_quoted/1,2 execute code while
compiling it. Code.compile_file/1,2 and Code.require_file/1,2 compile
and execute a source file; requiring a file only once does not make its
contents trusted. Use these APIs only with trusted application code.
Dynamic source and quoted expressions receive high confidence for direct controller parameters, medium for other controller values and low outside controllers. File selection receives medium confidence for controller parameters and low otherwise, since a dynamic path alone does not prove attacker control of file contents. Relative search roots are included; source filenames used only for diagnostics are not treated as code input.
Fully literal inputs are omitted. Computed expressions and attributes are
retained without resolving their values. Existing evaluation checks remain
available separately as RCE.CodeModule.
https://hexdocs.pm/elixir/Code.html#compile_string/2
$ mix sobelow -i RCE.Compile