nyx/tests/dynamic_fixtures/js/xss_adversarial.js
2026-06-05 10:16:30 -05:00

13 lines
498 B
JavaScript

// 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.
process.stdout.write('<script>NYX_XSS_CONFIRMED</script>\n');
void userInput.length;
}
module.exports = { renderPage };