1
   

phpBB vulnerability and fix (asterisks in user names)

 
 
Reply Sun 21 Mar, 2004 06:09 pm
Asterisks in usernames are a low level vulnerability. Because it serves as a wildcard the search for the member's post can slow the board to a crawl if search engines find the usernames.

I've reported this to phpBB, but I do not know what they will do about it so I'll release a code snippet to fix this here.

Note: The search can still be manually called but the following fix will at least prevent registration of asterisks as usernames and thusly prevent search engines from trying to spider the asterisk search.

in includes/functions_validate.php

Code:find

// Don't allow " and ALT-255 in username.
if (strstr($username, '"') || strstr($username, '"') || strstr($username, chr(160)))

replace with

// Don't allow ", * and ALT-255 in username.
if (strstr($username, '"') || strstr($username, '"') || strstr($username, '*') || strstr($username, '%2A') || strstr($username, chr(160)))


Note, I'd like to stress that this is closer to a bug than a serious vulnerability. DoS attacks can be performed on any site and the only real methid to prevent this is on a hardware level.

So this is not to be taken as shoddy security on the part of phpBB, it's just a small issue that can be prevented.
  • Topic Stats
  • Top Replies
  • Link/Embed
Type: Discussion • Score: 1 • Views: 485 • Replies: 0
No replies

 
 

Related Topics

THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
how to earn money in internet - Discussion by rizwanaraj
There is no Wisdom in Crowds - Discussion by ebrown p
CSS Border style colors - Question by meesa
Parallel Processing in PHP - Discussion by alirizwan
 
  1. able2know
  2. » phpBB vulnerability and fix (asterisks in user names)
Copyright © 2009 Horizontal Verticals :: Page generated in 0.33 seconds on 11/28/2009 at 06:51:38 Top End