Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Blog Module

Discuss the Blog Module.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Posted Spam -> Blog module hacked!


35 Posts   4711 Views


8 July 2009 at 1:43am Community Member, 787 Posts

Hmmm... that is interesting. ;-)

Thanks for the quick fix Banal !


8 July 2009 at 2:11am (Last edited: 8 July 2009 2:11am), Community Member, 901 Posts

Hi cliersch

The patch fixes the issue for the version in trunk. In trunk, there's a helper method called IsOwner that checks for permissions, while in the official release, Permission::check('ADMIN') was used.
They do more or less the same thing.

If you got the IsOwner method in your BlogHolder Class, then you should be safe to apply the patch I provided. If you want to check the vulnerability, go ahead... use this file I attached (it's a simple html form. You should replace in the source code with your website Using this form, you can send blog posts to your site without logging in.
If you apply the patch, this is no longer possible.


8 July 2009 at 2:58am Community Member, 75 Posts

Hi banal! Thank you very much for the quick help! I checked my the Website with your HTML Post Form. It is secured! Postings like these are not longer allowed! Great work! :-)
I'm goinig to update now all our sites...
Guess this is going to be part of the next blog release.


8 July 2009 at 3:26am Community Member, 901 Posts

Oh dear. Out of curiosity I checked if this works with and indeed it did...

Some admin fix this please... and remove my "proof of concept" html file, as it would probably do more harm than good.


8 July 2009 at 5:27am Community Member, 787 Posts

whoops... did you mail Silverstripe about this already ?


8 July 2009 at 6:04am Community Member, 901 Posts

Yeah.. I tried to get in touch with them. But most likely they're all sleeping :/


8 July 2009 at 8:47am Community Member, 604 Posts

Ouch. Well at least it was finally caught before rampant damage was caused.

Can I suggest Banal's fix be put in the "Announcements" section of the "Blog Module" forum, with a link to this thread?

Well done guys and gals.



8 July 2009 at 10:16am (Last edited: 8 July 2009 11:12am), Administrator, 685 Posts

Hi everyone,

Thanks for everyone's help in getting to the bottom of this issue. We have committed a fix for this to the SVN trunk of blog. If you are using trunk, the best thing to do now is to update to the latest revision of trunk - r81263.

For those of you on version 0.2.0 of blog, we will be releasing an 0.2.1 release in the next few hours. The 0.2.1 release will be the same as 0.2.0 except for this fix.