Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Set cookies to Httponly?
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
  9 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
 
Techbot  
View profile  
 More options Apr 16 2012, 4:56 am
From: Techbot <djtech...@gmail.com>
Date: Mon, 16 Apr 2012 01:56:28 -0700 (PDT)
Local: Mon, Apr 16 2012 4:56 am
Subject: Set cookies to Httponly?

Hi All,

I've just built a website with a simple component that matches businesses
by type (like computerised dating for manufacturers :-) ). But the client
has insisted that my work is insecure because the cookies are not set to
httponly. I do not use cookies in my code. Nor are there any settings for
cookies in joomla and I have no other extensions installed. Is there a
technique I am missing?

Rob

Request:
GET http://emc23.com/ HTTP/1.1
Host: emc23.com
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0)
Gecko/20100101 Firefox/8.0
Accept: text/html,application/xhtml+xml,application/
xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
DNT: 1
Proxy-Connection: keep-alive
Cookie:
1da6be753397615b2862e9e7112f69d6
=22bfflpo962cjujglm8dkmaef7; gantry-
23993ebf69b5cbb4ac0849e2e77e8edd-
font-size-is=large

Relevant Response:
HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate,
post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Expires: Mon, 1 Jan 2001 00:00:00 GMT
Last-Modified: Mon, 28 Nov 2011 15:26:48 GMT
Server: Microsoft-IIS/7.0
X-Powered-By: PHP/5.2.17
P3P: CP="NOI ADM DEV PSAi COM NAV OUR

Evidence

Set-Cookie:

11157dc14dcde32b631e222b1e55c08
3=deleted; expires=Sun, 28-Nov-2010
15:26:33 GMT; path=/
Set-Cookie: gantry-
23993ebf69b5cbb4ac0849e2e77e8edd-
font-size-is=deleted; expires=Tue, 27-
Nov-2012 15:26:45 GMT; path=/
X-Content-Encoded-By: Joomla! 1.5
X-Powered-By: ASP.NET
X-App-Hosting: pool=classic
Date: Mon, 28 Nov 2011 15:26:48 GMT
Connection: close
Content-Length: 27468

<!DOCTYPE html PUBLIC "-//W3C//DTD
XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en-gb" lang="en-gb" >
<


 
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.
Craig Phillips  
View profile  
 More options Apr 16 2012, 6:31 am
From: Craig Phillips <cp21...@gmail.com>
Date: Mon, 16 Apr 2012 03:31:45 -0700 (PDT)
Local: Mon, Apr 16 2012 6:31 am
Subject: Re: Set cookies to Httponly?

It appears you're using a template based on the Gantry framework<http://www.gantry-framework.org/>,
which uses cookies to store individual user preferences for attributes like
font-size or template colour scheme.


 
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.
Rob Stocker  
View profile  
 More options Apr 16 2012, 6:40 am
From: Rob Stocker <i...@emc23.com>
Date: Mon, 16 Apr 2012 11:40:18 +0100
Local: Mon, Apr 16 2012 6:40 am
Subject: Re: [jcms] Re: Set cookies to Httponly?

:-)
Hi Craig,
I just inherited this site and never paid attention to the template. I
assumed it was a static affair.

Thank you very much.

regards
Rob

--
Rob & Lisa - EMC23
083 416 0618
<http://goog_1827821969>i...@emc23.com
www.emc23.com

 
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.
Gary Mort  
View profile  
 More options Apr 16 2012, 10:00 am
From: Gary Mort <garyam...@gmail.com>
Date: Mon, 16 Apr 2012 10:00:36 -0400
Local: Mon, Apr 16 2012 10:00 am
Subject: Re: [jcms] Set cookies to Httponly?

On 4/16/2012 4:56 AM, Techbot wrote:

> Hi All,

> I've just built a website with a simple component that matches
> businesses by type (like computerised dating for manufacturers :-) ).
> But the client has insisted that my work is insecure because the
> cookies are not set to httponly. I do not use cookies in my code. Nor
> are there any settings for cookies in joomla and I have no other
> extensions installed. Is there a technique I am missing?

Joomla sets a session cookie.  Anonymous users are still users, their
just all users with the name anonymous and the group guest.

Joomla! uses most of the PHP Session functions, so you CAN make changes
there.
http://www.php.net/manual/en/function.session-set-cookie-params.php

So a simple system plugin might do the trick.  Use the beforeRender
event and run:
$currentCookieParams=session_get_cookie_params();
$httpOnly = true;
session_set_cookie_params(
$currentCookieParams["lifetime"],
$currentCookieParams["path"],
$currentCookieParams["domain"],
$currentCookieParams["secure"],
$httpOnly
);


 
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.
Rob Stocker  
View profile  
 More options Apr 16 2012, 10:34 am
From: Rob Stocker <i...@emc23.com>
Date: Mon, 16 Apr 2012 15:34:38 +0100
Local: Mon, Apr 16 2012 10:34 am
Subject: Re: [jcms] Set cookies to Httponly?

Excellent Gary,
that's exactly what I need to do.

Thanks
Rob

083 416 0618
<http://goog_1827821969>i...@emc23.com
www.emc23.com

 
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.
Rouven Weßling  
View profile  
 More options Apr 16 2012, 4:29 pm
From: Rouven Weßling <m...@rouvenwessling.de>
Date: Mon, 16 Apr 2012 22:29:14 +0200
Local: Mon, Apr 16 2012 4:29 pm
Subject: Re: [jcms] Set cookies to Httponly?
You can actually control this for the session cookie - the only Joomla cookies for which this makes sense - trough the php.ini. Just set session.cookie_httponly to true.

It may be worth considering doing this via PHP in the core. But as a warning, it's a really thin layer of security since you can get around it trough AJAX requests.

Rouven

On 16.04.2012, at 16:34, Rob Stocker wrote:


 
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.
piotr_cz  
View profile  
 More options Apr 17 2012, 1:55 pm
From: piotr_cz <pkoniec...@hotmail.com>
Date: Tue, 17 Apr 2012 10:55:37 -0700 (PDT)
Local: Tues, Apr 17 2012 1:55 pm
Subject: Re: Set cookies to Httponly?
As far as I know, non-htttponly cookies could be an security issue
only if you are running 3p javascript on the website (ads, widgets,
etc) but then there are more risks.

On Apr 16, 10:29 pm, Rouven Weßling <m...@rouvenwessling.de> wrote:


 
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.
garyamort  
View profile  
 More options Apr 18 2012, 3:08 pm
From: garyamort <garyam...@gmail.com>
Date: Wed, 18 Apr 2012 12:08:32 -0700 (PDT)
Local: Wed, Apr 18 2012 3:08 pm
Subject: Re: Set cookies to Httponly?

On Tuesday, April 17, 2012 1:55:37 PM UTC-4, piotr_cz wrote:

> As far as I know, non-htttponly cookies could be an security issue
> only if you are running 3p javascript on the website (ads, widgets,
> etc) but then there are more risks.

At the end of the day, if the client wants httponly cookies - it's a lot
easier to give them httponly cookies then to convince them that the
security they offer is negligible.

 
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.
piotr_cz  
View profile  
 More options Apr 19 2012, 4:08 am
From: piotr_cz <pkoniec...@hotmail.com>
Date: Thu, 19 Apr 2012 01:08:42 -0700 (PDT)
Local: Thurs, Apr 19 2012 4:08 am
Subject: Re: Set cookies to Httponly?
Unfortunately you are right.
Just wish everybody the least of this kind of clients.

On Apr 18, 9:08 pm, garyamort <garyam...@gmail.com> wrote:


 
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 Older topic »