Sobelow.RCE.File (Sobelow v0.18.1)
View SourceCode execution through Erlang files
:file.eval/1,2, :file.script/1,2, :file.path_eval/2 and :file.path_script/2,3 read and execute Erlang expressions from a file. Only execute trusted application files. Avoid selecting executable files using request input, uploaded files or attacker-writable directories.
Dynamic filenames and search directories receive medium confidence when they refer to controller parameters, and low confidence otherwise. A dynamic path does not prove attacker control over the file's contents. Bare function captures receive low confidence because their arguments and eventual invocation are unknown. Each call produces at most one finding.
Fully literal file selections are omitted. An absolute literal filename ignores search directories, using the scanning host's path semantics. Fixed paths can still contain untrusted data: this check does not trace file writes, validate permissions, resolve dynamic paths or analyze the contents of scripts. Bindings are not treated as filenames.
Unlike :file.consult, these functions execute expressions rather than merely reading terms.
https://www.erlang.org/doc/apps/kernel/file.html#eval/1
$ mix sobelow -i RCE.File