Posts: 2,894
Threads: 59
Joined: Jun 2010
Can you provide a link to your page to help me determine what's happening?
Have
you completed
the interview?
Posts: 9
Threads: 2
Joined: Dec 2017
(15-Jan-2017, 04:02 PM)Steven Wrote: Hi uran235,
Each time you view the form, the script puts a random string into your browser session. It puts the same random string in a hidden form input. Then when you submit the form, the script compares to see if the string from your session matches with the one from the hidden form input. By doing this, it ensures that it was yourself that submitted the form and not some script on another site submitting it for you without you even knowing. This is commonly known as a CSRF (Cross-Site Request Forgery) attack.
As to why it's sporadically happening for you, I can think of a couple of reasons. Firstly you might have viewed the form and not submitted it for a while afterwards, meaning that your session has expired. Secondly it's possible that you might have viewed the form, viewed a second form and then submitted the first form. I haven't confirmed but I imagine the first form would be checking if its hidden input matches with the second form's session. Do either of those cases seem plausible?
If it's not of a particular concern to you or you have other security features enabled (ReCaptcha) that do the same then you can disable this by opening /frontend/controller/main/form.php and commenting out this line:
PHP Code:
<?php
$json['result']['error'] = $this->data['lang_error_csrf'];
I can't find this line in the file, it doesn't exist.
Edit: I've found somewhere in the admin panel that you can disable csrf. I'm not that bothered anyway, what can they do, make a php script to post comments on my site?