From 137b60b6ad0b4dc6856b41f7d430fe5bec17d686 Mon Sep 17 00:00:00 2001 From: Thomas Vincent Date: Sat, 10 Oct 2026 02:29:04 -0700 Subject: [PATCH 1/2] security: Authorize existing target trees before QuickTree writes (#41) Signed-off-by: Thomas Vincent --- CHANGELOG.md | 1 + quicktree.php | 16 ++++ setup.php | 28 ++++++ tests/Unit/QuicktreeTreeAuthorizationTest.php | 91 +++++++++++++++++++ tests/save-authorization.php | 54 +++++++++++ 5 files changed, 190 insertions(+) create mode 100644 tests/Unit/QuicktreeTreeAuthorizationTest.php create mode 100644 tests/save-authorization.php diff --git a/CHANGELOG.md b/CHANGELOG.md index c65bf20..01997ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ * dev: Measure CI coverage with xdebug instead of pcov so the plugin's own sources are instrumented (pcov auto-scopes to the Composer root and skipped cacti/plugins/, leaving the patch-coverage gate with nothing to measure) * dev: Enforce patch coverage of changed lines in CI and remove the inert COMPOSER_ROOT_VERSION env from the Pest step * security: Add a version-safe CSP nonce (`plugin_quicktree_csp_nonce()`) to every inline `