Home > rails, security > Don’t use iframe with cookie (session) setting serverscripts

Don’t use iframe with cookie (session) setting serverscripts

Today we ran into an issue with our movie tracker at www.lovelifefestival.com (click on ‘Star in your own condom movie’).

We use Rails3 as backend and the app is embedded with an iframe. Rails generates an auth token, which is validated when the user wants to upload the movie data.

The issue is about the users security settings. If the user does not allow third party cookies to be set, the backend fails to validate the auth token. So the conclusion is, not to use sessions with iframes. Make sure the user visit your site directly, so the session data is not third party.

Advertisements
Categories: rails, security
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: