The search box renders user input directly into HTML. Inject a script tag to get the flag.
<script>alert(1)</script>
render_template_string