Analysis of Vulnerabilities in The Content Security Policy Standard to Enhance Website Security
This article analyzes the vulnerabilities of the Content Security Policy (CSP) standard with the aim of improving website security. It highlights that this standard has vulnerabilities that enable attackers to successfully execute attacks by injecting malicious code into web pages. The relevance of studying CSP vulnerabilities to enhance website protection is substantiated. The primary aspects of implementing web resource protection using the CSP standard are discussed. The article outlines the most well-known techniques for bypassing the directives of this standard. It describes the process of executing an XSS attack using the "unsafe-inline" directive. It is revealed that such an attack organization allows the interception of user data without detection by users or security administrators. The conclusion is made that the use of the unsafe-inline directive by developers does not provide an adequate level of protection against XSS attacks. As an alternative, the implementation of a more effective CSP policy, configured in accordance with the recommendations of information security specialists, is proposed.
Singh, M., & Chauhan, A.S. (2016). DOM BASED REFLECTED XSS ATTACK USING SOP.
Jasmine M. S., Devi K., George G. Detecting XSS based web application vulnerabilities //International Journal of Computer Technology & Applications. – 2017. – T. 8. – No. 2. – pp. 291-297.
Yusof I., Pathan A. S. K. Mitigating cross-site scripting attacks with a content security policy //Computer. – 2016. – T. 49. – No. 3. – pp. 56-63.
Golinelli M., Bonomi F., Crispo B. The Nonce-nce of Web Security: An Investigation of CSP Nonces Reuse //European Symposium on Research in Computer Security. – Cham: Springer Nature Switzerland, 2023. – pp. 459-475.
Content Security Policy (CSP) [Electronic resource].URL: https://developer.mozilla.org/ru/docs/Web/ HTTP/CSP (Date of access: 08/15/2024)
Weichselbaum L., Spagnuolo M., Janc A. Adopting strict content security policy for XSS protection //2016 IEEE Cybersecurity Development (SecDev). – IEEE, 2016. – pp. 149-149.
Kerschbaumer C., Stamm S., Brunthaler S. Injecting CSP for fun and security //International Conference on Information Systems Security and Privacy. – SCITEPRESS, 2016. – T. 2. – P. 15-25.
Weissbacher M., Lauinger T., Robertson W. Why is CSP failing? Trends and challenges in CSP adoption // Research in Attacks, Intrusions and Defenses: 17th International Symposium, RAID 2014, Gothenburg, Sweden, September 17-19, 2014. Proceedings 17. – Springer International Publishing, 2014. – pp. 212-233.
GitHub - sysmustang/csp-stealer: Tool to retrieve web-page secrets and bypass Content Security Policy [Electronic resource].URL: https://github.com/sysmustang/csp-stealer
Copyright (c) 2024 International Journal of Engineering and Computer Science

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.