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.
Cross-Site Request Forgery CWE-352
An attacker can trick a logged-in person’s browser into performing an action on a site without their knowledge.
The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.
Weakness data: MITRE Common Weakness Enumeration.
Trusting HTTP Permission Methods on the Server Side CWE-650
The server contains a protection mechanism that assumes that any URI that is accessed using HTTP GET will not cause a state change to the associated resource.
Believing that it will be enough to prevent unintended resource alterations, an application may disallow the HTTP requests to perform DELETE, PUT and POST operations on the resource representation. However, there is nothing in the HTTP protocol itself that actually prevents the HTTP GET method from performing more than just query of the data.
Weakness data: MITRE Common Weakness Enumeration.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Danielbrendel Hortusfox-web | Software | < 6.2 | not recorded |
The 7.1 severity score (high) from github.com, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | None | The attacker does not need an account or password. |
| Someone has to act | Required | A person has to do something first, such as open a file or visit a page. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | Low | The attacker can read some data, but not everything. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | None | The service keeps running. |
| Ease of attack | 2.8 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 4.2 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 4 sources for this flaw, none tagged as a vendor patch.