HortusFox Web Stored Cross-Site Scripting Vulnerability in TextBlock Module

Vulnerability

A stored cross-site scripting vulnerability has been identified in HortusFox Web version 4.4, specifically within the TextBlockModule.php component. This issue allows authenticated users to inject arbitrary web scripts or HTML by placing a crafted payload in the name parameter when adding a new plant. The injected script is saved to the database and later executed in the context of the user viewing the chat, as the application does not properly sanitize chat messages before displaying them.

Impact

Exploitation of this vulnerability allows for stored cross-site scripting, where injected scripts are executed in the context of users who view the chat. This could lead to session hijacking, privilege escalation, and unauthorized actions within the application.

Reproduction

To reproduce this vulnerability, authenticate as a valid user and navigate to the 'add new plant' feature. Inject a script payload, such as an image tag with an error event, into the name parameter. Once the form is submitted, the injected script will execute immediately. Additionally, the XSS payload will be executed for any user who logs in after the injection, including admins.

Added: Aug 13, 2025, 9:25 PM
Updated: Aug 13, 2025, 9:25 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
6.0
exploitability
6.3
remediation
0.0
relevance
0.4
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.