WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • General Community »
  • Global WebsiteBaker 2.8.x discussion »
  • Security offense!! Access denied!
  • Print
Pages: 1 2 [3] 4 5   Go Down

Author Topic: Security offense!! Access denied!  (Read 132265 times)

NorHei

  • Guest
Re: Security offense!! Access denied!
« Reply #50 on: May 10, 2011, 05:05:12 PM »
To me this looks like a great solution .
One token is only valid for one already loaded form and for nothing else.
Logged

NorHei

  • Guest
Re: Security offense!! Access denied!
« Reply #51 on: May 11, 2011, 12:30:41 AM »

I build a replacement for the default SecureForm.php

It seemst to be functional so far , maybe someone else runns some more decent tests.

Just paste  it to over the old  /framework/SecureForm.php.
Btw i added the old Version for easy restore.

If its fully functional i guess its at least 100 times better than disabling the checks.

Have fun and enjoy  :lol:


[gelöscht durch Administrator]
« Last Edit: May 11, 2011, 12:47:33 AM by Argos »
Logged

Argos

  • Guest
Re: Security offense!! Access denied!
« Reply #52 on: May 11, 2011, 12:49:52 AM »
How can we test something like this? I mean, what do we have to look for? The absence of usability issues like the FTAN ones? Or something specific?
Logged

Offline BlackBird

  • Posts: 2573
Re: Security offense!! Access denied!
« Reply #53 on: May 11, 2011, 11:35:03 AM »
That's a good question. I think the most important thing is that it works across tabs, for this is the reason for the patch. Next, you may try to hack the token in the form to see what happens. (There should be something like "access denied" then.) Maybe NorHei can give more examples.
Logged
http://wbaddons.webbird.de Don't miss this

Argos

  • Guest
Re: Security offense!! Access denied!
« Reply #54 on: May 11, 2011, 12:11:15 PM »
Do you mean with "works across tabs" that you can have multiple forms opened in the tabs? Because that's the biggest problem I personally would like to get rid of.
Logged

Offline BlackBird

  • Posts: 2573
Re: Security offense!! Access denied!
« Reply #55 on: May 11, 2011, 12:19:05 PM »
Yes.

With the new solution, a token is generated that is signed by the server. It is not stored in the session or somewhere else, but it has a timeout.

You can work with multiple tabs, but you can't post the form with another User Agent or from another IP. (This means, you cannot open the form with one browser and post the same form with the same token with another one. But you can open as many forms as you like with the same session in different tabs.) The token is still secure. (See explanations by following the link I provided some posts up.)
Logged
http://wbaddons.webbird.de Don't miss this

Argos

  • Guest
Re: Security offense!! Access denied!
« Reply #56 on: May 11, 2011, 12:33:20 PM »
Ah! Sounds perfect then. The technical stuff about tokens and sessions and what have you is far beyond my understanding, it's all mumbojumbo to me I'm afraid. And I must admit it doesn't interest me either. I'm a designer, not a coder. But if the result is that multiple tabs with open forms are possible (so usability is not affected), and WB is still more secured, than it sounds great!
Logged

Offline BlackBird

  • Posts: 2573
Re: Security offense!! Access denied!
« Reply #57 on: May 11, 2011, 12:57:03 PM »
Yes. In my opinion, it's a good solution, and I don't think it is less secure than the original one. I am discussing with NorHei by PN some options to improve token security a little bit, by generating a random secret and storing it outside the code. There could also be an automatic re-generation of the secret every X days, for example. Only someone with more "criminal energy" should check the solution. ;)
Logged
http://wbaddons.webbird.de Don't miss this

NorHei

  • Guest
Re: Security offense!! Access denied!
« Reply #58 on: May 11, 2011, 12:59:36 PM »
For now i added no Browser fingerprinting as should be done by the session.

Normally the session should logout and present a password field if someone changes his browser of maybe IP.
So for now you can even use different Browsers and different IP.

If you like i can add some advanved Fingerprinting that can be turened on an off, as fingerprinting sometimes can cause some troubles.

The Security part is the part i checked myself , i need some additional checking whith funktionality on different forms  so simply turn on errors and use it :-)
Logged

Offline BlackBird

  • Posts: 2573
Re: Security offense!! Access denied!
« Reply #59 on: May 11, 2011, 01:01:35 PM »
I will have problems with this kind of token, as my IP changes with every hit. (LoadBalancer)
Logged
http://wbaddons.webbird.de Don't miss this

Argos

  • Guest
Re: Security offense!! Access denied!
« Reply #60 on: May 11, 2011, 01:03:51 PM »
Please let us know when it's time to test! And is the download in your previous post the latest version all the time?
Logged

NorHei

  • Guest
Re: Security offense!! Access denied!
« Reply #61 on: May 11, 2011, 01:23:13 PM »
@Blackbird
http://en.wikipedia.org/wiki/X-Forwarded-For
Is already implemented in my fingerprint functions
Another option would be to use just the first 2 parts of your IP .

@Argos
i thought of posting a fresh version at the end of the thread as it only makes sense to moduify the old one  if the old entry is at the beginning of the thread. If you can add an entry at the start of the thread i would up date that too.
Logged

Offline BlackBird

  • Posts: 2573
Re: Security offense!! Access denied!
« Reply #62 on: May 11, 2011, 01:28:50 PM »
I would open a new thread when the patch is ready. :-D I think that's more eye-catching.
Logged
http://wbaddons.webbird.de Don't miss this

NorHei

  • Guest
Re: Security offense!! Access denied!
« Reply #63 on: May 11, 2011, 04:54:26 PM »
Ok version 0.2.

