Willow Directory accepts search filters and greeting names, then returns account details to the signed-in person. Its review found that some values become query instructions, some values become template source and some private fields reach the response. Repair each boundary using the earlier scalar-filter, fixed-template and approved-field techniques.
The request and store data are fictional and fresh. The small matcher and placeholder replacer expose the relevant behavior without pretending to be MongoDB or a production template engine. Keep legitimate punctuation and empty search results intact. A correct repair blocks the misuse while preserving the documented output for the normal request. The exercises introduce no new controls, and they never contact an outside service.
Read the fixed handler, then apply the same idea to each exercise.