Security update

This update fixes the numerous security issues that are present in the extremely sloppy codebase.