Security lab
Header Injection
A custom response header reflects a user-supplied search query directly without sanitization, exposing unsafe header construction that can be abused to inject extra metadata.
Lab objective
Craft input that causes the response to include attacker-controlled header content and reveals the unsafe reflection behavior.
Tools you will use
- browser
- Burp Suite
What this lab teaches
This lab is a self-contained exercise hosted in an isolated, per-user sandbox. You are given a clear objective, the tools typically used for the technique, and a guided set of hints. Because every sandbox is disposable and network-isolated, you can experiment freely, make mistakes, and reset the environment without affecting any real system.
Hints & approach
- 01The backend adds an X-Search-Query header directly from the request value.
- 02The header value is not validated or escaped.
- 03Observe how the response metadata changes when the query includes special characters.
How the sandbox works
When you start the lab, Vulnarex provisions an isolated, per-user environment and opens it in a new tab. Each session has its own target and state, so nothing you do here can affect another learner or any external system. You can reset the environment at any time and re-approach the challenge from a clean slate.