Why is "Full HTML" Input Format Dangerous?

10.13.2008

This is a comment I submitted on my localhost site, with full HTML allowed for anonymous users. The fact that "XSS" came up in an alert means I'm vulnerable to attack.

If you want your skin to crawl more, visit the XSS Cheatsheet, which offers a number of techniques for XSS attacks. If you're ever in doubt, no better test than to attempt to hack yourself.

AttachmentSize
xss.gif8.39 KB

Comments

alert("you've been

alert("you've been hacked")

--

hmm - didnt work :(

heh, won't comment on whether

heh, won't comment on whether it would have worked last time I audited this site's security.

haha :)

haha :)

Hi, scary isnt it? This is a

Hi, scary isnt it? This is a common problem and it usually happens to people who are uninformed. I think that MySpace got hacked like this. I sat through a seminar once and this was one of the topics on the agenda.

You can do SQL injection this too cant you?

anyway... cheerio - Im out to check how secure my sites are. ;)

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options