Startup

Technology Review

Tips

Video

Welcome

Home » Technology Review

Dealing with unexpected input

Submitted by admin on Wednesday, 29 October 2008No Comment

Since the introduction of the Suggest a Website link in the Eggnchips project, a few interesting observations have been noted, the biggest of which is the amount of HTML that has tried to be inserted into the description field in order to try and stuff it with extra links; another thing has been a few attempted SQL injections. Had these fields gone straight into the database no doubt trouble would have ensured and with the SQL injections the system might have become compromised.

At least there is a way around this using PHP: Removing HTML Tags from Strings and PHP: Avoiding mySQL Injections. There are also a few other tricks up our sleeves to combat this sort of activity but more investigation and research needs to be carried out on the effective mechanisms for securing input data. One possibility would be to allow only text based input but that could ultimately prove difficult in a multi-lingual environment.

 

 


Go to Source

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.