Date: Mon, 26 Jun 2023 18:06:55 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 272228] libpam's openpam_subst() can crash if prompt ends with % Message-ID: <bug-272228-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272228 Bug ID: 272228 Summary: libpam's openpam_subst() can crash if prompt ends with % Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: rtm@lcs.mit.edu If a PAM user prompt ends with %, then openpam_subst() increments template (the prompt) beyond the prompt's terminal '\0', and (depending what's beyond the end) can eventually crash. One place such a prompt could come from is a remote TACACS+ server. while (*template && ret =3D=3D PAM_SUCCESS) { if (template[0] =3D=3D '%') { ++template; switch (*template) { ...; case '\0': subst_char('%'); break; ...; } ++template; } } --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272228-227>