Skip to main content

Wordpress 2.3 Cross Domain Content Insertion

Source:
http://xssworm.blogvis.com/13/xssworm/
0day-inject-exploit-for-wordpress-23-xsswormcom-all
-version-vulnerable-with-no-patch/


There is a serious holes in wordpress 2.3 that can be used with XSS by a blackhat hacker to attack the wordpress administrator and steal cookies from blogmins. This attack is known as 0day because it has just been reported to public and this is first day of public vulnerability, and *0day means 'published.*'

Proof of concept:
http://wordpress-web-blog.com/wp-admin/
index.php?page=wp-slimstat/wp-slimstat.php?panel=1
&fi=/feed/&ff=1&ft=

This attack to be used against wordpress web blog blogmin to steal blogosphere token to hack blogs. Of course we have included exploit code for this bug at the below.

We have looked at coding for wp-slimstat but we cannot see any problem with input validating. Maybe some of the xssworm.com readers can show us where problem is in the php code because we cannot see any porblem here:

�snips:

C:\temp>findstr GET wp-slimstat.php
$myFilterField = intval( $_GET['ff'] );
$myFilterType = intval( $_GET['ft'] );
$myFilterString = $_GET['fi'];
$myFilterInterval = $_GET['fd'];
$myFilterField = intval( $_GET['ff'] );
$myFilterType = intval( $_GET['ft'] );
$myFilterString = $_GET['fi'];
$myFilterInterval = $_GET['fd'];
'.(!empty($myFilterString)?'� '
.__('Reset filters', 'wp-slimstat').'
':").'


value="'.$_GET["panel"].'" />

';

�snips

With programmor using $_GET variable from user into echo into html output maybe php automatic GET validation filtering is not working for security? We are not programmers of php so we cannot see any porblems here as bug are too complex to understand.

Exploit code for perl whitehats included here:

# Wordpress 2.3 0day exploit � http://xssworm.com
#
# A bug exist in wordpress 2.3 that allow hacker to
# steal blog cookie from wordpress blogmin.
#
# To exploit scripting bug the attacker make link
# to URL of slimstat with XSS shellcode and force
# blog admin to hit link by embedding into fish
# email or making blogmin follow interesting links.
# Also hacker can embed into refer or trackback
# to inject scripting into wordpress dashboard or
# make blogmin visit malicious resource when viewing
# he's blog.
#
#
# Status: not patched published 0day vulnerability
Vendor: wordpress.org
# Credit: http://xssworm.com
# Discovery: 1st November 2007
# Exploit developer: Fracesco Vaj (vaj_at_xssworm.com)
#
# Instruction:
# To execute exploit for wordpress you will need perl or linux
#
# Usage:
#
# Execute with perl or linux as:
# perl wordpress-2.3-0day-xss-injection-bug.pl
#
# Hacker will get prompts for target information.
# Please do not use for irresponsible hacking or to make money.
# Disclaimer: XSSWORM.COM is not responsible.
#
#

#use Net::DNS:Simple;
#use Math;
use Socket;

print "Welcome. What is target email address of wordpress blog admin : \n";
my $target = ;
print "ok target is $target\n";
sleep(3);
print "ok What is address of wordpress blog : \n";
sleep(5); my $address = ;
print "ok target is $target\n";
sleep(6);
# print "testing"
print "ok using /wp-admin/?page=wp-slimstat/wp-slimstat.php
?panel=1&ft=SHELLCODE\n";
print "\n\n � CUT OUTPUT HERE � \n\n";
print "HELO xssworm.com\n";
print "RSET\n";
PRINT "MAIL FROM: \n";
print "RCPT TO: <$target>\n";
print "DATA\n"; print "Free x pciture and movies at $address\n";
print "\r\n.\r\nquit\r\n";
print "\n\n � END OF OUTPUT CUT HERE �\n";
print "";
print "Ok now you neeed to cut the exploit above and paste it to:\n";
print "$address : 25 \n";
print "Shellcode by vaj_at_xssworm.com c. 2007\n";
print "End of attack.\n";
print "";
#print "Debug mode on"
#print "XSS initialized"
#payload
sleep(1); return(0);
# snips
#

Please note that this wp-slimstat does not contain any code injection or mysql injection bug vector that is opened to blackkhat attack via transport of xss.

Many thanks for your comments on this vulnerability in wordpress 2.4

Thanks vaj

--
Francesco Vaj [CISSP - GIAC]
CSS Security Researcher
mailto:vaj_at_nospam.xssworm.com
aim: XSS Cross Site
------
XSS Cross Site Scripting Attacks
Web 2.0 Application Security Information Blog (tm) 2007
http://www.XSSworm.com/
------
"Vaj, bella vaj."

Comments

Popular posts from this blog

Edit tiles in Windows 8

If you’ve recently installed or upgraded to Windows 8 and have started customizing programs onto its new Start Menu UI, you’ll notice that the program icons are the same old icons placed in an oversized box. You’ll see the program name under it and will be in awe at  how out of place the newly added icons are with the rest   of the Windows 8 theme. We’ve found a handy program to spruce things up by  creating awesome-looking tiles that match the look of Windows 8 apps  on the Start Menu, something like what you see below. And you can get that look using   OblyTile . First thing’s first, the icons you see above are works from users of deviantART. OblyTile only sets up your tiles; you have to provide the icons or images for the tile. But not to worry, we’ll provide you with  a few links which we’ve found to recreate the look and feel  of the screenshot you see above. Getting Started With OblyTile Run OblyTile (no insta...
How To Speed Up Internet Speed A slow Internet connection can be very annoying when you are trying to do something on the Internet. Here are some steps you can take to fix or improve your connection. Steps   1 Identify what speed you are supposed to be provided by your Internet Service Provider (ISP) . This is important, because your slow connection could be due to a problem on their end, not yours. This should be on your bill. If you don't have a bill handy, you can check the ISP's website or contact them directly to find out. 2 Conduct a  speed test  online . This should get you results close to what your ISP is supposed to provide. If you get a low result, try another computer on your network first. If both get a low result, contact your ISP. If only yours has a problem, the problem lies with the computer. 3 Eliminate needless programs . Your Internet connection requires memory to be able to be at ...

How to create a logo...

A professional logo can enhance a company, an organization, or a product.  On the other hand, an unprofessional logo can ruin a brand and mar an otherwise good designer’s portfolio. Many logos in use are unprofessional and carry all the tell-tale marks of an amateur or a beginner. Everyone thinks they can design a great logo, but simply knowing your way around Photoshop is not enough. Here are some insights into the process and workflow of effective and modern logo design.  With these tips and your creativity, you can make your logo designs shine with the very best . 1. Design: Sketch and Brainstorm A lot of beginners jump right onto the computer to create a logo . However, more often than not, a lot of time is spent fiddling with special effects and filters. While this can be useful, it usually means that the thoughtful design and artistry of the logo itself has taken a back seat. A better way to start is to get a fresh sheet of paper and a pencil . Think ab...