close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

DataAssist Multiple Add to DB Vunerability

Thread began 12/15/2009 9:09 am by Dave Buchholz | Last modified 12/15/2009 5:07 pm by Dave Buchholz | 1783 views | 6 replies |

Dave BuchholzBeta Tester

DataAssist Multiple Add to DB Vunerability

I have an issue with a page that appears to be vunerable to SQL Injection which uses the WA DataAssist Multiple Inserts Server Behaviour.

I have set up this page and attached a zip file containing the page in question.

You need to have the Firefox Tools on this page installed and then visit the url above and run the SQL Inject Me Report (I have attached a screenshot of the results I got) and you will see what I consider to be an alarming set of results.

A couple of observations, in the helper file for DataAssist there are a couple of lines of code that I think need revising

line 143: $formVal = "'".((!(preg_match("/(^|[^\\\\])'/", $formVal))) ? $formVal : addslashes($formVal))."'";

line 186: $formVal = "'".((!(preg_match("/(^|[^\\\\])'/", $formVal))) ? $formVal : addslashes($formVal));

I believe that using mysql_real_escape_string($formVal) would be a better method of escaping this value but even doing that leaves this page vulnerable so there is obviously a more deep rooted problem here with the code.

I have posted this here rather than in the public forum so that we can have a reasoned discussion about this issue and I would appreciate it if other WCE's did not publicize the url I have created as this is a current project that is ongoing at the moment.

Sign in to reply to this post

Jason ByrnesWebAssist

Dave,

Unfortunately, I cannot read the results report in the screen shot.


Also I tried using the SQL Inject Me tool on the page you included in the link and did not get any failed test. I selected the option to "test all forms with all attacks", did you perform a different test?

Sign in to reply to this post

Dave BuchholzBeta Tester

Jason,

please accept my apologies the link I gave above is the fixed page, this page is the original with the unmodified code.

Sign in to reply to this post

Jason ByrnesWebAssist

Dave, If you could send a backup copy of your database so I can recreate the problem on my computer, I can likely get to the w bottom of the issue fairly quickly.

Sign in to reply to this post

Dave BuchholzBeta Tester

Jason,

sure, do you want to open a ticket for me so I can send the files securely please

Sign in to reply to this post

Jason ByrnesWebAssist

sure, the ticket has been created.

Sign in to reply to this post

Dave BuchholzBeta Tester

database has been attached

thanks

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...