SSTIninja
A Server-Side Template Injection (SSTI) detection and exploitation tool. Given a URL and a parameter, it fingerprints the template engine, probes WAF / sandbox restrictions, searches for a working payload, and verifies RCE end-to-end.
Supports Jinja2, Tornado, Mako, Twig, and Smarty.
Install
# one-shot, no install
uvx --from git+https://github.com/WangYihang/sstininja sstininja --help
# or install
pip install git+https://github.com/WangYihang/sstininja
# or from a local clone
pip install -e .
Requires Python 3.11+.
Use
Exploit a remote URL:
sstininja probe --url 'http://target/page' --param name
Exploit a local Jinja2 sandbox (research / CTF):
sstininja probe --context empty_string --sandbox none --target os.popen
Run the benchmark suite:
sstininja bench run
Run the HTTP eval corpus:
sstininja eval run --corpus eval/corpus/local_flask.toml
Run sstininja --help to see all commands.
Metadata
Release files for sstininja 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sstininja-0.1.1.tar.gz | 46.9 kB | Without provenance | Details for sstininja-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sstininja-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for sstininja-0.1.1-py3-none-any.whl |
Total release size: 110.7 kB
Release files / sstininja-0.1.1.tar.gz
| Download URL | sstininja-0.1.1.tar.gz |
|---|---|
| Size | 46.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0b6b96bddcf0f82f3c246037b069d1831d00eb96a50b2e9302ff93d4d85bf10
|
|
BLAKE2b-256 checksum How to use checksums |
762906abfdc17468a398bd99d1b643652b8cb352f2b1f73364368550ab2fe965
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.10 {"installer":{"name":"uv","version":"0.11.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / sstininja-0.1.1-py3-none-any.whl
| Download URL | sstininja-0.1.1-py3-none-any.whl |
|---|---|
| Size | 63.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87a2bb4ae1e9914b4094370db2c2fe3fdc28258d224e42deca172b293e584a68
|
|
BLAKE2b-256 checksum How to use checksums |
856605a7c9a36773d2de98d6d93f71b7d1bfa43e59ceb49599fca79b5bc8fc01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.10 {"installer":{"name":"uv","version":"0.11.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for sstininja 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.