Client-side attacks against web applications such as cross-site scripting (XSS) and cross-site request forgery (CSRF) are very popular. CSRF forges requests on behalf of the victim, whereas XSS executes scripts on the victim's workstation to gain user rights. XSS, on the other...