Courses
1. Introduction to Blockchain and Solana
2. Setting Up Your Development Environment
3. Solana Architecture and Key Concepts
4. Creating and Managing Wallets
5. Understanding Solana Programs
6. Building Your First Solana Program
7. Deploying Programs on the Solana Network
8. Interacting with Solana Programs
9. Using Solana CLI and SDKs
10. Developing Decentralized Applications (DApps)
11. Smart Contract Security Best Practices
12. Testing and Debugging Solana Programs
13. Optimizing Performance on Solana
14. Exploring Solana Ecosystem Tools
1. Introduction to Blockchain and Ethereum
2. Setting Up Your Development Environment
3. Ethereum Architecture and Key Concepts
4. Creating and Managing Wallets
5. Understanding Smart Contracts
6. Building Your First Smart Contract
7. Deploying Smart Contracts on the Ethereum Network
8. Interacting with Smart Contracts
9. Using Ethereum CLI and SDKs
10. Developing Decentralized Applications (DApps)
11. Smart Contract Security Best Practices
12. Testing and Debugging Smart Contracts
13. Optimizing Performance on Ethereum
14. Exploring Ethereum Ecosystem Tools
1. Introduction to Blockchain and Polygon
2. Setting Up Your Development Environment
3. Polygon Architecture and Key Concepts
4. Creating and Managing Wallets
5. Understanding Smart Contracts on Polygon
6. Building Your First Smart Contract on Polygon
7. Deploying Smart Contracts on the Polygon Network
8. Interacting with Smart Contracts on Polygon
9. Using Polygon CLI and SDKs
10. Developing Decentralized Applications (DApps) on Polygon
11. Smart Contract Security Best Practices for Polygon
12. Testing and Debugging Smart Contracts on Polygon
13. Optimizing Performance on Polygon
14. Exploring Polygon Ecosystem Tools
1. Introduction to Cybersecurity
2. Report Writing for Penetration Testers
3. Information Gathering
4. Vulnerability Scanning
5. Introduction to Web Applications
6. Common Web Application Attacks
7. SQL Injection Attacks
8. Client-Side Attacks
9. Locating Public Exploits
10. Fixing Exploits
11. Antivirus Evasion
12. Password Attacks
13. Windows Privilege Escalation
14. Linux Privilege Escalation
15. Advanced Tunneling
16. The Metasploit Framework
17. Active Directory: Introduction and Enumeration
18. Attacking Active Directory Authentication
19. Lateral Movement in Active Directory
Server-Side Template Injection
OSWE · Chapter 20
Server-Side Template Injection
Server-Side Template Injection (SSTI) happens when user input is concatenated directly into a template string before rendering, rather than passed in as data. Depending on the template engine, this can escalate from simple HTML injection to full remote code execution.
Key concepts
- Detection probe: submit a mathematical expression like `{{7*7}}` — if the rendered output shows `49`, the template engine is evaluating your input as code, not data.
- Different template engines (Jinja2, Twig, Freemarker) have different syntax and different levels of sandboxing — identifying the exact engine is a required step before exploitation.
- Some engines expose enough functionality in their expression language alone to reach OS command execution directly from a template payload.
- Prevention: never concatenate user input into template source; use "logic-less" template engines (e.g. Mustache) where practical, and sandbox any environment that must evaluate user-influenced templates.
Example
# Detection probe in a name/greeting parameter
http://vulnerable-website.com/?name={{7*7}}
# If page renders "49", template injection is confirmedTry it yourself
On a lab SSTI challenge, submit the `{{7*7}}` probe, confirm code evaluation, then try a small set of engine-fingerprinting payloads to identify whether the backend is Jinja2 or Twig.