Cross Site Script Prevention Based on Delimiters

Huilin ZHANG,Guancheng LI,Yu DING,Lei DUAN,Xinhui HAN,Jianguo XIAO
DOI: https://doi.org/10.13209/j.0479-8023.2017.172
2018-01-01
Abstract:The authors propose a practical and accurate cross site script prevention method based on delimiters for UTF-8 encoded web applications. Only trusted delimiters are tainted into corresponding UTF-8 shadow bytes, and these tainted shadow bytes are automatically propagated in web applications and can be directly delivered into output pages. Cross site script is prevented by analyzing the tainted delimiters and HTML context of output pages. A prototype called XSSCleaner is implemented on PHP. The evaluation shows that XSSCleaner can accurately protect web applications from real world cross site script attacks with an average overhead 12.9%.
What problem does this paper attempt to address?