-
AuthorPosts
-
twincarb Friend
twincarb
- Join date:
- April 2014
- Posts:
- 1
- Downloads:
- 27
- Uploads:
- 0
- Thanked:
- 1 times in 1 posts
October 31, 2016 at 8:01 pm #982165Hi,
I have just had a security scan of my server through patchman.co and it has highlighted an issue with the login module on JA_Social 2.The mod_login component was found to have a XSS error which was corrected in J3.4.4 more details can be found at this link. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-6939
It looks would appear the template needs two lines amending on the /html/mod_login/head.php
The two lines appear to be 12 & 18 when you look at the code in Joomla.
[code]- <? php
- /**
-
- @package Joomla.Site
-
- @subpackage mod_login
- *
-
- @copyright Copyright (C) 2005 – 2015 Open Source Matters, Inc. All rights reserved.
-
- @license GNU General Public License version 2 or later; see LICENSE.txt
- */
- defined(‘_JEXEC’) or die;
- require_once JPATH_SITE . ‘/components/com_users/helpers/route.php’;
- JHtml::_(‘behavior.keepalive’);
- JHtml::_(‘bootstrap.tooltip’);
- ?>
- <form action="<?php echo JRoute::_(JUri::getInstance()->toString(), true, $params->get(‘usesecure’)); ?>" method="post" id="login-form" class="form-inline">
- <?php if ($params->get(‘pretext’)) : ?>
- <div class="pretext">
- get(‘pretext’); ?>
- [/code]
This code has been updated in the core Joomla package but will need updating in this file of your template. The code below is the section that has bee updated.
The link to this file on the Joomla Github is https://github.com/joomla/joomla-cms/blob/staging/modules/mod_login/tmpl/default.php please note the files use different names but the same purpose.The rows to pay attention to below are Rows 10 & 14
- <?php
- /**
-
- @package Joomla.Site
-
- @subpackage mod_login
- *
-
- @copyright Copyright (C) 2005 – 2016 Open Source Matters, Inc. All rights reserved.
-
- @license GNU General Public License version 2 or later; see LICENSE.txt
- */
- defined(‘_JEXEC’) or die;
- JLoader::register(‘UsersHelperRoute’, JPATH_SITE . ‘/components/com_users/helpers/route.php’);
- JHtml::_(‘behavior.keepalive’);
- JHtml::_(‘bootstrap.tooltip’);
- ?>
- <form action="<?php echo JRoute::_(‘index.php’, true, $params->get(‘usesecure’)); ?>" method="post" 15. id="login-form" class="form-inline">
- <?php if ($params->get(‘pretext’)) : ?>
- <div class="pretext">
- get(‘pretext’); ?>
How to update the file.
First of all ensure you have a backup of your site before making any changes.
Log into Joomla Administration navigate to Extensions – Templates
In the column labeled "Template" click on ja_social_ii
On the new page click on "html" folder link on the left side menu
Scroll down till you find "mod_login" select this folder
From the items that open up select "head.php"
This is the file that needs to be edited.
Alternatively hopefully the template will be updated by Joomlart in the very near future.
I hope this information enables you to update this template, if you have any questions please post them below and myself or a member from Joomlart will assist.
Regards,
Dave1 user says Thank You to twincarb for this useful post
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 1, 2016 at 3:02 am #982246Hi Dave,
Thank you for your report, its much appreciated.
The team will update and it will be released in upcoming version of this template.
Regards
-
AuthorPosts
This topic contains 1 reply, has 2 voices, and was last updated by Saguaros 8 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum