Allowing HTML: risk of hacking?

Allowing HTML: risk of hacking?

Jesse Thorstad -
回帖数:1

Greetings, Moodlers! I manage a couple of different websites. One of them has a guestbook that was recently hacked. Well, hijacked would probably be a better term. Our guestbook allowed HTML code to be added to posts. Our hacker put some HTML in a post that did some crazy re-direct, so nobody could get to our guestbook, and people were directed to his whacky website.

So, now I'm wondering if my Moodle site is vulnerable to such an attack, since HTML can be added to posts and stuff. Of course, he'd have to create an account and such before getting access, which he's probably not patient enough to do, but what if? Could a registered user hijack the site with HTML code? Is it best to not have HTML enabled?

I like to use HTML in my posts of assignments and such.

Just curious!

-Jesse

回复Jesse Thorstad

Re: Allowing HTML: risk of hacking?

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
We have a spent a lot of time developing processes to clean the HTML that users can enter to make it safe.  I feel quite confident that all the loopholes are closed.  If you discover any new tricks please report them ASAP to Moodle Security.