CAXSS: A Cookie Authentication Scheme Against XSS Attacks for HTTPS
Although cookies introduced as session authentication tokens in Hypertext Transfer Protocol (HTTP) resolve its stateless limitation, their static nature introduces vulnerabilities to cross-site scripting (XSS) attacks. Attackers exploit unfiltered user input to inject malicious scripts into web applications, enabling theft of user cookies for session hijacking. While HTTP Secure (HTTPS) employs Transport Layer Security (TLS) to encrypt communications, it remains susceptible to client-side script injection vulnerabilities that bypass TLS protections. Current cookie session hijacking protections focus on credential security but remain vulnerable to link-layer attacks. To address this challenge, we propose a novel Cookie Authentication Scheme against XSS Attacks (CAXSS) for HTTPS. The CAXSS scheme uses signatures to the messages exchanged by the original HTTPS protocol to achieve mutual identity authentication. Specifically, clients authenticate cookies using digital signatures based on Elliptic Curve Cryptography (ECC), while servers reject unsigned cookies. This approach ensures that only legitimate clients can generate valid cookie credentials, thwarting unauthorized cookie reuse. The results of security analysis and performance evaluations demonstrate that the CAXSS scheme is secure and effective.
Authors
- Maode Ma
- Yingjuan Shi
- Hui Wang
Institutions
- Zhejiang Normal University (CN)
- Jinhua Academy of Agricultural Sciences (CN)
- Qatar University (QA)
Publication Details
- Journal
- Electronics
- Published
- 2025-12-24
- DOI
- https://doi.org/10.3390/electronics15010082
- Primary Topic
- Web Application Security Vulnerabilities
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Jinhua Science and Technology Bureau