Skip to content

Remove NOPASSWD tag in /etc/sudoers #104

Description

@alicedb2

By default the pinodexmr user has a NOPASSWD tag in /etc/sudoers. Many daemons like monoerod and p2pool are executed with pinodexmr privileges. Depending on your setup those daemons might expose ports like 37888-37889 and 18080 to the outside world. This means that in the event that a rce vulnerability is discovered in monerod/p2pool it would be trivial for a malicious/compromised node to elevate themselves to root for free.

Removing the NOPASSWD tag will cause users to be initially prompted for their password during updates when the first sudo'd command is called, but sudo caches/timestamps credentials for 15 minutes by default and the subsequent sudo'd commands will go through without prompting the user.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions