Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Symfony security enhancement?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Fabian Lange  
View profile  
 More options Jan 23 2008, 2:28 pm
From: "Fabian Lange" <Fabian.La...@web.de>
Date: Wed, 23 Jan 2008 20:28:43 +0100
Local: Wed, Jan 23 2008 2:28 pm
Subject: Symfony security enhancement?
Hi,
as I am still running across symfony pages that have their dev env in
production I want to bring this up to dev-list notice. Any thoughts of
integrating a combination of Ant's and my idea?
I really think that enabling _dev on production should be a conscious step.
.: Fabian


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian P. Christian  
View profile  
 More options Jan 23 2008, 2:47 pm
From: "Ian P. Christian" <poo...@pookey.co.uk>
Date: Wed, 23 Jan 2008 19:47:21 +0000
Local: Wed, Jan 23 2008 2:47 pm
Subject: Re: [symfony-devs] Symfony security enhancement?

Fabian Lange wrote:
> Hi,
> as I am still running across symfony pages that have their dev env in
> production I want to bring this up to dev-list notice. Any thoughts of
> integrating a combination of Ant's and my idea?
> I really think that enabling _dev on production should be a conscious step.

I vote for having IP's (well, CIDR's preferably) defined somewhere for
limting access to the dev controller.

I would advise, by default, it allowed 127.0.0.1/32.  Maybe if there is
no /, it should assume a /32 mask.  Also, it would be nice if it
supported the syntax:
  192.168.0.0/255.255.255.0
as not everyone knows that that means /24.

So... in summary, this should be allowed:

dev:
  addresses:
    - 127.0.0.1
    - 192.168.0.0/24
    - 70.249.110.0/255.255.255.0

It's a great idea, but... we just need to find someone sufficiently
motivated to implement it :)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michel Weimerskirch  
View profile  
 More options Jan 23 2008, 2:55 pm
From: "Michel Weimerskirch" <mic...@weimerskirch.net>
Date: Wed, 23 Jan 2008 20:55:09 +0100
Local: Wed, Jan 23 2008 2:55 pm
Subject: Re: [symfony-devs] Re: Symfony security enhancement?
Hi

I put the following by default in the htaccess files of my symfony
applications to limit access to _dev-files to my machine only:

<FilesMatch "_dev\.php$">
  Order Deny,Allow
  Deny from all
  Allow from 127.0.0.1
</FilesMatch>

In the "Allow from" line you can also put multiple IPs or masks.

I don't think this should be configurable in a yaml file because yaml
it is too error-prone for security-related options: One whitespace
character too much and the configuration line is ignored.

Michel

On 1/23/08, Ian P. Christian <poo...@pookey.co.uk> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian P. Christian  
View profile  
 More options Jan 23 2008, 3:09 pm
From: "Ian P. Christian" <poo...@pookey.co.uk>
Date: Wed, 23 Jan 2008 20:09:23 +0000
Local: Wed, Jan 23 2008 3:09 pm
Subject: Re: [symfony-devs] Re: Symfony security enhancement?

Michel Weimerskirch wrote:
> Hi

> I put the following by default in the htaccess files of my symfony
> applications to limit access to _dev-files to my machine only:
> <snip>
> I don't think this should be configurable in a yaml file because yaml
> it is too error-prone for security-related options: One whitespace
> character too much and the configuration line is ignored.

You're right - YAML is bloody awful when it comes to validation and stuff...

I do however think that secure by default is a good idea in this case.  
Whilst your snipped of apache config makes sense, what about IIS, and
lighty and.. others.

If someone edits the config files, and messes up the format of it -
atleast we have tired to protect them.  At the moment, it's a far too
common issue for people to launch with it. I've found peoples passwords
for remote services in the debug toolbar output before - *something*
needs to be done ot mitigate this problem IMO - and default IP
restrictions seem like the most sensible bet to me.

The other option, is to have the development controllers name randomly
generated - although this solution really is quite a horrible idea I
think, and I blame the beer. ;)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Koopmanschap  
View profile  
 More options Jan 24 2008, 5:54 am
From: Stefan Koopmanschap <ste...@ibuildings.nl>
Date: Thu, 24 Jan 2008 02:54:00 -0800 (PST)
Subject: Re: Symfony security enhancement?
On Jan 23, 9:09 pm, "Ian P. Christian" <poo...@pookey.co.uk> wrote:

> You're right - YAML is bloody awful when it comes to validation and stuff...

It just means, like any serious developer, that you have to be really
aware of what you are doing. Having it default to the most secure
option will ensure that you have to conciously change it to something
else, and so have to pay attention to what you are doing (and test it
as well).

> I do however think that secure by default is a good idea in this case.
> Whilst your snipped of apache config makes sense, what about IIS, and
> lighty and.. others.

Indeed. Having it built into symfony makes more sense than doing it on
the webserver level. And since symfony uses YAML as configuration
syntax, YAML it should be for this as well.

> If someone edits the config files, and messes up the format of it -
> atleast we have tired to protect them.  At the moment, it's a far too
> common issue for people to launch with it. I've found peoples passwords
> for remote services in the debug toolbar output before - *something*
> needs to be done ot mitigate this problem IMO - and default IP
> restrictions seem like the most sensible bet to me.

Even I, and I consider myself a quite experienced developer, have
launched sites with the _dev in there as well. I seem to forget to add
those files to the rsync_exclude.txt files for some reason. Having a
good deployment document of course will prevent this, but having an
extra built-in security layer will at least prevent from accidental
deployments leading to security vulnerabilities.

> The other option, is to have the development controllers name randomly
> generated - although this solution really is quite a horrible idea I
> think, and I blame the beer. ;)

That idea is horrible and even with beer this should never even have
come up in your mind ;)

Stefan


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthias N.  
View profile  
 More options Jan 24 2008, 10:46 am
From: "Matthias N." <matthias.nothh...@googlemail.com>
Date: Thu, 24 Jan 2008 07:46:40 -0800 (PST)
Local: Thurs, Jan 24 2008 10:46 am
Subject: Re: Symfony security enhancement?
Just wanted to remember that we already have a small wiki page about
that topic:
http://trac.symfony-project.com/wiki/SecuringDevFrontend

On 23 Jan., 20:28, "Fabian Lange" <Fabian.La...@web.de> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthias N.  
View profile  
 More options Jan 24 2008, 10:48 am
From: "Matthias N." <matthias.nothh...@googlemail.com>
Date: Thu, 24 Jan 2008 07:48:18 -0800 (PST)
Local: Thurs, Jan 24 2008 10:48 am
Subject: Re: Symfony security enhancement?
On 24 Jan., 16:46, "Matthias N." <matthias.nothh...@googlemail.com>
wrote:

> Just wanted to remember that we already have a small wiki page about
> that topic:http://trac.symfony-project.com/wiki/SecuringDevFrontend

Maybe we could create something like a sfAdvancedSecurityPlugin ?
But  symfony should be secure by default..

Regards,
Matthias


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lukas Kahwe Smith  
View profile  
 More options Jan 24 2008, 10:53 am
From: Lukas Kahwe Smith <m...@pooteeweet.org>
Date: Thu, 24 Jan 2008 16:53:12 +0100
Local: Thurs, Jan 24 2008 10:53 am
Subject: Re: [symfony-devs] Re: Symfony security enhancement?

On 24.01.2008, at 16:48, Matthias N. wrote:

> On 24 Jan., 16:46, "Matthias N." <matthias.nothh...@googlemail.com>
> wrote:
>> Just wanted to remember that we already have a small wiki page about
>> that topic:http://trac.symfony-project.com/wiki/SecuringDevFrontend

> Maybe we could create something like a sfAdvancedSecurityPlugin ?
> But  symfony should be secure by default..

Yeah .. there is no reason to not have all non stable frontend  
controllers to be generated outside of the web dir in symfony 1.1 ..

regards,
Lukas


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sadri Sahraoui  
View profile  
 More options Jan 25 2008, 7:20 am
From: "Sadri Sahraoui" <okworld....@gmail.com>
Date: Fri, 25 Jan 2008 15:20:45 +0300
Local: Fri, Jan 25 2008 7:20 am
Subject: Re: [symfony-devs] Re: Symfony security enhancement?
On Jan 24, 2008 6:53 PM, Lukas Kahwe Smith <m...@pooteeweet.org> wrote:

> On 24.01.2008, at 16:48, Matthias N. wrote:

> > On 24 Jan., 16:46, "Matthias N." <matthias.nothh...@googlemail.com>
> > wrote:
> >> Just wanted to remember that we already have a small wiki page about
> >> that topic:http://trac.symfony-project.com/wiki/SecuringDevFrontend

> > Maybe we could create something like a sfAdvancedSecurityPlugin ?
> > But  symfony should be secure by default..

Maybe that should be integrated by default into the freeze or sync
task which will secure the application by adding appropriate
htaccess/filters and remove the dev stuff ? and make an nonsecure
option to the task that will disable the secure deployment to a
nonsecure one but the developer will be aware of it !

--
brainfault


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fabien POTENCIER  
View profile  
(1 user)  More options Jan 25 2008, 7:41 am
From: Fabien POTENCIER <fabien.potenc...@symfony-project.com>
Date: Fri, 25 Jan 2008 13:41:35 +0100
Local: Fri, Jan 25 2008 7:41 am
Subject: Re: [symfony-devs] Re: Symfony security enhancement?

The *_dev.php are excluded by the sync command by default but not all
people use this task to deploy their project.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google