Bagisto
cpe:2.3:a:webkul:bagisto:*:*:*:*:*:*:*
- 2.3.7
A Server-Side Template Injection (SSTI) vulnerability has been identified in Bagisto version 2.3.7. This issue arises from unsanitized user input in product descriptions, which is processed by the server-side templating engine. As a result, an attacker with product creation privileges can inject arbitrary template expressions that are evaluated by the backend, potentially leading to Remote Code Execution (RCE) on the server.
Exploitation of this vulnerability allows for arbitrary code execution on the server. Additionally, it could lead to a data breach by accessing sensitive environment variables, API keys, or database credentials. The vulnerability also allows for the injection of malicious scripts or backdoors into dynamic templates, and could be used to escalate privileges within the application.
To reproduce this vulnerability, create a product in Bagisto v2.3.7 and enter a payload into the description that includes template expressions. Once the product is saved, preview the page to see that the injected template code has been executed and displayed.
Users can upgrade to Bagisto version 2.3.8, where this vulnerability has been fixed.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.