Added browser fingerprint  and ip check (even if behind proxy or loadbalancer).

If you want some special configuration put this somewhere in your config.php for example

Code: [Select]
# Secret can contain anything its the base for the secret part for the hash
define ('WB_SECFORM_SECRET','whatever you like');
# shall we use fingerprinting true/false
define ('WB_SECFORM_USEFP', true);
# Timeout till the form token times out. Integer value between 0-86400 seconds (one day)     
define ('WB_SECFORM_TIMEOUT', 3600);   
# Name for the token form element only alphanumerical string allowed that starts whith a charakter
define ('WB_SECFORM_TOKENNAME','my3form3');
# how many blocks of the IP should be used in fingerprint 0=no ipcheck, possible values 0-4
defined ('WB_SECFORM_USEIP',2);


Just wanted to mention that this is code is not cleaned up at all if no useage problems occure i clean it up whith the next versions .


Btw. is anyone has an idea what this  IDKEY is exactly doing please feel free to explain.
(or maybe where i can find a decent explanation)




[gelöscht durch Administrator]
Logged

NorHei

  • Guest
Re: Security offense!! Access denied!
« Reply #64 on: May 11, 2011, 07:24:28 PM »
Version 0.3

Did some cleanup and fixed a small bug.(missing  _)

[gelöscht durch Administrator]
« Last Edit: May 11, 2011, 07:39:04 PM by NorHei »
Logged

NorHei

  • Guest
Re: Security offense!! Access denied!
« Reply #65 on: May 13, 2011, 12:03:26 PM »
Opened a seperate thread for it :

https://forum.WebsiteBaker.org/index.php/topic,21527.0.html
Logged

Offline BlackBird

  • Posts: 2573
Re: Security offense!! Access denied!
« Reply #66 on: June 10, 2011, 11:48:46 AM »
I've installed the current WB2.8.2 RC6 for the first time, and for the first time I see that it's completely unusable! I have ONE Tab with WB2.8.2, but another one with my "old" 2.8.1-installation, tried to add a first page, and I'm getting the security warning instantly. :x
Logged
http://wbaddons.webbird.de Don't miss this

instantflorian

  • Guest
Re: Security offense!! Access denied!
« Reply #67 on: June 10, 2011, 12:32:23 PM »
@Blackbird: Does this still happen after you installed NorHei's patch?
Logged

Offline BlackBird

  • Posts: 2573
Re: Security offense!! Access denied!
« Reply #68 on: June 10, 2011, 01:16:50 PM »
Yepp. I'm unable to create new pages.
Logged
http://wbaddons.webbird.de Don't miss this

Offline ruebenwurzel

  • Betatester
  • **
  • Posts: 8544
  • Gender: Male
  • Keep on Rockin
    • Familie Gallas Online
Re: Security offense!! Access denied!
« Reply #69 on: June 10, 2011, 01:31:04 PM »
Hello,

Quote
WB2.8.2 RC6 for the first time, and for the first time I see that it's completely unusable!

Just for to clearify, not WB 2.8.2 RC6 ist unusable. It only will get unusable when it is patched. So it is good, that this patch will find no way to the core.

Matthias
« Last Edit: June 10, 2011, 01:32:55 PM by ruebenwurzel »
Logged

Offline maverik

  • Posts: 1572
  • Gender: Male
  • ..:: viva los tioz ::..
Re: Security offense!! Access denied!
« Reply #70 on: June 10, 2011, 01:54:36 PM »
Quote
It only will get unusable when it is patched
  :-o  :?

Same behavior as bianka discribes i had too without patch. i am working on 3 live sites with rc6 with patch and working is possible for me.
without patch it wasn´t.
Logged

Offline BlackBird

  • Posts: 2573
Re: Security offense!! Access denied!
« Reply #71 on: June 10, 2011, 02:12:06 PM »
Just to clarify, same behaviour with UNPATCHED RC6. I installed the patch to fix it.
Logged
http://wbaddons.webbird.de Don't miss this

instantflorian

  • Guest
Re: Security offense!! Access denied!
« Reply #72 on: June 10, 2011, 02:20:06 PM »
Quote
Just for to clearify, not WB 2.8.2 RC6 ist unusable. It only will get unusable when it is patched. So it is good, that this patch will find no way to the core.

No. Objection! Same as Maverik for me. Without patch, the RC6 still throws from time to time (not always, strange enough) the "security offense" error even if only 1 tab is opened. So this version is not completely "unusable" (thats a strong word), but a bit risky to use.  With Norhei's patch, this problem disappears.

BR
_florian.

Logged

NorHei

  • Guest
Re: Security offense!! Access denied!
« Reply #73 on: June 10, 2011, 02:28:10 PM »
I can only make a guess.

I think its because some modules open stuff in a new popup window or do some other kind of transaction . As whithout the patch there is only one valid transaction possible the main form becomes invalid after adding an image in CKE for example.

Logged

Offline maverik

  • Posts: 1572
  • Gender: Male
  • ..:: viva los tioz ::..
Re: Security offense!! Access denied!
« Reply #74 on: June 10, 2011, 02:32:36 PM »
If updatet one live site, good friend of me, without information to him that i have updatet the site because i want see what happend.
I asked me : "Do other, normal User work in the same way i do."

After some days he calls me and said that he cant save pages, Acces denied, whats happend with the site and whats to do. I installed the patch and problem was solved. Since this time he never called me again. Ok, he called for drinking a beer together  :-D



Logged

  • Print
Pages: 1 2 [3] 4 5   Go Up
  • WebsiteBaker Community Forum »
  • General Community »
  • Global WebsiteBaker 2.8.x discussion »
  • Security offense!! Access denied!
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2