2011-05-28, 02:43:19
Using an anatomizing proxy like TOR will also trigger the CSRF detection.
-Rob A>
-Rob A>
Keep getting "CSRF detected!"
|
2011-05-28, 02:43:19
Using an anatomizing proxy like TOR will also trigger the CSRF detection.
-Rob A>
2011-06-10, 19:06:16
Same reason as mine - IP address changing between requests
-- Sam
2011-06-10, 23:41:44
I've seen somewhere that this problem might be caused by a script looping login method multiple times.
On some webservers starting multiple sessions within fixed time may lead to csrf(xss) attack, thus some cms-es disallow multiple tab/window login, and automatically logouts user or ends his sessions. Carlos found somewhere a similar loop causeing afair sitemap to be generated couple times before saving.
Addons: blue business theme, Online Visitors, Notepad
2011-06-11, 02:42:26
What fixes it for me is changing
Code: $ip = $_SERVER['REMOTE_ADDR']; Code: $ip = ""; // or a random string, as long as it doesn't change between requests
-- Sam
2012-02-03, 05:16:15
I have been experiencing CSRF for a few days recently. Some info on background situation:
Code: ExpiresActive On As impulse solutions I tried the following, from which some worked:
I have purposefully pointed out this different scenarios and may be irrelevant info as can't see any consistency in browser behaviour - except for Chrome seems immune for CSRF in my case. I suspect it may be related to files handling by browser or server, but really have no idea. Hope someone sorts it out one day. As a permament solution I launched into space line 36 of changedata.php and sleep sound.
2012-02-03, 16:27:35
Hallo Ampersand,
I am glad that GS 3.1 has the option to set off this "nonce - nonsense": Code: # Turn off CSRF protection. Uncomment this if you keep receiving the error message "CSRF error detected..." I asked some collegues in the meantime, nobody had any idea what the reason could be unfortunately
|--
Das deutschsprachige GetSimple-(Unter-)Forum: http://get-simple.info/forums/forumdisplay.php?fid=18
2012-02-10, 04:09:42
Tweaking edit.php that I mentioned in a post above was good till the moment I wanted to update css file of the theme of one of my 2.03 installs. In this case theme-edit.php comes into action so it would require a similiar tweak as edit.php. Instead of tweaking it I decided to observe the beast in the wild and made minor changes to both theme-edit.php and nonce.php to compare the variables compared in nonce.php. These variables must have been different to cause CSRF alert.
So I changed line 44 of theme-edit.php to Code: print("inner nonce=".$nonce); if(!check_nonce($nonce, "save")) Code: print("<br/>outer hash=".get_nonce($action, $file)."<br/>"); return ( $nonce === get_nonce($action, $file) ); Then I proceeded to the test: -started Firefox -logged in -edited css theme file and saved it -received: Code: inner nonce=5beb6ceea80bc2d3eef440e4f14b0db2753ccda3 I wanted to check why is the $nonce passed from theme-edit.php different than the produced within nonce.php, but beforehand... as you can see form previous post: Google Chrome worked fine. So I checked the same steps with Chrome: -logged out -started Chrome -logged in -edited css theme file and saved it -received: Code: inner nonce=973d74b22c7dc7b07de581e9be2a30011d110502 Definitely not a cross-browser solution... Ok, now back to firefox: why were nonces-schmonzes different in FF? This time no sha1 in line 28 of nonce.php (don't replicate without parental guidance!): Code: $hash=$action.$file.$ip.$USR.$SALT; Firefox: Code: inner nonce=save/admin/theme-edit.php188.146.124.177Redakcjav4pwwe37necqoo1z1b0^1durtz4dh-unx1bz Chrome: Code: inner nonce=save/admin/theme-edit.php188.147.29.93Redakcjav4pwwe37necqoo1z1b0^1durtz4dh-unx1bz Will IPs remain identical in FF? firefox: Code: inner nonce=save/admin/theme-edit.php188.147.29.93Redakcjav4pwwe37necqoo1z1b0^1durtz4dh-unx1bz But, will IPs remain identical in FF from now on? That's what happened after a couple of minutes: firefox: Code: inner nonce=save/admin/theme-edit.php188.146.57.204Redakcjav4pwwe37necqoo1z1b0^1durtz4dh-unx1bz Sad... I am sorry my provider does it to IP, but does he do it really? Or may be some browsers change HTTP headers? So now I use solution from SamWM's post: change line 25 of nonce.php (remember my example is from 2.03) to $ip = $_SERVER['REMOTE_ADDR'];$ip=true;
2012-02-11, 04:47:00
I have to turn off modsec to avoid this with my host.
Of course I only turn it off for my IP, and if a post. Luckily my host allows this override. Code: .htaccess *ip masked
2012-04-03, 15:21:47
I have this issue as well. And I just found out that i can disable this. But is my page now insecure? I guess yes.
I am devellopping my site on local server and on my host. I often get it when i copy pages (xml files) from my localhost to my server and then try to edit them. I althaugt had problems when renaming/deleting tempates. I could not edit the pages (withotu the CRSF error sometime i think) somehow i edited the pages to the existing template and uploaded them and then it workend. I thaught i got the error reason. But looks like i did not. Are this only login checks or could it have something to do with the files?
2012-04-03, 16:33:41
bugmenot Wrote:I have this issue as well. And I just found out that i can disable this. But is my page now insecure? I guess yes. No. This is just one step. It is not the complete protection. And this "security"-feature is a very exotic one, all the other stable sites demonstrate that it is not necessary The only security it gave me was that I could not publish. ;=(
|--
Das deutschsprachige GetSimple-(Unter-)Forum: http://get-simple.info/forums/forumdisplay.php?fid=18
2012-04-04, 03:00:46
For those here that are not coders a couple of pages that helped me understand a little about CSRF.
CSRF = Cross-Site Request Forgery for those that may know what it is. http://blog.preinheimer.com/index.php?/a...ction.html http://en.wikipedia.org/wiki/Csrf Bob |
« Next Oldest | Next Newest »
|