Visible to the public Improved CSRFGuard for CSRF attacks defense on Java EE platform

TitleImproved CSRFGuard for CSRF attacks defense on Java EE platform
Publication TypeConference Paper
Year of Publication2014
AuthorsJinxin You, Fan Guo
Conference NameComputer Science Education (ICCSE), 2014 9th International Conference on
Date PublishedAug
KeywordsBrowsers, Computers, cross-site request forgery, cross-site request forgery attack, cross-site scripting, CSRF attack defense, CSRFGuard, custom response wrapper, Event Delegation, HTML, Java, Java EE, Java EE platform, JavaScript event delegation mechanism, script tags, security, security of data, Servlet filter, Welding, XSS
Abstract

CSRFGuard is a tool running on the Java EE platform to defend Cross-Site Request Forgery (CSRF) attacks, but there are some shortcomings: scripts should be inserted manually, dynamically created requests cannot be effectively handled as well as defense can be bypassed through Cross-Site Scripting (XSS). Corresponding improvements were made according to the shortcomings. The Servlet filter was used to intercept responses, and responses of pages' source codes were stored by a custom response wrapper class to add script tags, so that scripts were automatically inserted. JavaScript event delegation mechanism was used to bind forms with onfocus and onsubmit events, then dynamically created requests were effectively handled. Token dynamically added through event triggered effectively prevented defense bypassed through XSS. The experimental results show that improved CSRFGuard can be effective to defend CSRF attacks.

DOI10.1109/ICCSE.2014.6926635
Citation Key6926635