Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 08:18:48 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155552 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Security offense!! Access denied! after relocating website  (Read 1326 times)
MissyW

Offline Offline

Posts: 42


« on: September 12, 2011, 07:55:05 AM »

This appears to be a variation on the Security offense!! Access denied!  problem.  Have just ported a site version 2.8.2 from localhost to a remote server.  Everything is working ok, the site displays, I can go into admin and save changes to the template's index.php.  But I am not allowed to save changes to the pages.  I get the Security offense!! Access denied! message even though I am using only one browser session.  It also says:
Code:
Notice: Array to string conversion in .../framework/SecureForm.php on line 163

If I switch to IE, I still get the same error and am not allowed to save changes to pages.  File permissions appear to be correct.  huh
Logged
DarkViper
Development Team
*****
Offline Offline

Posts: 1253


« Reply #1 on: September 12, 2011, 11:35:04 AM »

call http://myown.site/wb/install/

Attention: Do not klick on [install]  !!

Only check, if there is an red error message or a warning or anything appears green.
Logged

Anleitungen lesen und selber nachdenken ist anstrengend...  Da lass ich doch lieber andere für mich denken...

In 1984:  Nineteen Eighty-Four is a unrealistic utopia!!
In 2012:  Nineteen Eighty-Four is a little piece only of our reality!!
MissyW

Offline Offline

Posts: 42


« Reply #2 on: September 12, 2011, 01:51:19 PM »

call http://myown.site/wb/install/

Attention: Do not klick on [install]  !!

Only check, if there is an red error message or a warning or anything appears green.
I don't have a wb or wb/install directory in my site, so when I call http://myown.site/wb/install/ I get a page not found error.  huh  After your message, thanks, I remembered I had created a hidden permiissions-checking page.  I just ran it.  Everything is green. ??
« Last Edit: September 12, 2011, 02:32:29 PM by MissyW » Logged
MissyW

Offline Offline

Posts: 42


« Reply #3 on: September 20, 2011, 07:00:38 AM »

I am completely stuck trying to send this redeveloped website live for a client after relocating it from my xampp environment to the remote host.

I have tried everything I can think of.  I did a completely fresh WB 2.8.2 install, transferred all my WB files (which were upgraded to 2.8.2) from my desktop to the remote server, then copied the data base to the remote server.  Everything displays correctly, front and back end.  But when I log into the backend and try to save anything (pages or settings or anything), I get
Code:
Security offense!! Access denied!
.

The first time I attempted the relocation, I got locked out only of the pages.  Now, on this second attempt,  I'm locked out of everything.

I have checked my file permissions every which way.  When I run the permissions checking script, everything is green for OK.  I downloaded and ran fix-permissions.php (which is available here http://www.websitebaker2.org/forum/index.php/topic,19268.msg129174.html for good measure, but it reported everything OK with permissions.

I have checked ownership of all my files at the Unix/Linux level.  All ownership is correct.

I have been using Website Baker for this client for many years.  But now I am absolutely stuck and am despairing of being able to resolve this problem.  I have invested weeks of work in redeveloping the website in version 2.8.2 on my localhost.  I am forced to wonder if I am going to have to abandon using Website Baker and redo my entire website in another content management system  cry.
Logged
dbs
WebsiteBaker Org e.V.

Offline Offline

Posts: 3719


WWW
« Reply #4 on: September 20, 2011, 07:17:28 AM »

hi. plz load the install-folder to your remote server an call him like darkviper wrote.
do nothing, we want only to know: is all green or not?
Logged

MissyW

Offline Offline

Posts: 42


« Reply #5 on: September 20, 2011, 07:46:44 AM »

hi. plz load the install-folder to your remote server an call him like darkviper wrote.
do nothing, we want only to know: is all green or not?

Thanks! Have done this.  Everything is green.  Though it is coming up with a default host name of localhost - I presume that is just the default, as this site is configured correctly in config.php to the remote host.
Logged
avatar8

Offline Offline

Posts: 15


« Reply #6 on: September 21, 2011, 12:28:44 AM »

I have been getting the "Security offense!! Access denied!" nonstop since upgrading to 2.8.2, and there doesn't seem to be a solution. Even if I set it to Multi tab, no ip check, and no fingerprinting, I will get the message on every browser. However, I have some information that might aid toward a solution.

I only get the "Security offense!! Access denied!" message the first itme I save. If I hit back and then try to save again, it works, and then I can save over and over and never get the message. However, if I wait for just 30 seconds and try to save again, I get the Access denied message. That happens on both Firefox and Google Chrome.

Is there anything I can do to get rid of that message permanently? In my opinion, a CMS site that can be hacked is better than a CMS that doesn't allow you to save your changes smiley
Logged
Luisehahne
Board Member
Development Team
*****
Offline Offline

Posts: 3147



WWW
« Reply #7 on: September 21, 2011, 01:49:22 AM »

try to do a little changing in the security switcher, maybe with another browser as fireFox. Change the settings to Multitab. Should solve your issues.

Dietmar

Logged

We are human beings - and nobody is perfect at all.
avatar8

Offline Offline

Posts: 15


« Reply #8 on: September 21, 2011, 02:26:16 AM »

Unfortunately, I already tried all that, and I'm using Firefox. The problem is always the same, and I have always had it set to multi tab. The problem is always the same: the first time saving throws the security offense error, and then saving immediately after that works. 3 different people are experiencing the exact same problem. Whether on Google Chrome or Firefox, it I wait more than 30 seconds (the time I'm using in my test), the error will happen 100% of the time.
Logged
MissyW

