close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

securing 2 variables when passing a url

Thread began 3/16/2011 2:58 pm by Paul | Last modified 3/17/2011 7:10 am by Jason Byrnes | 1400 views | 3 replies |

PaulBeta Tester

securing 2 variables when passing a url

I have created a registration page using Security Assist which generates an email response to the applicants email address.

On receipt, the applicant is prompted to click on a link to verify their email, pretty standard stuff and this works fine.

When the link is followed, the url passes 2 variables; a user ID and a randomly generated 21 digit verification string UID, both values taken from the users submitted registration page.

The url points to a confirmation page which validates the two variable against a sql users record. This too works fine.

So, here is the problem.

I've noticed that if i manually change the id value in the url, say from 1 to 2 whilst on the confirmation page, user 2's detail placed on the page. This happens despite leaving the verification id unchanged.

So i'm asking how this is so when each record is holding a unique 21 character verification string?

Does the recordset not need both queries to validate? It seems perhaps not.

Any ideas on how I can remove this vulnerability?

(By the way, users do not log in to undertake verification, so there is no active session present.)

Sign in to reply to this post

Jason ByrnesWebAssist

if you set the recordset up correctly, then it will require both variables to be correct, it sounds like the recordset is not configured to use the verification string.

I would need to see the code to be sure though

Sign in to reply to this post

PaulBeta Tester

Jason,

I thought id double check everything.

I have now resolved, I had my recordsets variable type set to numeric! its now text for the verification string.

(Its late here!)

Thank you for your quick response anyhow.

Sign in to reply to this post

Jason ByrnesWebAssist

OK, glad to hear it is working.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...