This project is inspired by the work of slekies, kkotowicz, and sirdarckcat in their Black Hat USA 2017 talk, “Breaking XSS Mitigations via Script Gadgets” (paper, slides, video, github).
GMSGadget (Give Me a Script Gadget) is a collection of JavaScript gadgets that can be used to bypass XSS mitigations such as Content Security Policy (CSP) and HTML sanitizers like DOMPurify.
It’s important to note that this is not a list of exploits. The gadgets listed here are either patched vulnerabilities or intended JavaScript behaviors that can be leveraged to bypass HTML restrictions.
Your contributions are welcome! Whether it’s submitting new gadgets, improving documentation, or reporting issues, feel free to get involved. Check out the contribution guidelines to get started.
Maybe you? 👀
This project uses the GTFOBins website template as a base. Big thanks to its creators for the clean and effective design!