NTS Forums

Please login or register.

Login with username, password and session length
 

News:

Welcome to the Newtek Technology Services Forum!


Author Topic: default dreamweaver insert /update form wide open to XSS  (Read 769 times)

Offline chumbawumba

  • Full Member
  • ***
  • Posts: 360
  • Karma: +8/-0
default dreamweaver insert /update form wide open to XSS
« on: March 04, 2010, 01:16:25 AM »
I discovered a scary thing today.  I have been using the DW insert/update form behaviours on my site.

just by chance i entered a bit of html in one of my fields  : 
Code: [Select]
<b>asdf</b>
to my surprise after inserting the rcord into the DB, the "asdf" part was rendered in bold when the record was later displayed

this leaves the app wide open to XSS. 

although DW passes user input through a function, it only checks for apostrophes:
mysql_real_escape_string($theValue)

scary or what.  i wonder how many people out there are unaware of this. :o