New Vulnerability Allows Hackers to Bypass HTTP/2 Security and Launch Arbitrary Cross-Site Scripting Attacks

Security researchers from Tsinghua University have uncovered critical vulnerabilities in modern web browsers that allow attackers to bypass fundamental web security protections and execute arbitrary cross-site scripting (XSS) attacks.

The newly discovered attack vectors, dubbed CrossPUSH and CrossSXG, exploit features in HTTP/2 server push and signed HTTP exchange (SXG) technologies to circumvent the Same-Origin Policy (SOP), a cornerstone mechanism designed to prevent malicious scripts from accessing data across different websites.

Details of CrossPUSH attack and CrossSXG attack
Details of CrossPUSH attack and CrossSXG attack

The vulnerabilities stem from a fundamental mismatch between how browsers define origins versus how HTTP/2 and HTTP/3 protocols determine authority.

While browsers enforce the Same-Origin Policy based on strict URI scheme, host, and port combinations, HTTP/2 considers any domain listed in the SubjectAlternativeName (SAN) of a TLS certificate as having the same authority.

This discrepancy creates a dangerous security gap when combined with shared certificates that contain multiple domains managed by different entities.

The researchers identified two primary attack methods for acquiring shared certificates without sophisticated intrusion capabilities.

The first involves domain reselling, where attackers purchase multiple domains, issue shared certificates for them, then resell the domains while retaining the certificates.

The second method exploits domain takeover vulnerabilities, where attackers seize control of dangling domains pointing to inactive cloud services or expired resources, then issue certificates that include both compromised and attacker-controlled domains.

Widespread Browser Vulnerabilities

The research team’s comprehensive testing revealed alarming results across the browser ecosystem.

Their measurements found that 11 out of 14 popular browsers, including widely-used browsers like Chrome and Edge, are vulnerable to at least one of these attacks.

The scope extends beyond desktop browsers, with numerous popular mobile applications including Instagram and WeChat also affected by these vulnerabilities.

The practical impact is substantial, with the researchers identifying over 10,000 domains in the Tranco Top 1 Million that have been resold and potentially exposed to these attacks.

attack duration time
Attack duration time

Additionally, approximately 5,000 dangling domains, including a subdomain of windowsupdate.com, could be exploited for cross-origin web attacks.

Perhaps most concerning, about 85% of Tranco Top 1,000 domains are included in shared certificates with domains ranked outside the Top 1 Million, creating dependency chains that allow attackers to target high-profile websites through less secure sites.

Response and Mitigation Efforts Underway

The researchers have proposed four mitigation approaches and continue working with browser vendors to address these fundamental security flaws that threaten the integrity of web security mechanisms millions of users rely on daily.

The research team has responsibly disclosed their findings to affected vendors and received acknowledgments from major technology companies including Huawei, Baidu, and Microsoft.

The vulnerabilities are particularly severe because they remain effective even against websites that implement HTTPS best practices and strict Content Security Policy (CSP) measures.

The attacks can extend far beyond simple XSS, enabling cookie manipulation, malicious file downloads, and other cross-origin web attacks across all domains listed in a compromised shared certificate.

Find this Story Interesting! Follow us on LinkedIn and X to Get More Instant Updates.

Mayura
Mayura
Mayura Kathir is a cybersecurity reporter at GBHackers News, covering daily incidents including data breaches, malware attacks, cybercrime, vulnerabilities, zero-day exploits, and more.

Trending News

Related Stories