(including admin) via "Forget Your Password"
(OFBIZ-4361)
Currently, any user (via ecommerce "Forget Your Password") has the ability to
reset another users password, including "admin" without permission.
By simply entering "admin" and clicking "Email Password", the following is
displayed:
The following occurred:
A new password has been created and sent to you. Please check your Email.
This now forces the user of the ERP to change their password.
It is also possible to generate a dictionary attack against ofbiz because there
is no capta code required. This is serious security risk.
I have modified the patch following comments I made in the Jira, notably
Removed unused Java variables
Removed a check in LoginEvents::forgotPassword which prevented to show error
messages
Changed fr and en SecurityExtPasswordSentToYou
+ SecurityExtThisEmailIsInResponseToYourRequestToHave labels
+ template PasswordEmail.ftl
+ loginservices.token_incorrect labels
Added fr and en SecurityExtIgnoreEmail + SecurityExtLinkOnce labels
Removed changes in general.properties
I did not remove the 2 GetSecurityQuestion.ftl files (webpos one was still in)
There is still room for improvement. I'll discuss them on the Jira and dev
ML. But this version is already strong enough to not wait that the patch is
inapplicable!
Thanks: mz4wheeler (Mike Z) for the Jira, Nicolas Malin for the patch, I guess
with some Gil's help, and all others for comments and ideas
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866478 13f79535-47bb-0310-9956-ffa450edef68
71 lines
4.2 KiB
XML
71 lines
4.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<theme name="rainbowstone"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns="http://ofbiz.apache.org/Widget-Theme" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Theme http://ofbiz.apache.org/dtds/widget-theme.xsd">
|
|
<visual-themes>
|
|
<visual-theme id="RAINBOWSTONE_SAPHIR" display-name="Rainbow Stone - Sapphire">
|
|
<description>${util:label('CommonEntityLabels', 'VisualTheme.description.RAINBOWSTONE_SAPHIR', locale)}</description>
|
|
<screenshot location="/rainbowstone/images/themeSaphir.png"/>
|
|
</visual-theme>
|
|
<visual-theme id="RAINBOWSTONE_AMBER" display-name="Rainbow Stone - Amber">
|
|
<description>${util:label('CommonEntityLabels', 'VisualTheme.description.RAINBOWSTONE_AMBER', locale)}</description>
|
|
<screenshot location="/rainbowstone/images/themeAmber.png"/>
|
|
</visual-theme>
|
|
<visual-theme id="RAINBOWSTONE_RUBY" display-name="Rainbow Stone - Sapphire">
|
|
<description>${util:label('CommonEntityLabels', 'VisualTheme.description.RAINBOWSTONE_RUBY', locale)}</description>
|
|
<screenshot location="/rainbowstone/images/themeRuby.png"/>
|
|
</visual-theme>
|
|
<visual-theme id="RAINBOWSTONE_EMERALD" display-name="Rainbow Stone - Sapphire">
|
|
<description>${util:label('CommonEntityLabels', 'VisualTheme.description.RAINBOWSTONE_EMERALD', locale)}</description>
|
|
<screenshot location="/rainbowstone/images/themeEmerald.png"/>
|
|
</visual-theme>
|
|
</visual-themes>
|
|
|
|
<extends location="component://common-theme/widget/Theme.xml"/>
|
|
<theme-properties>
|
|
<!--header image -->
|
|
<property name="VT_HDR_IMAGE_URL" value="/images/ofbiz_logo.png"/>
|
|
<!--template location-->
|
|
<property name="VT_HDR_TMPLT_LOC" value="component://rainbowstone/template/includes/Header.ftl"/>
|
|
<property name="VT_FTR_TMPLT_LOC" value="component://rainbowstone/template/includes/Footer.ftl"/>
|
|
<property name="VT_NAV_TMPLT_LOC" value="component://rainbowstone/template/includes/TopAppBar.ftl"/>
|
|
<property name="VT_CHPWD_TMPLT_LOC" value="component://rainbowstone/template/ChangePassword.ftl"/>
|
|
<property name="VT_FGPWD_TMPLT_LOC" value="component://rainbowstone/template/ForgotPassword.ftl"/>
|
|
<property name="VT_LOGIN_TMPLT_LOC" value="component://rainbowstone/template/Login.ftl"/>
|
|
<!--javascript lib-->
|
|
<property name="VT_HDR_JAVASCRIPT['add']" value="/rainbowstone/js/less.min.js"/>
|
|
<property name="VT_FTR_JAVASCRIPT['add']" value="/rainbowstone/js/rainbowstone.js"/>
|
|
<!--Css style-->
|
|
<property name="VT_STYLESHEET['add']" value="/rainbowstone/style.css"/>
|
|
<property name="VT_STYLESHEET['add']" value="/rainbowstone/flag-icon.min.css"/>
|
|
<property name="VT_STYLESHEET['add']" value="/rainbowstone/javascript.css"/>
|
|
<property name="VT_RTL_STYLESHEET['add']" value="/rainbowstone/stylertl.css"/>
|
|
<property name="VT_HELPSTYLESHEET['add']" value="/rainbowstone/help.css"/>
|
|
<property name="VT_DOCBOOKSTYLESHEET['add']" value="/rainbowstone/webapp/rainbowstone/docbook.css"/>
|
|
</theme-properties>
|
|
|
|
<templates>
|
|
<template name="screen" type="html" content-type="UTF-8" encoding="none" encoder="html" compress="false">
|
|
<template-file widget="menu" location="component://rainbowstone/template/macro/HtmlMenuMacroLibrary.ftl"/>
|
|
</template>
|
|
</templates>
|
|
</theme> |