Announcement

Collapse
No announcement yet.

Security Boundaries: Network Management widget

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Security Boundaries: Network Management widget

    I've been messing around with VPN settings, and was expecting the settings to be stored somewhere like /home/user/.kde/share/apps/networkmanagement, but it seems that changes made in NM have an effect at the root filesystem level (/etc/NetworkManager/system-connections). Since I didn't have to enter a password to do this, I was a bit surprised. If I add a VPN, then depending on its configuration it can be available to all users.

    What's the deal here? I get that this doesn't necessarily affect other users (they aren't connected to the VPN by default), but it seems like an easy social engineering attack method, to add a bogus VPN to the account of one user to tempt all other users on the system into using it.

    Are there many other examples like this?

    Seasoned Linux veterans, please expose my ignorance!
    samhobbs.co.uk

    #2
    The Network Manager Ubuntu Community wiki ( https://help.ubuntu.com/community/NetworkManager ) tells:

    User Settings and System Settings

    All the connection configuration files will be stored here.

    /etc/NetworkManager
    /etc/NetworkManager/system-connections
    User settings are defined as files in those directories that include specific access controls to limit the access to a specific user.
    Have you tried ?

    - How to Ask a Question on the Internet and Get It Answered
    - How To Ask Questions The Smart Way

    Comment


      #3
      Thanks, I've seen the access controls and understand how they can be changed from the GUI.

      The thing that is puzzling me is that when I create a new connection, a new configuration file is created and that file is owned by root, but I didn't have to enter my sudo password .

      Many other services seem to have a system-wide configuration (owned by root) that has some kind of include statement to user-owned configuration in the home directory. I don't understand why this isn't the case for network settings.

      I suppose if the box was a server and two people were logged in remotely, and one of them changed the WiFi settings, it would affect the other user too (or can you connect to two access points at once?).

      Has an exception been made for network settings because, from a practical point of view, you wouldn't be able to get much done as a normal user if you were unable to connect to a WiFi network?
      samhobbs.co.uk

      Comment


        #4
        Hint: take a look at the description for the package policykit-desktop-privileges.

        btw... "security boundaries"? You're really picking this stuff up fast, aren't you? That's the precise language to use in this situation. I'm so proud
        Last edited by SteveRiley; Oct 21, 2014, 02:33 AM.

        Comment


          #5
          I only picked that up because you gave such an accessible explanation somewhere else on the forum... I do try to listen

          Thanks for that hint, I've discovered /usr/share/polkit-1/actions/org.freedesktop/NetworkManager.policy, interesting that it's in XML.

          My server is pretty much running stock kubuntu, I'm trying to decide if it's worth changing some of those settings (not necessarily just NM), or if they don't really matter. I am the only person with shell access to the server, although there is one other user with a system account (my brother, the files for his website are owned by his user and he has to enter his FTP password from within WordPress to update his site/install plugins etc.). He can't log in via SSH because there are no authorised keys for his account, and password authentication is disabled.
          samhobbs.co.uk

          Comment


            #6
            I wouldn't worry about it. The only thing provided by those PolicyKit privileges is a few password prompt exceptions for someone already logged in with administrative rights.

            Comment


              #7
              Ah, that's fine then, if someone gets that far I'm already well and truly pwned!
              samhobbs.co.uk

              Comment

              Working...
              X