Click here to get back home

"force" user to use site in defined order?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
"force" user to use site in defined order? Geoff Cox 04-01-2008
Posted by Ben Bacarisse on April 2, 2008, 7:19 pm
Please log in for more thread options

> Ben Bacarisse wrote:
<snip>
>> If cookies are not acceptable, you can do this with form data.
>
> Cookies are as susceptible to a forging attack as is form data.
> http://getfirebug.com/ and see how easy it actually is.

Of course. I never suggested otherwise.

--
Ben.

Posted by Thomas 'PointedEars' Lahn on April 2, 2008, 8:03 pm
Please log in for more thread options
Ben Bacarisse wrote:
>> Ben Bacarisse wrote:
> <snip>
>>> If cookies are not acceptable, you can do this with form data.
>> Cookies are as susceptible to a forging attack as is form data.
>> http://getfirebug.com/ and see how easy it actually is.
>
> Of course. I never suggested otherwise.

IBTD. Did you or did you not suggest that storing cookies or form data
would be a way to "'force' [a] user to use [a] [Web] site in [a] defined order?

I have disproved that.


F'up2 comp.infosystems.www.authoring.misc

PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee

Posted by Chris Morris on April 3, 2008, 4:59 am
Please log in for more thread options
> IBTD. Did you or did you not suggest that storing cookies or form
> data would be a way to "'force' [a] user to use [a] [Web] site in
> [a] defined order?
>
> I have disproved that.

Either will work if the right measures are taken.

1) Generate a global encryption key for the application.

2) When the user arrives at page 1, encrypt '1' together with a unique
identifier for the user, and set it as a cookie or hidden form
field. Send the unique identifier unencrypted as well.

3) When the user arrives at page 2, decrypt the cookie or hidden form
field and check that it contains '1' and the unique identifier. If
it doesn't, redirect to page 1. If it does, generate a new one
containing '1,2'.

4) Repeat as needed for future pages, alternative branches, etc.

While the user can obviously send whatever form or cookie data they
like back to the server, the server has a straightforward way to
validate that the 'previously visited' data is data that it generated
(up to the security of the key and encryption algorithm, of course)
and reject modified data.

The unique identifier is to stop someone finding out what the
encrypted value of '3' is for a particular application and jumping
straight to page 3. You could alternatively generate a unique
encryption key for each user.

--
Chris

Posted by Ben Bacarisse on April 3, 2008, 6:40 am
Please log in for more thread options

> Ben Bacarisse wrote:
>>> Ben Bacarisse wrote:
>> <snip>
>>>> If cookies are not acceptable, you can do this with form data.
>>> Cookies are as susceptible to a forging attack as is form data.
>>> http://getfirebug.com/ and see how easy it actually is.
>>
>> Of course. I never suggested otherwise.
>
> IBTD. Did you or did you not suggest that storing cookies or form data
> would be a way to "'force' [a] user to use [a] [Web] site in [a]
> defined order?

What has that got to do with it? I did not suggest that cookies were
any less susceptible to being "forged" and you seemed to think I had.

> F'up2 comp.infosystems.www.authoring.misc

The usual practice is to set a followup-to header in order to limit
the discussion to more suitable groups. You seem to have just added
comp.infosystems.www.authoring.misc. Why do you think more people
want to see this?

--
Ben.

Posted by Thomas 'PointedEars' Lahn on April 14, 2008, 8:47 am
Please log in for more thread options
Ben Bacarisse wrote:
>> Ben Bacarisse wrote:
>>>> Ben Bacarisse wrote:
>>> <snip>
>>>>> If cookies are not acceptable, you can do this with form data.
>>>> Cookies are as susceptible to a forging attack as is form data.
>>>> http://getfirebug.com/ and see how easy it actually is.
>>> Of course. I never suggested otherwise.
>> IBTD. Did you or did you not suggest that storing cookies or form data
>> would be a way to "'force' [a] user to use [a] [Web] site in [a]
>> defined order?
>
> What has that got to do with it? I did not suggest that cookies were
> any less susceptible to being "forged" and you seemed to think I had.

No, I said that one approach (that you dismissed) is as suspectible to a
forging attack as the other one (that you mentioned as a proper
replacement). That is quite a different thing.

>> F'up2 comp.infosystems.www.authoring.misc
>
> The usual practice is to set a followup-to header in order to limit
> the discussion to more suitable groups. You seem to have just added
> comp.infosystems.www.authoring.misc. Why do you think more people
> want to see this?

Temporary malfunction on layer 8 in interaction with layer 7.

Interestingly, you forgot to set the Followup-To header as well, so I guess
we are even now :)


F'up2 ciwam

PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16

Similar ThreadsPosted
Force CSS on external site? December 13, 2004, 6:00 pm
Forms: Where is the character encoding (eg. UTF) defined? October 29, 2004, 3:32 pm
XHTML 1.0 Validator: No attributes, elements not defined... August 11, 2004, 3:21 am
CSS: Problems with doubly defined colors (according to validator) May 20, 2007, 5:26 pm
Order of buttons? October 6, 2005, 9:37 am
css parsing order May 20, 2006, 8:11 pm
Z order for frames January 14, 2008, 8:55 pm
div presentation order April 28, 2008, 7:28 pm
DIV Tag Not on Top Z-Index Order Problem? March 25, 2005, 3:03 pm
WYSIWYG order forms? November 24, 2007, 2:20 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap