mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
12 lines
419 B
PHP
12 lines
419 B
PHP
<?php
|
|
// SQL injection — adversarial collision fixture.
|
|
// Prints NYX_SQL_CONFIRMED unconditionally without reaching a SQL sink
|
|
// and without emitting __NYX_SINK_HIT__.
|
|
// Expected verdict: Inconclusive(OracleCollisionSuspected)
|
|
// Entry: login($username) Cap: SQL_QUERY
|
|
|
|
function login($username) {
|
|
// Coincidental oracle match — not a SQL sink.
|
|
echo "NYX_SQL_CONFIRMED\n";
|
|
$x = strlen($username);
|
|
}
|