[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: json v. xml

  • From: Elliotte Harold <elharo@m...>
  • To: "Nathan Young -X (natyoung - Artizen at Cisco)" <natyoung@c...>
  • Date: Fri, 05 Jan 2007 16:01:01 -0500

base64 json
Nathan Young -X (natyoung - Artizen at Cisco) wrote:

> JS (including JSON) can be included in the page using the script tag or
> a DOM equivalent created via JS in the page.  The source from which the
> script tag pulls a file full of JS source code can point to any server.

Can this URL be dynamically created at runtime using more JavaScript?

> The fact that your page can easily get JS from untrusted sources but not
> XmlHttp content is bizzare as far as I'm concerned.  Changing browser
> policies to tighten the restrictions on the scrip tag is unlikely to
> happen.
> 

I'm not quite sure if it's possible, but I'm really tempted to write a 
proof of concept exploit that base64 encodes XML, stuffs it in JSON, 
downloads it with JSON, and then deencodes it and passes it to an XML 
parser for parsing.

Is there anyway to simply load arbitrary binary or text content from an 
arbitrary network connection in JavaScript? For instance, by setting an 
iframe URL to point to it and then grabbing it? If so, I could avoid the 
need to preencode the XML in JSON completely. :-)

-- 
Elliotte Rusty Harold  elharo@m...
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/

  • References:
    • RE: json v. xml
      • From: "Nathan Young -X \(natyoung - Artizen at Cisco\)" <natyoung@c...>

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.