Code Challenge: Simple Search

For this code challenge, you are provided with a website that has a vulnerability. Can you fix it?
Please check the sandbox below for further instructions:
Want to conduct interviews on this platform
Check out CoderPad : pick any interview question or create your own, then invite your candidate to a shared live-coding session on an IDE like this one. You even get 2 free interviews per month forever using this registration link!