Browser based attack vectors and how to protect against them