CVE-2026-135387: HortusFox: Missing CSRF validation in HortusFox AdminController enables unauthenticated state-changing actions via GET
HortusFox is a self-hosted web application for collaborative plant management. Prior to 6.2, state-changing AdminController routes in app/config/routes.php accept GET requests. The affected AdminController in app/controller/admin.php does not invoke Asatru\Controller\PostValidator to check CSRF tokens. An unauthenticated attacker can induce a signed-in administrator to open a cross-site link, causing privileged actions such as changing environment settings, deleting users or locations, managing API keys, or clearing cached data. In the tested build, a cross-site POST to /admin/user/update can promote a user immediately after login; in default Chromium the POST succeeds within the approximately two-minute Lax+POST grace period but not with an aged cookie, and other browser configurations may permit the POST. Version 6.2 mitigates the documented GET path, but no complete anti-CSRF fix is documented.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.2
Event History
Frequently Asked Questions
Who is exposed to this issue?
HortusFox deployments with an administrator who can be induced to open a cross-site link are exposed. The attacker does not need to authenticate, but exploitation depends on an administrator having an active signed-in browser session.
What actions could an attacker cause through a targeted administrator?
Documented actions include changing environment settings, deleting users or locations, managing API keys, and clearing cached data. A tested cross-site POST to /admin/user/update could promote a user immediately after administrator login.
Does upgrading to version 6.2 fully resolve the issue?
Version 6.2 mitigates the documented GET-based attack path. However, no complete anti-CSRF fix is documented, and the tested POST-based user-promotion behavior may still be relevant depending on browser cookie behavior.
What browser conditions affect the tested POST attack?
In default Chromium, the cross-site POST succeeded during the approximately two-minute Lax+POST grace period after login, but not with an aged cookie. Other browser configurations may permit the POST.