A
antonyliu2002
Let me try to make clear what my concern is. I think it is a pretty
interesting one, which I think of while I am developing my web
application.
I have an authenticated/authorized web application. People have to
login from http://mydomain.com/ to access the information on my site.
For now, this is working fine. People cannot bypass the login form,
any attempt to check out a page (if they happen to know the file name)
will be redirected to the login page.
Now, after a user successfully logs in, he needs to complete some forms
in a sequence of a few pages. Suppose that form1.aspx is required, the
RequiredField validation check on this page prohibits a user from
proceeding if the required fileds are not filled.
However, a smart user can bypass this page if s/he simply changes the
URL in the address bar, say, from http://mydomain.com/form1.aspx to
http://mydomain.com/form2.aspx. Let's assume that they happen to know
some of the file names over there.
So, here is my question: How to prevent them from bypassing the
required page? I know that I can probably use weird, hard-to-guess or
hard-to-remember file names like
"weoi23lad345aas945kdfa-sldfkj-sdlfas0jdfla2e2er8237pq52e0i9.aspx", but
this is silly and isn't really safe.
Thanks.
interesting one, which I think of while I am developing my web
application.
I have an authenticated/authorized web application. People have to
login from http://mydomain.com/ to access the information on my site.
For now, this is working fine. People cannot bypass the login form,
any attempt to check out a page (if they happen to know the file name)
will be redirected to the login page.
Now, after a user successfully logs in, he needs to complete some forms
in a sequence of a few pages. Suppose that form1.aspx is required, the
RequiredField validation check on this page prohibits a user from
proceeding if the required fileds are not filled.
However, a smart user can bypass this page if s/he simply changes the
URL in the address bar, say, from http://mydomain.com/form1.aspx to
http://mydomain.com/form2.aspx. Let's assume that they happen to know
some of the file names over there.
So, here is my question: How to prevent them from bypassing the
required page? I know that I can probably use weird, hard-to-guess or
hard-to-remember file names like
"weoi23lad345aas945kdfa-sldfkj-sdlfas0jdfla2e2er8237pq52e0i9.aspx", but
this is silly and isn't really safe.
Thanks.