From 8ab83f3b582e23603a03c7ba28ed6b4e02b67277 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 25 Mar 2026 15:07:57 +0100 Subject: [PATCH] Backport fix #GHSA-3j3p-jjf7-hm9g --- htdocs/core/customreports.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/core/customreports.php b/htdocs/core/customreports.php index ede3150bfba..c4d43549d4e 100644 --- a/htdocs/core/customreports.php +++ b/htdocs/core/customreports.php @@ -112,6 +112,9 @@ if (!defined('USE_CUSTOM_REPORT_AS_INCLUDE')) { } } +// In customreport context, we force the protection to avoid forging of criteria including bind SQL injection +$conf->global->MAIN_DISALLOW_UNSECURED_SELECT_INTO_EXTRAFIELDS_FILTER = 1; + if (empty($mode)) { $mode = 'graph'; }