|
|
It appears you are using a browser that is not based on Internet Explorer, this means you are not viewing the web as good as you should be. Other browsers might try to immitate Internet Explorer, but none can parse the web as it should like Internet Explorer can. So view the web as it was meant to be with Avant Browser!
|
| |
|
|
All times are GMT - 5 Hours
|
|
 |
Mon Feb 06, 2006 10:35 pm |
 |
Author |
Message |
Schattenjaeger New TweakeR

Joined: 18 Aug 2005 Posts: 8 Words Posted: 1,033 Average Post: 129.13
|
| Post subject: phpBB Security Bug-since Aug 2005 unpatched-now with exploit |
|
|
Look at http://phpbb-tweaks.com/topics.html-t-8074
great work.. this bug is still unpatched, in phpBB Security 1.0.3 you will find:
| Code: |
function phpBBSecurity_IP()
{
if(getenv('HTTP_CLIENT_IP') && strcasecmp(getenv('HTTP_CLIENT_IP'), 'unknown'))
return getenv('HTTP_CLIENT_IP');
elseif (getenv('HTTP_X_FORWARDED_FOR') && strcasecmp(getenv('HTTP_X_FORWARDED_FOR'), 'unknown'))
return getenv('HTTP_X_FORWARDED_FOR');
elseif (getenv('REMOTE_ADDR') && strcasecmp(getenv('REMOTE_ADDR'), 'unknown'))
return getenv('REMOTE_ADDR');
elseif (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], 'unknown'))
return $_SERVER['REMOTE_ADDR'];
else
return 'unknown';
}
|
This silly piece of code is from http://de2.php.net/manual/de/function.getenv.php#35496 and is totally useless and vulnurable in a internet environment. You don't know much about the HTTP-protocoll, don't you? You trust a HTTP-Header but you don't know that EVERY USER can set this header? That's dangerous.
I'm able to attack a site without getting banned and i've a know members/admins IP-adresses i've able to ban all the members/admins. this is a great "feature"!
Try it (on Linux/Unix-Systems):
Content Removed.
Of course you can replace 127.0.0.1 with any IP adress but don't use your current ip-address
You want to fix it? Yeah... replace the whole function with this secure piece of code:
| Code: |
function phpBBSecurity_IP()
{
return $_SERVER['REMOTE_ADDR'];
}
|
Have a nice day
BTW: What should the "return 'unknown';" do in this code? .. hey a http-connection is a tcp/ip-connection and is connection-oriented! you ALWAYS have a real-ip-address.. otherwise the whole internet whouldn't work
PS: I know, you want to protect the connections over a proxy but keep in mind that this isn't possible and this is not your problem! |
|
| Post #1 |
|
|
 |
Tue Feb 07, 2006 1:24 am |
 |
 |
Tue Feb 07, 2006 7:59 am |
 |
Author |
Message |
aUsTiN Webmaster


Joined: 05 Jan 2005 Posts: 3684 Words Posted: 144,671 Average Post: 39.27 Location: USA
|
| Post subject: |
|
|
I really dont see a security risk in there, all i see is a way for people to not get banned, which would be annoying. I do remember that old post, just forgot about it, i am rather busy & do forget things.
"....You don't know much about the HTTP-protocoll, don't you? You trust a HTTP-Header but you don't know that EVERY USER can set this header? ...."
So i get busy, forget things, & all of a sudden im an idiot. LoL, well, here it is simply put, dont use it. It doesn't bother me either way. Its gonna catch the exploit regardless of a fake IP or not. It just wont ban the right IP. |
|
| Post #3 |
|
|
 |
Tue Feb 07, 2006 8:13 am |
 |
Author |
Message |
aUsTiN Webmaster


Joined: 05 Jan 2005 Posts: 3684 Words Posted: 144,671 Average Post: 39.27 Location: USA
|
| Post subject: |
|
|
| volf wrote: | | If this is indeed true then why post it in public instead of just pming austin? |
I wont give my opinion on why people feel the need to do that. None the less, i removed the content of the post that matters & posted a patch to remove the HTTP section of the function. |
|
| Post #4 |
|
|
 |
Wed Feb 08, 2006 5:06 pm |
 |
 |
Wed Feb 08, 2006 5:06 pm |
 |
 |
Wed Feb 08, 2006 5:08 pm |
 |
 |
Wed Feb 08, 2006 5:12 pm |
 |
 |
Wed Feb 08, 2006 5:14 pm |
 |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
Protected by phpBB Security © phpBB-TweakS phpBB Security Has Blocked 3,237 Exploit Attempts.
· Archive · Sitemap: Index · Sitemap: Forums · Sitemap: Topics · Sitemap: Posts ·
:: [ Load Time: 2.9 Seconds ] :: [ 30 Queries ] :: [ 3,770 Page(s) Viewed Today ] :: :: [ Todays Queries: 105,698 ] :: [ Highest Load: 1,396,429 Queries On May. 08, 2007 ] :: :: [ SQL Load: 61% Time: 1.8 ] :: [ PHP Load: 39% Time: 1.1 ] :: [ Debug: On ] :: [ GZIP: Enabled ] :: :: The server last rebooted 80 days, 2 hours, 42 minutes, 15 seconds ago. ::
|
|
|