Protecting Incorrectly Implemented Web Applications From Online Adversaries