Closed QiAnXinCodeSafe closed 5 years ago
in line 843: https://github.com/google/google-authenticator-libpam/blob/842142d52328baa6076826428fe040db98aab82a/src/google-authenticator.c#L843
The 2nd argument 'home' of function 'strcpy()' is assigned in line 833: const char *home = getenv("HOME");
So what? $HOME comes from the user, yes. So does -s.
$HOME
-s
in line 843: https://github.com/google/google-authenticator-libpam/blob/842142d52328baa6076826428fe040db98aab82a/src/google-authenticator.c#L843
The 2nd argument 'home' of function 'strcpy()' is assigned in line 833: const char *home = getenv("HOME");