The Tangled Web: A Guide to Securing Modern Web Applications