Fixed: Sorting of lists generates undesired results (OFBIZ-8302) · apache/ofbiz-framework@cd242ea · GitHub
Skip to content

Commit cd242ea

Browse files
committed
Fixed: Sorting of lists generates undesired results (OFBIZ-8302)
For this issue (OFBIZ-8302) I reverted the point 1 of http://svn.apache.org/viewvc?view=revision&revision=1759555 As reported by Alvaro Munoz from GH security team it's not sufficient: <<the second part of the fix was not effective, since the attacker can close the raw string context with a double quote and write a new attribute or even close the macro tag and write arbitrary FreeMarker code.>> So this removes the 2nd part and add better solution to fix the OFBIZ-8302 issue The solution is to encode only the QueryString and to handle it correctly in UtilHttp::getParameterMap. I must say it was not a sinecure!
1 parent 4a41f0f commit cd242ea

2 files changed

Lines changed: 27 additions & 4 deletions

File tree

framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java

Lines changed: 21 additions & 1 deletion

framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/macro/MacroFormRenderer.java

Lines changed: 6 additions & 3 deletions

0 commit comments

Comments
 (0)