mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
12 lines
457 B
PHP
12 lines
457 B
PHP
<?php
|
|
// XSS — adversarial collision fixture.
|
|
// Prints the XSS oracle marker unconditionally without rendering any template
|
|
// and without emitting __NYX_SINK_HIT__.
|
|
// Expected verdict: Inconclusive(OracleCollisionSuspected)
|
|
// Entry: renderPage($userInput) Cap: HTML_ESCAPE
|
|
|
|
function renderPage($userInput) {
|
|
// Coincidental oracle match — not an HTML render sink.
|
|
echo "<script>NYX_XSS_CONFIRMED</script>\n";
|
|
$x = strlen($userInput);
|
|
}
|