nyx/tests/fixtures/header_injection/php/unsafe_set_header.php
2026-05-07 01:29:31 -04:00

6 lines
259 B
PHP

<?php
// Unsafe: $_GET['lang'] concatenated into a `header()` line. The bare
// `header` matcher (exact-match sigil) fires on the call. Tainted input
// without `\r\n` stripping permits response splitting.
$lang = $_GET['lang'];
header("X-Lang: " . $lang);