Jump to content

Form submit protection using unique IDs, what's the point?


vineld

Recommended Posts

I have seen the following suggestion in several locations on the internet which is supposed to protect you against some attacks.

 

1. Generate a unique id that is stored as a session variable

2. Store the id in a hidden form field

3. When submitted check that the id is correct

 

This will indeed prevent people from submitting fake post requests but I am still able to let a bot script post the form itself a thousand times so what is really the point of this?

Link to comment
Share on other sites

Quite a few bots will scrape a website (rather than download it every time) for forms, and store the form variables in a database.  It will then just submit to it constantly, with the same form fields every time.  The method you mentioned stops this type of attack.  I usually just add a select field with "I'm a spammer" as the default.  If they submit with that, they are spammers. So helpful of them to tell you who they are. 

Link to comment
Share on other sites

Quite a few bots will scrape a website (rather than download it every time) for forms, and store the form variables in a database.  It will then just submit to it constantly, with the same form fields every time.  The method you mentioned stops this type of attack.  I usually just add a select field with "I'm a spammer" as the default.  If they submit with that, they are spammers. So helpful of them to tell you who they are.

 

Is that really common these days? Have you tracked any stats on how many you've encountered? Why don't they just use a proper submit script instead when it's just as easy? Of course it consumes more resources but that shouldn't be a huge problem...

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.