class101
15-07-05, 12:29
Small patch that I have made if you do want to secure your phpBB forum since 2.0.16 is vulnerable to a small XSS cookie leaking.
This will disable (Useful because phpBB allows only to disable BBcodes at all ..)
2.0.16.patch
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
$replacements[] = $bbcode_tpl['email'];
$text = preg_replace($patterns, $replacements, $text);
#
#-----[ REPLACE WITH ]----------------------------------
#
$replacements[] = $bbcode_tpl['email'];
//$text = preg_replace($patterns, $replacements, $text);
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td><span class="genmed">
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
</span></td>
#
#-----[ REPLACE WITH ]----------------------------------
#
<!-- <td><span class="genmed">
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
</span></td> -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
This will disable (Useful because phpBB allows only to disable BBcodes at all ..)
2.0.16.patch
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
$replacements[] = $bbcode_tpl['email'];
$text = preg_replace($patterns, $replacements, $text);
#
#-----[ REPLACE WITH ]----------------------------------
#
$replacements[] = $bbcode_tpl['email'];
//$text = preg_replace($patterns, $replacements, $text);
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td><span class="genmed">
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
</span></td>
#
#-----[ REPLACE WITH ]----------------------------------
#
<!-- <td><span class="genmed">
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
</span></td> -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM