Sobelow.DOS.Consult (Sobelow v0.18.1)
View SourceAtom exhaustion through Erlang term files
:file.consult/1 and :file.path_consult/2 parse Erlang terms from a
text file. Untrusted contents can create arbitrary atoms and exhaust VM
resources. These functions have no :safe option. They parse terms;
they do not evaluate arbitrary expressions like :file.eval/1.
This check reports dynamic filenames and search directories. Controller parameters influencing file selection receive medium confidence; other dynamic paths receive low confidence. A dynamic path does not establish that an attacker controls the file contents.
Only consult trusted application files. Use a format and decoder that do not create atoms for uploaded or downloaded data. Fully literal paths are omitted, but a fixed path may still contain untrusted data. This check does not trace file writes or verify ownership and permissions.
Ignore this check with:
$ mix sobelow -i DOS.Consult