impresspages / ImpressPages

ImpressPages is php framework with admin panel. Build functional website in one hour.
http://www.impresspages.org
Other
502 stars 175 forks source link

One time only valid captchas #862

Open pauser0000001 opened 7 years ago

pauser0000001 commented 7 years ago

The capchas should have one use only, otherwise an attacker can send several times the same form with the same captcha once it is solved. Optionally, a parameter is added to continue with the previous behaviour.

maskas commented 7 years ago

Will include in next release.

pauser0000001 commented 7 years ago

On a second though, as I don't usually use AJAX I didn't realize. What will happen to a single page website made with AJAX? There should be no problem with the captcha, but it will be with the CSRF token. Perhaps it is better to delete the CSRF token only on forms not received by AJAX, and perhaps only on webs with the debug option set to 0.