Sign In
Dan Crevier's Blog
In search of a better name...
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Blog Home
Email Blog Author
Share this
RSS for posts
Atom
RSS for comments
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
.Net development
ASP.NET
Debugging
DM-V-VM
FolderShare
HealthVault
Max
PageModel
PanelLayoutAnimator
pdc2005
SkyDrive
Tips & Tricks
Utilities
VirtualizingTilePanel
Vista
Web Perf
Windows Phone
WP7
WPF
Archive
Archives
December 2011
(2)
October 2011
(1)
September 2011
(2)
November 2008
(1)
July 2008
(1)
June 2008
(1)
May 2008
(2)
March 2008
(6)
February 2008
(1)
January 2008
(2)
October 2007
(1)
August 2007
(4)
July 2007
(4)
June 2007
(1)
March 2007
(1)
February 2007
(1)
January 2007
(1)
December 2006
(6)
November 2006
(2)
October 2006
(3)
September 2006
(8)
August 2006
(7)
July 2006
(6)
March 2006
(6)
February 2006
(11)
January 2006
(1)
December 2005
(2)
November 2005
(1)
October 2005
(3)
September 2005
(7)
June 2005
(6)
May 2005
(11)
April 2005
(3)
February 2005
(3)
January 2005
(3)
December 2004
(15)
November 2004
(4)
October 2004
(10)
September 2004
(8)
August 2004
(8)
July 2004
(5)
June 2004
(5)
May 2004
(13)
April 2004
(15)
March 2004
(18)
Web security is hard
MSDN Blogs
>
Dan Crevier's Blog
>
Web security is hard
Web security is hard
Dan Crevier
5 Jan 2007 12:43 AM
Comments
0
I've been reading Jeremiah Grossman's great accounts of some JSON related cross site request forgery (CSRF) holes
here
and
here
. The basic pattern is that an AJAX website uses XmlHttpRequest to request some personal data that's returned with JSON from a well known URL. You can't use XmlHttpRequest from another domain to grab that data. But, <script> tags can load scripts cross domain. In the cases mentioned, people found ways to make the JSON returned valid in a script tag and get to it. It's really interesting that <script> tags have this different cross domain behavior. As
Dare points out
, this behavior of <script> tags is one thing that's making JSON more popular on the web. The web security model has evolved in a very interesting way. Things like the <script> tag behavior allow people to make cross site web APIs used for cool mashups, but also can be the cause of nasty security holes.
0 Comments
Blog - Comment List MSDN TechNet
Comments
Loading...