Skip to content

(hardening) Authorize existing target trees before QuickTree writes - #43

Open
somethingwithproof wants to merge 2 commits into
mainfrom
fix/hardening-quicktree-auth-41
Open

somethingwithproof wants to merge 2 commits into
mainfrom
fix/hardening-quicktree-auth-41

Conversation

@somethingwithproof

Copy link
Copy Markdown
Member

QuickTree currently writes headings and graphs into a request-selected tree without target authorization. Check visibility and the host ownership policy before any existing-tree write, for both ID and name lookups. On older hosts without the resource helper, allow only the owner or an administrator. Filter the tree selector with the same policy and reject invalid explicit IDs.

Validation: PHP 8.4.25 standalone regression, 9 owner/admin/view-denial/invalid-ID and newer-host-helper cases passed; syntax and diff checks passed.

Closes #41.

@somethingwithproof somethingwithproof self-assigned this Oct 10, 2026
@somethingwithproof
somethingwithproof force-pushed the fix/hardening-quicktree-auth-41 branch from 80bdad8 to 6b9b8fa Compare October 17, 2026 19:54
@somethingwithproof
somethingwithproof changed the base branch from develop to main October 17, 2026 19:54
@somethingwithproof
somethingwithproof force-pushed the fix/hardening-quicktree-auth-41 branch 2 times, most recently from 8d8b765 to 59f58f2 Compare October 17, 2026 19:58
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

@TheWitness TheWitness left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function should be in includes/security.php and not in setup.php.

Comment thread setup.php Outdated
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Security: saving to an existing tree bypasses target-tree authorization

2 participants