[Full-disclosure] Xss Vulnerability in EasyMoblog 0.5.1

tal argoni talargoni at gmail.com
Thu Feb 1 18:15:58 GMT 2007


Original Advisory Can Be Found at
www.zion-security.com -> [advisories].


-- 
Thanks in advance,
Tal Argoni,CEH
www.zion-security.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.grok.org.uk/pipermail/full-disclosure/attachments/20070201/775561d5/attachment.html 
-------------- next part --------------



?= Security Advisory =?

Issue: Cross Site Scripting (XSS) Vulnerability in "img.php" by Umberto Caldera.
Discovered Date: 30/01/2007
Author: Tal Argoni [talargoni at gmail d0t com]
Product Vendor: http://sourceforge.net/project/showfiles.php?group_id=88633
Ver: easymoblog-0.5.1

Details:

EasyMoblog is prone to a Cross Site Scripting Vulnerability.
The vulnerability exists in "img.php" file, caused by the lack of Input 
Validation/Filtering of quotation and HTML characters in the 
GET parameter "i".


Contents of "img.php"
---------------------------------
...

<?php
$img_name = $_GET['i'];
?>

...

<body>
   <img src="img/posts/<?php echo $img_name; ?>" border="0" alt="" />
</body>
...




Exploitation URL:
http://www.example.com/easymoblog/img.php?i="><script>alert(document.cookie);</script><img src=

Successful exploitation may allow execution of script code. This could also be exploited to 
spoof the entire website's content,
create fake login menu's for all the platform's users, commit Denial Of Service attacks and more...

Proof Of Concept:
http://www.example.com/easymoblog/img.php?i="><script>alert(document.cookie);</script><img src=


Full-Disclosure is hosted and sponsored by Secunia.