Jump to content

Security issue!


mattyvx

Recommended Posts

Hi I have developed a php page which gets 10 random reviews from a specfic member.

 

The reviews are displayed using an iFrame and the member $ID is passed to the the SQL statement through the src="" and $_GET[''ID] method like;

 

http://www.mysite.com/reviews?ID=1234

 

I have some data validation for $ID which is;

 

String length less than 4, must be numeric and mysql_real_escape string.

 

What I would like to do is give my premium members the code so they embed the reviews on their site like;

 

<iframe 'some-styling-here' src="http://www.mysite.com/reviews?ID=1234"></iframe>

 

General advice really, providing I have sanitised $ID using php are there any other measures I should take to protect myself and any other implications I should consider before releasing the code to members. e.g. increased calls to server to display embedded page etc etc

 

Thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.