$500 Bounty: DOM-Based XSS in Gatecoin’s Charting Library
Gatecoin的charting_library因动态加载JavaScript存在DOM XSS漏洞,攻击者通过URL片段参数注入脚本代码,绕过安全防护措施并实现账户控制,该漏洞获得500美元奖励。 2025-7-21 05:29:25 Author: infosecwriteups.com(查看原文) 阅读量:21 收藏

A critical oversight in dynamically loaded JavaScript enabled a $500 DOM XSS attack — here’s how it worked and how you can find similar issues.

Monika sharma

In the world of client-side vulnerabilities, few bugs are as silently powerful as DOM-based Cross-Site Scripting (XSS). Unlike traditional reflected or stored XSS, DOM XSS resides entirely in the client’s browser, exploiting the way JavaScript handles untrusted input — often bypassing WAFs, CSPs, and even bug bounty scanners.

In this report, we’ll explore how a critical DOM XSS flaw in Gatecoin’s charting_library allowed an attacker to inject and execute arbitrary JavaScript code by manipulating a URL fragment. The bug was awarded $500, and it perfectly showcases how improper handling of dynamic script imports can lead to full account compromise.

The vulnerable endpoint was located at:

<https://gatecoin.com/widget-trade/assets/charting_library/static/tv-chart.html>

This page took a URL fragment parameter called indicatorsFile and directly passed it into $.getScript(), a jQuery method that loads…


文章来源: https://infosecwriteups.com/500-bounty-dom-based-xss-in-gatecoins-charting-library-e21e40c4f270?source=rss----7b722bfd1b8d--bug_bounty
如有侵权请联系:admin#unsafe.sh