Improved CSRFGuard for CSRF attacks defense on Java EE platform
Title | Improved CSRFGuard for CSRF attacks defense on Java EE platform |
Publication Type | Conference Paper |
Year of Publication | 2014 |
Authors | Jinxin You, Fan Guo |
Conference Name | Computer Science Education (ICCSE), 2014 9th International Conference on |
Date Published | Aug |
Keywords | Browsers, 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. |
DOI | 10.1109/ICCSE.2014.6926635 |
Citation Key | 6926635 |
- Java
- XSS
- Welding
- Servlet filter
- security of data
- security
- script tags
- JavaScript event delegation mechanism
- Java EE platform
- Java EE
- Browsers
- HTML
- Event Delegation
- custom response wrapper
- CSRFGuard
- CSRF attack defense
- cross-site scripting
- cross-site request forgery attack
- cross-site request forgery
- Computers