From f8f35b26c6cd2b5981da8173b46f2ba3be170a46 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Fri, 2 Oct 2026 14:16:59 +0200 Subject: [PATCH] Fix MySQL manual editor ACL bypass This fixes missing permission checks in the MySQL manual configuration editor, with both read and write endpoints now require full configuration permissions to match the existing checks used by the configuration editor. --- CHANGELOG.md | 1 + mysql/edit_manual.cgi | 1 + mysql/save_manual.cgi | 1 + 3 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4871b8c9..b80ee6e75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * Fix HTML escaping of module, script and session fields on the Webmin Actions Log details page * Fix mailbox attachment option injection * Fix path traversal and command injection in parameterized Custom Commands file editors +* Fix MySQL/MariaDB manual editor ACL bypass #### 2.670 (September 20, 2026) * Add new Hardware Information module for inspecting system, firmware, security, PCI, USB, storage, network, processor, sensor, driver, and kernel module details diff --git a/mysql/edit_manual.cgi b/mysql/edit_manual.cgi index 864c456bb..c6b7dfbfa 100755 --- a/mysql/edit_manual.cgi +++ b/mysql/edit_manual.cgi @@ -2,6 +2,7 @@ # Show a config file for manual editing require './mysql-lib.pl'; +$access{'perms'} == 1 || &error($text{'cnf_ecannot'}); &ReadParse(); &ui_print_header($header_subtext, $text{'manual_title'}, ""); diff --git a/mysql/save_manual.cgi b/mysql/save_manual.cgi index d23d0b1a2..81fac60b7 100755 --- a/mysql/save_manual.cgi +++ b/mysql/save_manual.cgi @@ -2,6 +2,7 @@ # Save a manually edited config file require './mysql-lib.pl'; +$access{'perms'} == 1 || &error($text{'cnf_ecannot'}); &ReadParseMime(); &error_setup($text{'manual_err'});