FORUMS


Discussion about Intalio|BPP Community Edition.


Back to Intalio|BPP 6.0 beta (0 viewing) 
Go to bottom Favoured: 0
TOPIC: Intalio|AJAX does not escape inputs
Jun 26, 2009 9:27 am
liu.zhengyang (User)
45 posts
Senior Boarder

Karma: 3  
Hi, me again.

I just found out maybe a bug of Intalio|AJAX. It seems it doesn't escape characters before posting to the server.

For example, if I have a textbox, and I input something like "</injected>", then it'll cause an exception on the server side because the AJAX engine posts "</injected>" without escaping the characters and the resulting XML is invalid.

So is there any particular reason why it doesn't check for the input, or is it really a bug?

Thanks.
 
  The administrator has disabled public write access.
Jun 26, 2009 6:29 pm
mark.horton (User)
34 posts
Junior Boarder

Karma: 4  
AJAX does escape the input but it looks like the server un-escapes it at some point.

For instance, if I submit </injected> as a text input it will submit the following:

<jsx1:input>
<a0:FormModel xmlns:a0="http://www.intalio.com/gi/Test.gi">
<textbox></injected></textbox>
</a0:FormModel>
</jsx1:input>

I'm going to ask someone on the server team about this.
 
  The administrator has disabled public write access.
Jun 26, 2009 6:35 pm
mark.horton (User)
34 posts
Junior Boarder

Karma: 4  
Not sure if my last post made it here. Posting again...

AJAX does escape inputs. But it looks like the server un-escapes it at some point.

Asking someone on the server team about this.
 
 
Last Edit: 2009/06/26 18:36 By mark.horton.
  The administrator has disabled public write access.
Jun 29, 2009 9:32 am
liu.zhengyang (User)
45 posts
Senior Boarder

Karma: 3  
Hi it's me again.

AJAX does escape the input, but it doesn't encode the POST parameters.

For example, when "</injected>" is entered, AJAX will POST the following to "/gi/validation"

Code: :

 assembly=MyProcess&form=MyAjaxFormForm.gi&message=<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SOAP-ENV:Body> ...<strong><my-mapping-field></injected></my-mapping-field></strong>... </SOAP-ENV:Body> </SOAP-ENV:Envelope>



So the real problem is the "&" in html entities will be interpreted as the parameter seperator, i.e.the message parameter is truncated at the right before "<".

I believe this is a bug.
 
  The administrator has disabled public write access.
Jun 29, 2009 9:43 am
liu.zhengyang (User)
45 posts
Senior Boarder

Karma: 3  
Sorry the forum escaped my output, :S

Attached a screenshot, the problem is highlighted. The "&" in the highlighted part truncated the "message" parameter.
 
 
Last Edit: 2009/06/29 09:46 By liu.zhengyang.
  The administrator has disabled public write access.
Jun 29, 2009 9:48 am
liu.zhengyang (User)
45 posts
Senior Boarder

Karma: 3  
screenshot
 
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop

Top Posters

Last 30 days

  • yodjeu.ntemde.leopold.camille (21)
  • Konstantin.Melnik (8)
  • himar.rodriguez (8)
  • amrrao1975 (6)
  • rakesh.db (6)
  • jaime.penafiel (5)
  • andre.van.der.ark (5)
  • andreas.boehm (5)
  • blue.moon (5)
  • estebanf (4)

All time

  • Antoine (2755)
  • Shivanand (1194)
  • cshekhar (933)
  • psq (797)
  • metabyte (415)
  • jag (393)
  • dfrench (367)
  • arnaud (329)
  • jalateras (325)
  • talita.pezzi (261)

Show last 4 hrs - 12 hrs - 24 hrs

Copyright © Intalio, 1999-2010.