Closed AlexanderKurtz closed 6 years ago
https://github.com/skx/pam_pwnd/blob/6abe1caac275e289987384677ec9d7fec1bba827/pwn_chk.c#L54
It might be a good idea to replace this with strncpy() since the was_leaked() function never checks the string length of hash.
strncpy()
was_leaked()
hash
That's a good catch, thank-you for reading the code so carefully.
strncpy
strcpy
https://github.com/skx/pam_pwnd/blob/6abe1caac275e289987384677ec9d7fec1bba827/pwn_chk.c#L54
It might be a good idea to replace this with
strncpy()
since thewas_leaked()
function never checks the string length ofhash
.