Offline Offline

Posts: 42


« Reply #9 on: September 21, 2011, 02:40:45 AM »

try to do a little changing in the security switcher, maybe with another browser as fireFox. Change the settings to Multitab. Should solve your issues.

Dietmar


Ok, thanks for the suggestion, but I use FireFox by default.  The problem occurs when only one tab is open. And I cannot change the settings from the backend because I cannot save the changes.  So, unless you can tell me how to achieve this by editting a file through the directory or database, I cannot try this.
Logged
MissyW

Offline Offline

Posts: 42


« Reply #10 on: September 21, 2011, 02:44:18 AM »

Unfortunately, I already tried all that, and I'm using Firefox. The problem is always the same, and I have always had it set to multi tab. The problem is always the same: the first time saving throws the security offense error, and then saving immediately after that works. 3 different people are experiencing the exact same problem. Whether on Google Chrome or Firefox, it I wait more than 30 seconds (the time I'm using in my test), the error will happen 100% of the time.
Thanks for this suggestion.  It's good to hear someone is managing to work around the problem.  I have tried using the back button and saving again as you suggested, but it doesn't work for me.  Not in FireFox.  Not if I do it immediately, and not if I wait any number of seconds, nothing seems to work.
« Last Edit: September 21, 2011, 02:47:15 AM by MissyW » Logged
MissyW

Offline Offline

Posts: 42


« Reply #11 on: September 21, 2011, 03:04:04 AM »

A correction to what I said earlier - I AM able to save my template files (index.php & css).  But not anything else - not Pages, not Settings, not other Admin tools such as SecureForm Switcher or droplets.

Does anyone know if the warning message Notice: Array to string conversion in .../framework/SecureForm.php on line 163 is significant?
Logged
Luisehahne
Board Member
Development Team
*****
Offline Offline

Posts: 3147



WWW
« Reply #12 on: September 21, 2011, 04:05:47 AM »

Can you give backend access with group Administor. Send per PM please. I will be going to have a look.

Dietmar
Logged

We are human beings - and nobody is perfect at all.
avatar8

Offline Offline

Posts: 15


« Reply #13 on: September 21, 2011, 04:11:33 AM »

Just to add a bit more information about the test I was doing...

The testing was done by clicking on the Accept button on the admintools/tool.php?tool=SecureFormSwitcher page. I've found that if I wait just 20 seconds, the save of the page will fail with the security message, but it will then work if I click the Accept button again immediately after, and then will never fail unless I wait again.

From another city, somebody using the same installation of Website Baker made the following observations (independent of my findings):

– first try | I got the security message again "security offense, access denied"
– second try |I clicked back to the pages menu, and clicked the page again to edit, I was able to save
– third try | I edited+saved without going back to pages I was not able to save "security offense, access denied"
– forth try | I went back to the pages menu, and clicked the page again to edit, I was able to save
– I was able to do edit and save four more timesbefore getting the "security message"
– fifth try | I clicked back to the pages menu, was able to edit+save many times
– sixth try | time lag (2 minutes to update this message) got "security messge"
 
Conclusion:
security message seems intermitten, but is triggered by time lag on an open page:
When I get the safety message, I clicked 'Pages' and re-enter to edit. Was able to type 'text' and save many times until I waited to type an email and tried it again. But while the page is open, waiting between edits seems to cause that problem. I seem to be able to leave Baker open as long as the page is not left open in edit mode.
Logged
MissyW

Offline Offline

Posts: 42


« Reply #14 on: September 21, 2011, 05:22:52 AM »

Thanks, avatar8, for such a detailed summary!  I have just given administrator access to Luisehahne (board member).  So let's hope, wait and see ...
Logged
Luisehahne
Board Member
Development Team
*****
Offline Offline

Posts: 3147



WWW
« Reply #15 on: September 21, 2011, 11:02:09 AM »

Hello,

i did my best to reproduce the issue. No chance. I test it like written in the post from avatar8. Please try again, i switched to multitab and set default settings. In moment i don't know what to do for helping. No seen error.  Are all your browser updated?

Be sure that we watch the secuirity offense to find a solution.

