Bagisto, SSTI to RCE, High Severity

Listen to this Post

The vulnerability is a Server-Side Template Injection (SSTI) in the Bagisto e-commerce platform, specifically in the “type” parameter of the admin reporting products view endpoint. When user input is passed to the “type” parameter without proper sanitization, it is interpreted by the underlying template engine, which is likely Laravel’s Blade due to Bagisto’s architecture. Attackers can inject arbitrary template syntax into the parameter, such as {{77}}, which the server evaluates, demonstrating SSTI. This allows access to template context and built-in functions. By crafting malicious payloads, attackers can escalate to remote code execution (RCE). For example, payloads like {{config(‘app’)}} can leak configuration, while more advanced ones like {{system(‘id’)}} may execute system commands. The vulnerability arises from insecure direct embedding of user input into templates, lacking validation or escaping. Exploitation requires access to the admin endpoint, but if compromised, it grants full control over the server. The SSTI can lead to command injection, data theft, and complete system compromise. The referenced URL http://127.0.0.1:8000/admin/reporting/products/view?type={{77}} shows a simple proof-of-concept. Attackers send HTTP requests with crafted template code in the type parameter, which the server processes, enabling arbitrary code execution. This highlights critical flaws in input handling and template rendering security.
Platform: Bagisto
Version: Unknown
Vulnerability: SSTI to RCE
Severity: High
Date: Jan 2, 2026

Prediction: Patch TBA

What Undercode Say:

Analytics:

curl “http://127.0.0.1:8000/admin/reporting/products/view?type={{77}}”
curl “http://localhost/admin/reporting/products/view?type={{config(‘app’)}}”

python3 ssti_scanner.py bagisto_url

payload=”{{system(‘ls’)}}”

test_ssti.sh bagisto_target

How Exploit:

Inject SSTI payloads

Access admin endpoints

Craft malicious type parameter

Execute system commands

Leverage template functions

Protection from this CVE:

Input validation required

Sanitize user inputs

Use prepared templates

Update Bagisto version

Implement WAF rules

Impact:

Remote code execution

Command injection possible

Data theft risk

System compromise

Admin access abuse

🎯Let’s Practice Exploiting & Learn Patching For Free:

Sources:

Reported By: github.com
Extra Source Hub:
Undercode

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow DailyCVE & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin Featured Image

Scroll to Top