|
|
|
|
|
by ryalfalpha
4761 days ago
|
|
Haven't done much golang and don't have it installed on this laptop, but are string comparisons constant time? If not, I think there is potential for a timing attack here? if usr == _admin_usr && pw == _admin_pw {
return RootMode, nil
} |
|