mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-18 20:15:14 +02:00
16 lines
451 B
Go
16 lines
451 B
Go
// SQL injection — unsupported fixture.
|
|
// Entry is a method on a struct — entry kind unsupported (only Function supported).
|
|
// Test sets confidence = Low to get Unsupported(ConfidenceTooLow).
|
|
// Entry: UserRepo.FindUser Cap: SQL_QUERY
|
|
// Expected verdict: Unsupported
|
|
|
|
package entry
|
|
|
|
import "fmt"
|
|
|
|
type UserRepo struct{}
|
|
|
|
func (r *UserRepo) FindUser(name string) {
|
|
query := "SELECT * FROM users WHERE name='" + name + "'"
|
|
fmt.Println(query)
|
|
}
|