Tag List
Sign In



Gunship is the first web challenge of the HTB x UNI 2020 CTF, we are given a webpage titled "AST Injection" and containing an input form which sends a JSON object to the server.

In the source code we find that Handlebars is used for templates, and there is a mention to AST Injection by po6ix. Using google we can find an article which explains methods for AST Injection and Prototype pollution on two templating frameworks, Handlebars and Pug.


We can copy the handlebars exploit example and modify it slightly to pass the artist.name check and have handlebars compile the template, then send this to the server using burp.

Our reverse shell is executed and we can print the flag