Remove ability for mods to use HTML in announcements

Admin

AdminAdmin is verified member.

Well-Known Member
Staff member
Administrator
Currently is someone is able to hack into one your of moderator accounts they could use it to launch a XSS assack since they could select the option to use HTML in announcements.

To fix this open modcp/announcement.php

Change

PHP:
print_yes_no_row($vbphrase['allow_html'], 'announcementoptions[allowhtml]', ($announcement['announcementoptions'] & $vbulletin->bf_misc_announcementoptions['allowhtml'] ? 1 : 0));

to

PHP:
//print_yes_no_row($vbphrase['allow_html'], 'announcementoptions[allowhtml]', ($announcement['announcementoptions'] & $vbulletin->bf_misc_announcementoptions['allowhtml'] ? 1 : 0));

All you are doing is commenting it out. You will need to do this each time you upload a new version of vbulletin.
 

Facebook Comments

Similar threads

Admin
Replies
0
Views
10K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
11K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
844
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
679
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
731
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
795
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
716
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
666
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
920
AdminAdmin is verified member.
Admin
Back
Top