From 0a97f1b19c8211652ea113718830807701d15809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne=20Benke?= <1179011+defrance@users.noreply.github.com> Date: Thu, 18 Jan 2024 12:06:14 +0100 Subject: [PATCH 1/3] stock transfert realy not stable I detected quite a few bugs, absence of token, error in class definition on certain page... I don't understand how we could declare this module stable overnight without having a minimum of testing it. --- htdocs/core/modules/modStockTransfer.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/modules/modStockTransfer.class.php b/htdocs/core/modules/modStockTransfer.class.php index 652ba0480c9..597924d0e93 100644 --- a/htdocs/core/modules/modStockTransfer.class.php +++ b/htdocs/core/modules/modStockTransfer.class.php @@ -63,7 +63,7 @@ class modStockTransfer extends DolibarrModules // Used only if file README.md and README-LL.md not found. $this->descriptionlong = "Advanced management of stock transfer orders with generation of stock transfer sheets"; // Possible values for version are: 'development', 'experimental', 'dolibarr', 'dolibarr_deprecated' or a version string like 'x.y.z' - $this->version = 'dolibarr'; + $this->version = 'experimental'; // Url to the file with your last numberversion of this module //$this->url_last_version = 'http://www.example.com/versionmodule.txt'; From cfcb9bc2a0d7dfa139a35ecb4d046e73c933587f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 18 Jan 2024 13:31:40 +0100 Subject: [PATCH 2/3] Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 --- SECURITY.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SECURITY.md b/SECURITY.md index f004cea7c86..9728e353595 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -52,8 +52,12 @@ ONLY vulnerabilities discovered, when the following setup on test platform is us * $dolibarr_main_prod must be set to 1 in conf.php * $dolibarr_nocsrfcheck must be kept to the value 0 in conf.php (this is the default value) * $dolibarr_main_force_https must be set to something else than 0. -* The constant MAIN_SECURITY_CSRF_WITH_TOKEN must be set to 3 in the backoffice menu Home - Setup - Other (this protection should be set to 3 soon by default). CSRF attacks are accepted but - double check that you have set MAIN_SECURITY_CSRF_WITH_TOKEN to value 3. +* Some constant must be set in the backoffice menu Home - Setup - Other + - MAIN_SECURITY_CSRF_WITH_TOKEN must be set to 3 + - MAIN_RESTRICTHTML_ONLY_VALID_HTML = 1 + - MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY = 1 + - MAIN_RESTRICTHTML_REMOVE_ALSO_BAD_ATTRIBUTES = 1 + CSRF attacks and HTML injections are accepted but double check this setup that is experimental setup that already fix a lot of case and soon enabled by default. * ONLY security reports on modules provided by default and with the "stable" status are valid (troubles in "experimental", "development" or external modules are not valid vulnerabilities). * The root of web server must link to htdocs and the documents directory must be outside of the web server root (this is the default when using the default installer but may differs with external installer). * The web server setup must be done so that only the documents directory is in write mode. The root directory called htdocs must be read-only. From 246c7a3f5b6522068642534cb39d4828d93f010d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 18 Jan 2024 13:38:28 +0100 Subject: [PATCH 3/3] Update doc --- SECURITY.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/SECURITY.md b/SECURITY.md index 9728e353595..a10c1eb15b7 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -48,7 +48,7 @@ Reports are processed around once a month. ONLY vulnerabilities discovered, when the following setup on test platform is used, are "valid": -* The version to analyze must be the last version available in the "develop" branch or in the last stable "vX.Y" released version. Reports on vulnerabilities already fixed (so already reported) in the develop branch will not be validated. +* The version to analyze must be the last version available in the "develop" branch. Reports on vulnerabilities already fixed (so already reported) in the develop branch will not be validated. * $dolibarr_main_prod must be set to 1 in conf.php * $dolibarr_nocsrfcheck must be kept to the value 0 in conf.php (this is the default value) * $dolibarr_main_force_https must be set to something else than 0. @@ -91,12 +91,10 @@ Scope is the web application (backoffice) and the APIs. * Logout and other instances of low-severity Cross-Site Request Forgery * Reports from automated web vulnerability scanners (Acunetix, Vega, etc.) that have not been validated * Reports on features on modules flagged as "deprecated", "experimental" or "development" if the module needs to be enabled for that (this is not the case on production). -* Software or libraries versions or private IP disclosure when logged-in user is admin -* Stack traces or path disclosure when logged-in user is admin +* Software or libraries versions, private IP disclosure, Stack traces or path disclosure when logged-in user is admin. * Any vulnerabilities due to a configuration different than the one defined in chapter "Scope for qualified vulnerabilities". * Vulnerabilities affecting outdated browsers or platforms, or vulnerabilities inside browsers themself. * Brute force attacks on login page, password forgotten page or any public pages (/public/*) are not qualified if the recommended fail2ban rules were not installed. * SSL/TLS best practices -* Denial of Service attacks * Invalid or missing SPF (Sender Policy Framework) records (Incomplete or missing SPF/DKIM/DMARC) * Physical or social engineering attempts or issues that require physical access to a victim’s computer/device