Storing plain text private key password on the system (Security Issue)

Bug #1825474 reported by Scott Brugman
258
This bug affects 1 person
Affects Status Importance Assigned to Milestone
network-manager-openvpn (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Dear reader,

It came to my attention that when using the network-manager-openvpn package to connect to a OpenVPN server the password is stored plain text in the /etc/NetworkManager/system-connections/<Connection NAME> file under the section:

[vpn-secrets]
cert-pass=******

I consider this a security risk due to the fact that when a system is compromised, an attacker is able to impersonate the victim by using the OpenVPN profile together with the private key password.

The system this was tested on:
Description: Ubuntu 18.04.2 LTS
Release: 18.04

Package info:
network-manager-openvpn:
Installed: 1.8.2-1
Candidate: 1.8.2-1
Version table:
           * 1.8.2-1 500
        500 http://nl.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status

I look forward to your response.

Kind regards,
Scott Brugman

information type: Private Security → Public Security
Revision history for this message
Seth Arnold (seth-arnold) wrote :

That's just the nature of storing secrets for later use. The only way to store a key in an encrypted form would require the user to then supply a decryption key, probably in the form of a password that would then be handed to a key derivation function. That only slightly moves the goalposts.

I'd expect that you should be able to delete that line or that section of the file to then be prompted for the password when establishing a connection; if so, that's probably the direction to take.

Thanks

Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue should also probably be discussed upstream if you believe the software should handle keys in a different way

Changed in network-manager-openvpn (Ubuntu):
importance: Undecided → Low
Changed in network-manager-openvpn (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.