Javascript
Last updated
Last updated
If your injected code is HTML-escaped, you can use backticks ` to get strings through. Just be aware that these strings are templates, and will be interpolated.
A function's .toString()
renders its full source code, including comments!
The host page isn't supposed to communicate with other domains. If you spawn an iframe
and change some DOM in the host, it will be inherited in the guest. Oops.