From a59c0054c8779bf21638c6c92efddf4cdc88f8a2 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Fri, 14 Apr 2017 11:04:04 +0000 Subject: [PATCH] Fixed: On setting verbose true, UtilHttp.getParameterMap() method prints username and password in logs (OFBIZ-9310) In UtilHttp.getParameterMap(HttpServletRequest request, Set... method, following line of code prints username and password in logs when verbose is set to true. Debug.logVerbose("Request Parameter Map Entries: " + System.getProperty("line.separator") + UtilMisc.printMap(paramMap), module); Aditya suggested: Removed the line that prints "Request Parameter Map Entries" as it may print username and password entered by user when verbose set to true. It may not be a grave concern for staging environment as verbose are not logged there but it is still unethical to print such details. jleroux: I decided to rather comment out the line which might still be useful in some cases... Thanks: Aditya Sharma git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1791346 13f79535-47bb-0310-9956-ffa450edef68 --- .../base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java index 65e086a7ef..bd57f25582 100644 --- a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java +++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java @@ -158,7 +158,7 @@ public final class UtilHttp { if (Debug.verboseOn()) { Debug.logVerbose("Made Request Parameter Map with [" + paramMap.size() + "] Entries", module); - Debug.logVerbose("Request Parameter Map Entries: " + System.getProperty("line.separator") + UtilMisc.printMap(paramMap), module); + //Debug.logVerbose("Request Parameter Map Entries: " + System.getProperty("line.separator") + UtilMisc.printMap(paramMap), module); see OFBIZ-9310 } return canonicalizeParameterMap(paramMap);