mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-15 20:05:13 +02:00
15 lines
440 B
Go
15 lines
440 B
Go
// 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 string) Cap: SQL_QUERY
|
|
|
|
package entry
|
|
|
|
import "fmt"
|
|
|
|
func Login(username string) {
|
|
// Coincidental oracle match — not a SQL sink.
|
|
fmt.Println("NYX_SQL_CONFIRMED")
|
|
_ = len(username)
|
|
}
|