From 643b9c7ea7dfc3e9df4b80527bf83d162f3bc39f Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Mon, 29 Mar 2021 13:13:53 +0200 Subject: [PATCH] Improved: Comment out the SOAP and HTTP engines (OFBIZ-12212) The SOAP and HTTP engines are open doors to security issues. At https://markmail.org/message/pgtjyh23bazq4s2w I proposed to comment them out as we did for RMI in the past. Of cause it must be clearly documented how to use them if needed. Here is the email content: After the recent fix for the CVE-2021-26295[1] we discussed with the security team about the opportunity need to comment out the SOAP and HTTP engines like we did in the past for RMI[2], this obviously for security reason. [1] OFBIZ-12167 "Adds a blacklist (to be renamed soon to denylist) in Java serialisation (CVE-2021-26295)" [2] OFBIZ-6942 "Comment out RMI related code because of the Java deserialization issue [CVE-2016-2170] " I just put a small comment in webtools controller, it should be enough. The tests pass --- framework/common/servicedef/services_test.xml | 38 +++++++++---------- .../webcommon/WEB-INF/handlers-controller.xml | 2 +- framework/service/config/serviceengine.xml | 12 +++--- framework/service/testdef/servicetests.xml | 2 +- .../webapp/webtools/WEB-INF/controller.xml | 5 ++- 5 files changed, 30 insertions(+), 29 deletions(-) diff --git a/framework/common/servicedef/services_test.xml b/framework/common/servicedef/services_test.xml index 2963778ae6..d21e921070 100644 --- a/framework/common/servicedef/services_test.xml +++ b/framework/common/servicedef/services_test.xml @@ -71,13 +71,13 @@ under the License. - + - + - @@ -100,12 +100,12 @@ under the License. - + FIXME For now, not sure why, the 4 remote SOAP services below don't work - - - - + the location = endpoint = SOAP action + invoke parameter is the name of the operation to invoke, for example LatLonListZipCode + invoke parameter is needed when there are several possible operations for the SOAP action + FIXME For now, not sure why, this remote SOAP service does not work @@ -118,10 +118,10 @@ under the License. - - - - + the location = endpoint = SOAP action + invoke parameter is the name of the operation to invoke, for example LatLonListCityNames + invoke parameter is needed when there are several possible operations for the SOAP action + FIXME For now, not sure why, this remote SOAP service does not work @@ -134,7 +134,7 @@ under the License. - + FIXME For now, not sure why, this remote SOAP service does not work @@ -143,13 +143,13 @@ under the License. - + FIXME For now, not sure why, this remote SOAP service does not work - + --> Test Groovy Script Service diff --git a/framework/common/webcommon/WEB-INF/handlers-controller.xml b/framework/common/webcommon/WEB-INF/handlers-controller.xml index 1622d10ead..9e1b9e7289 100644 --- a/framework/common/webcommon/WEB-INF/handlers-controller.xml +++ b/framework/common/webcommon/WEB-INF/handlers-controller.xml @@ -24,7 +24,7 @@ under the License. - + diff --git a/framework/service/config/serviceengine.xml b/framework/service/config/serviceengine.xml index dcd1a80bf1..96bf1e4e9a 100644 --- a/framework/service/config/serviceengine.xml +++ b/framework/service/config/serviceengine.xml @@ -52,10 +52,10 @@ under the License. - + - + @@ -66,14 +66,14 @@ under the License. - - + - + - + diff --git a/framework/webtools/webapp/webtools/WEB-INF/controller.xml b/framework/webtools/webapp/webtools/WEB-INF/controller.xml index 4ded5c7d84..4d39271771 100644 --- a/framework/webtools/webapp/webtools/WEB-INF/controller.xml +++ b/framework/webtools/webapp/webtools/WEB-INF/controller.xml @@ -86,7 +86,8 @@ under the License. - + +