To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/uNyTJqkfpqAJ.--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
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
);
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
> --
> You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
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.