[SECURITY] Add '/**/' before jsonrpc.cgi callback to avoid swf content type sniff vulnerability
Originally disclosed on Mozilla
- Fixed in 16 days
- Paid in 6 days
- Disclosed after 16 days
Created attachment 8452810 poc.html
User Agent: Mozilla/5.0 (X11; Linux i686 (x86_64)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36
Steps to reproduce:
Hi,
I think you may already know about this vulnerability(no, take a look - miki.it/blog/2014/7/8/abusing-jsonp-with-rosetta-flash/)
this vulnerability allows the page jsonrpc.cgi as a swf file then resulting in http request in local webserver(bugzilla.mozilla.org). To patch that add '/**/' before the callback function.
Reproduce:
- Log in bugzilla.
- open poc.html(attached)
- wait 10 seconds
- you will be redirected to a page that contains the source code of 'bugzilla.mozilla.org'(was got via victim browser) so it contains your session security token.
Cheers,
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A critical-severity security bug in WebService. Mozilla made it public on 24 July 2014 as CVE-2014-1546.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.