Dietmar
Logged

We are human beings - and nobody is perfect at all.
MissyW

Offline Offline

Posts: 42


« Reply #16 on: September 21, 2011, 12:33:02 PM »

Dear Dietmar

Thank you for logging in to the backend of my test site.

You said :
i did my best to reproduce the issue. No chance. I test it like written in the post from avatar8.
I did not have the identical situation to avatar8.  avatar8 could sometimes save (it sounded like a timing issue). My problem was I could NEVER save anything except the template files in the backend.  I could not change the Multitab SecureForm settings because I could not save.

Please try again, i switched to multitab and set default settings.
How did you manage to switch to multitab huh I tried to do this many times, but it would not let me save.   Now everything is fixed, and I am able to save everything in the backend with no problems.  cheesy Did you do something magic?  If not, I am suspecting a time-zone-related problem.  I am in Australia where it is 9pm on Wednesday, my server is in Philadelphia USA where it is now 7am on Wednesday.  But 7 hours ago, it was Wednesday in Australia but Tuesday in the USA.  It is now the same day in both countries.  I wonder if this has anything to do with the problem?  I will test again tomorrow, when there is a date difference, to see if the problem recurs.

Are all your browser updated?
Yes, my browsers are all up-to-date.

In moment i don't know what to do for helping. No seen error.  Are all your browser updated?

Be sure that we watch the secuirity offense to find a solution.

Dietmar
Currently there is no more problem for testing.  Either you fixed my problem, or it disappeared of its own accord - possibly due to the change in date on the server to match my browser date.  I will test it again tomorrow when there is a date difference between the time zones, and will let you know if the problem recurs.

Thank you so much for the support and your patience.
Logged
MissyW

Offline Offline

Posts: 42


« Reply #17 on: September 21, 2011, 12:40:15 PM »

Is there anything I can do to get rid of that message permanently? In my opinion, a CMS site that can be hacked is better than a CMS that doesn't allow you to save your changes smiley
A valid point!  It will be interesting to see if Dietmar can help us get to the bottom of this.  Thanks for contributing.
« Last Edit: September 21, 2011, 12:43:09 PM by MissyW » Logged
MissyW

Offline Offline

Posts: 42


« Reply #18 on: September 21, 2011, 11:40:04 PM »

Well, this is all rather strange.  I don't have a problem saving anymore.  Just tested the site on my Thursday morning when it is Wednesday where the server is located, but there is no longer any problem.  I am able to save everything. 

I am really puzzelled, Dietmar, as to what you did to fix the problem?  But many thanks, whatever it was!

Avatar8 - why don't you PM to Luisehahne (alias Dietmar/board member/moderator) and give Dietmar backend access in the Administrator Group, so he can try to duplicate your problems (or better fix them)?
Logged
avatar8

Offline Offline

Posts: 15


« Reply #19 on: September 22, 2011, 04:09:56 PM »

I'm glad you were able to get your problem solved, MissyW. Unfortunately, I'm still having the same problem with this one site. I have given Dietmar access to the backend to see if he can see it with his own yes, so I'll just wait to hear back from him.

I wonder if it might be a problem with this server now too. It's being hosted on Network Solutions, and I've been noticing another problem. I get the following error in the middle of the file browser when I click on Media:

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 20234928 bytes) in /data/16/2/114/76/2603728/user/2855845/htdocs/admin/media/browse.php on line 239

Note to Dietmar: you will not see this Fatal error message at the link I gave you because it's happening on another site on the same server that has an extremely large number of files in the media folder.

Logged
MissyW

Offline Offline

Posts: 42


« Reply #20 on: September 23, 2011, 02:54:55 AM »

All my conjecture about time-zone differences and server-related problems was pure guesswork based on Dietmar saying he found no problem in the backend of my website.  But now I have tested the site when times are on different dates at the server v. my browser, but still there is no error.

There absolutely were consistent errors for weeks before Dietmar logged in.  I can only conclude that he did something to fix the problem, but is not saying! 

I hope you get your problem fixed, avatar8.  Keep us posted.
Logged
avatar8

Offline Offline

Posts: 15


« Reply #21 on: October 12, 2011, 06:41:05 PM »

No, I was never able to solve my problem, so I had to disable those core functions.

Actually, I just notice something when trying to install a new Website Baker on the server. The install checklist has on item in red:

PHP Session Support Disabled

I hadn't noticed that before because I had only transferred the site from another server to this one.

Everything else seems to work fine, though, and the phpinfo file seems to have all the correct settings for the Sessions. There were only 2 differences that I could find:

On the server where it works:
session.save_path is /temp
session.use_only_co okies is On

Server with problems:
session.save_path is /data/16/2/114/76/2603728/user/2855855/cgi-bin/.php/sessions
session.use_only_co okies is Off

Other than that, the discrepancies in Website Baker functionality remain a mystery.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!