Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pppd: Remove promptpass plugin #527

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

pppd: Remove promptpass plugin #527

wants to merge 1 commit into from

Conversation

paulusmack
Copy link
Collaborator

This is prompted by a number of factors:

  • The handling of privileges and possibly file descriptors is flawed

  • In many cases there will be no terminal accessible to the prompter program at the point where the prompter is run

  • The passwordfd plugin does much the same thing but does it more cleanly and securely.

This is prompted by a number of factors:

* The handling of privileges and possibly file descriptors is flawed

* In many cases there will be no terminal accessible to the prompter
  program at the point where the prompter is run

* The passwordfd plugin does much the same thing but does it more
  cleanly and securely.

Signed-off-by: Paul Mackerras <[email protected]>
@paulusmack
Copy link
Collaborator Author

paulusmack commented Oct 18, 2024

Distro maintainers might want to take note of this, particularly if your distro installs pppd setuid-root. The concern is that if an unprivileged user can run pppd and somehow get the passprompt plugin loaded, the prompter program could perhaps regain root privileges because of the flaws in how the passprompt.c code drops privileges. Fortunately, because the 'plugin' option is privileged, the user can't load the passprompt plugin directly. Hopefully no distros include a file under $sysconfdir/ppp/peers that includes 'plugin passprompt.so'. In any case I suggest that the passprompt.so plugin be removed from being packaged by distros.

@Neustradamus perhaps you could tag this for the various distro maintainers that you know of, so they see it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant