[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[WEB SECURITY] Why JSON/JavaScript hijacking only works on Mozilla
- From: "Billy Hoffman" <Billy.Hoffman@xxxxxxxxxxxxxxx>
- Subject: [WEB SECURITY] Why JSON/JavaScript hijacking only works on Mozilla
- Date: Mon, 27 Aug 2007 14:26:41 -0400
------_=_NextPart_001_01C7E8D7.D048221D
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
I haven't seen too many people talking about this recently. After
Fortify's paper I bashed my head against the wall for a few days trying
to get it to work for IE. At first I thought (like many others) that
only Mozilla was vulnerability because all the PoC out there used
Mozilla specific extensions to clobber parts of the Array/Object
constructors. The holy grail was to find a way to do this without
Mozilla extensions so it might work in other browsers.
=20
Well I figured out how to hijack without Mozilla-specific extensions,
but I still couldn't hijack IE. The fundamental limitation (Protection?
Feature? Bug?) is that all other JavaScript interpreters do not call a
constructor function when parsing literals.
=20
The full write up is here:
=20
http://portal.spidynamics.com/blogs/spilabs/archive/2007/08/27/The-real-
reason-for-_2800_JavaScript_7C00_JSON_2900_-Hijacking.aspx
=20
Billy Hoffman
--
Lead Researcher, SPI Labs
SPI Dynamics, An HP Company
http://www.spidynamics.com
Phone: 678-781-4800
Direct: 678-781-4845
=20
=20
Attend SPICON 2.0 - SPI Dynamics' User Conference - and earn CPE
credits.=20
Sign up today at http://www.spicon2007.com/.
=20
------_=_NextPart_001_01C7E8D7.D048221D
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40";>
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
name=3D"PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I haven’t seen too many people talking about =
this
recently. After Fortify’s paper I bashed my head against the wall =
for a
few days trying to get it to work for IE. At first I thought (like many =
others)
that only Mozilla was vulnerability because all the PoC out there used =
Mozilla
specific extensions to clobber parts of the Array/Object constructors. =
The holy
grail was to find a way to do this without Mozilla extensions so it =
might work
in other browsers.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Well I figured out how to hijack without =
Mozilla-specific
extensions, but I still couldn’t hijack IE. The fundamental =
limitation (Protection?
Feature? Bug?) is that all other JavaScript interpreters do not call a =
constructor
function when parsing literals.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>The full write up is =
here:<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>http://portal.spidynamics.com/blogs/spilabs/archive/20=
07/08/27/The-real-reason-for-_2800_JavaScript_7C00_JSON_2900_-Hijacking.a=
spx<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Billy Hoffman<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>--<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Lead Researcher, <st1:PersonName tabIndex=3D"0"
style=3D"BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: =
url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x"
w:st=3D"on">SPI Labs</st1:PersonName><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>SPI Dynamics, An HP =
Company</span></font><o:p></o:p></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>http://www.spidynamics.com<o:p></o:p></span></font></p=
>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Phone: =
678-781-4800<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Direct: =
678-781-4845<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DVerdana><span =
style=3D'font-size:10.0pt;
font-family:Verdana'>Attend <b><span style=3D'font-weight:bold'>SPICON =
2.0</span></b>
- <st1:PersonName tabIndex=3D"0"
style=3D"BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: =
url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x"
w:st=3D"on">SPI Dynamics</st1:PersonName>’ User Conference - and =
earn CPE
credits<font color=3Dnavy><span style=3D'color:navy'>.</span></font> =
<br>
Sign up today at <b><font color=3Dblue><span =
style=3D'color:blue;font-weight:bold'><a
href=3D"http://www.spicon2007.com/"; =
title=3D"http://www.spicon2007.com/";>http://www.spicon2007.com/</a></span=
></font></b><font
color=3Dblue><span =
style=3D'color:blue'>.</span></font></span></font><font size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p=
>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>
------_=_NextPart_001_01C7E8D7.D048221D--
Brought to you by http://www.webappsec.org
Search this site
|