GHSA-hj8m-9fhf-v7jp fief-server Server-Side Template Injection vulnerability
- Published
- Updated
- Exploit status
- No public exploit known
Description
Server-Side Template Injection
Overview of the Vulnerability
Server-Side Template Injection (SSTI) is a vulnerability within application templating engines where user input is improperly handled and is embedded into the template, possibly leading code being executed.
An attacker can use SSTI to execute code on the underlying system by manipulating values within the embedded template. When code is executed within the underlying system, it can allow an attacker to run permissioned commands under the exploited process, or exploit Cross-Site Scripting (XSS) to run code within the user's browser.
Business Impact
SSTI can lead to reputational damage for the business due to a loss in confidence and trust by users. If an attacker successfully executes code within the underlying system, it can result in data theft and indirect financial losses.
Steps to Reproduce
- Sign up and login to your account
- Use a browser to navigate to: email-templates {{URL}}
- put your payload in Edit Base template
{{ cycler.__init__.__globals__.os.popen('id').read() }}and you will se it will execute.
Payload:
{{ cycler.__init__.__globals__.os.popen('id').read() }}
Proof of Concept (PoC)
The screenshot(s) below demonstrates the SSTI:
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi fief-server(PyPI) | = 0.19.0; = 0.19.1; = 0.19.2; = 0.20.0 +22 more | 0.25.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi fief-server(PyPI) | >= 0.19.0, < 0.25.3 | 0.25.3 |
| pypi fief-server(PyPI) | = 0.19.0 | No fix listed |
| pypi fief-server(PyPI) | = 0.19.1 | No fix listed |
| pypi fief-server(PyPI) | = 0.19.2 | No fix listed |
| pypi fief-server(PyPI) | = 0.20.0 | No fix listed |
| pypi fief-server(PyPI) | = 0.20.1 | No fix listed |
| pypi fief-server(PyPI) | = 0.21.0 | No fix listed |
| pypi fief-server(PyPI) | = 0.22.0 | No fix listed |
| pypi fief-server(PyPI) | = 0.22.1 | No fix listed |
| pypi fief-server(PyPI) | = 0.22.2 | No fix listed |
| pypi fief-server(PyPI) | = 0.23.0 | No fix listed |
| pypi fief-server(PyPI) | = 0.23.1 | No fix listed |
| pypi fief-server(PyPI) | = 0.23.2 | No fix listed |
| pypi fief-server(PyPI) | = 0.24.0 | No fix listed |
| pypi fief-server(PyPI) | = 0.24.1 | No fix listed |
| pypi fief-server(PyPI) | = 0.24.2 | No fix listed |
| pypi fief-server(PyPI) | = 0.24.3 | No fix listed |
| pypi fief-server(PyPI) | = 0.24.4 | No fix listed |
| pypi fief-server(PyPI) | = 0.24.5 | No fix listed |
| pypi fief-server(PyPI) | = 0.24.6 | No fix listed |
| pypi fief-server(PyPI) | = 0.24.7 | No fix listed |
| pypi fief-server(PyPI) | = 0.24.8 | No fix listed |
| pypi fief-server(PyPI) | = 0.24.9 | No fix listed |
| pypi fief-server(PyPI) | = 0.25.0 | No fix listed |
| pypi fief-server(PyPI) | = 0.25.1 | No fix listed |
Show 1 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi fief-server(PyPI) | = 0.25.2 | No fix listed |
References
- github.com vendor-advisory
- github.com patch
- github.com product
- github.com
- github.com