Slashdot Mirror


Linux Distributions Storing Wi-Fi Passwords In Plain Text

Bill Dimm writes "An article on Softpedia claims that Linux distributions using NetworkManager are storing Wi-Fi passwords in plain text in /etc by default. The article recommends encrypting the full disk or removing NetworkManager and using a different tool like netctl. Some of the article comments claim the article is FUD. Is this a real problem?"

341 comments

  1. FUD by danbuter · · Score: 0, Troll

    I know it's FUD! It's anti-Linux, which by nature is perfect!!! -Stallman fan

    1. Re:FUD by sideslash · · Score: 5, Funny

      It's anti-Linux [...] -Stallman fan

      Fraudster! You didn't put GNU/Linux.

    2. Re:FUD by mrchaotica · · Score: 0

      Not to mention, Stallman surely wouldn't get caught dead using something like NetworkManager.

      --

      "[Regarding the 'cloud,'] ownership was what made America different than Russia." -- Woz

    3. Re:FUD by arth1 · · Score: 3, Insightful

      NetworkManager doesn't follow the Unix philosophy, and was made by and for a younger point-and-drool generation grown up with kitchen sink apps with camel case names and MSDOS configuration files.

      In short, it is an atrocity that does not belong.

      As for storing the password in plaintext, it should not store it at all. The admin should store the credentials, not the app. In a file with read access for only the app that needs it, and no gratuitous root privileges when not needed. This dumbing down to make it easy for users and overuse of root access by apps must stop.

    4. Re:FUD by Gerald · · Score: 3, Interesting

      ...so you're saying Linux needs something like the OS X Keychain?

    5. Re:FUD by houghi · · Score: 1

      If he wants, he can:
      $ nmcli
      Usage: nmcli [OPTIONS] OBJECT { COMMAND | help }
      OPTIONS
      (snip because of lameness filter)

      --
      Don't fight for your country, if your country does not fight for you.
    6. Re:FUD by arth1 · · Score: 2

      No, that's exactly what I'm saying it should [b]not[/b[ have. Credentials should never ever be read except exactly when they're needed, nor cached, and applications that use them should not have write access.

      A plain text file is fine, but a process with escalated privileges that reads and writes to it is not.

    7. Re:FUD by skids · · Score: 3, Interesting

      Really the main problem I have with NetWorkManager on a surface UI level is that nobody seemed to deem it necessary to smooth out the case for people who just want to type their password in and NOT have it stored persistantly, just cached until reboot or (optionally) logout from the window manager. If you do not store your creds, it constantly asks you for them whenever it re-attaches to an SSID. Not only that but it stacks up multiple popup windows while you are AFK until your OS is lagging and your taskbar looks like a zip-tie. When you're validating an EAP cert there is NO REASON to do this EVER -- if you are presented with a validated cert from your home AAA server, re-using the creds shiuld be the default behavior.

      The other major problem we have with Linux and Android's WiFi, both with and without NM, is that there are certain types of disassociation events after which the machine should run another DHCP transaction, and it doesn't. Wreaks havoc with dynamic authorization scenarios such as registration portals.

      There is a use-case for utilities like NM -- wpa-supplicant and dhcpd and UI configuration utilities need to be glued together somehow, and if you have ipsec tunnels and l2tp running there is even more to be pasted together. NM does a poor job of it, but at least it does do the job.

    8. Re:FUD by Anonymous Coward · · Score: 0

      Mostly because it is *horrible*. It's an extremely complex stack of wrappers around an under documented piece of core utilities, namely the scripts in /etc/sysconfig/network-scripts. The management of those tools is horrendous: there are dozens of settings that NetworkManager has no way to selectf, and which it will overwrite by default if you ever dare use NetworkManager. Samples include HWADDR settings, which are stored in both "udev" and for particular network ports, and which can cause immense "port naming" confusion if they're misset. Another is pair bonding, which NetworkManager has no idea how to configure. Another is "bridge" configuraitons for KVM virtualization, which NetworkManager has no options for. Another is the variety of PXE/DHCP options, useful to obtain consistent hostnames in an Active Direcotry or Samba managed network environment.

      NetworkManager is what you get when you take the car your mom bought you, bring it to Radio Shack, and slap every bell and whistle you can buy on top of it. It's not stable, it's not safe, and it corrupts your core configurations with all the mis-setings and widgets arguing it out for dominance in the config files, *every single one of which* uses a differnt standard for writing the config files. It's one of the *worst* features of the RHEL 7 Beta, outranked only by the Gnome 3 "snort all CPU up your left nostril like crack cocaine to get zooming transparent 3D blocks that no one wants", and possibly outranked by the "spoke and wheel" installer that proceeds to shove its spoke up your wheel and beg you to spin while you try to figure out where they hid the button for the next step.

      Sorry, but the folks over at Fedora and RHEL have missed the boat by using these nightmares of incompatibility and resource consumption for the sake of "ooohhh, glitzy pictures with the conceptual workfow invented by me and only used by me becuase I never actually learned how to do anything right". It's not good, and I'm not happy.

    9. Re:FUD by Antique+Geekmeister · · Score: 4, Insightful

      Then you don't regularly communicate with remote git, Subversion, CVS, FTP SFTP, FTPS, or HTTPS websites with passwords. Even SSH and SSL key management is vastly improved by having some kind of graceful keychain to unlock, and release, keys as needed. The command line tools are too awkward, even for me, to consistently handle them across a wide range of application I might use in a day.

    10. Re:FUD by Anonymous Coward · · Score: 0

      If it's a corporate computer and he's that worried about it, he needs to use something more robust like RADIUS or some other user authentication system.
      While having a password on the wifi is a good idea, to be completely blunt your network needs to already be secured in such a fashion that having the wifi password doesn't do an attacker any good in the first place.

    11. Re:FUD by icebike · · Score: 1

      A stack of wrappers is what unix/Linux strives for, its nothing new. At the bottom will be a binary blob, at least for any modern chipset. Unfortunately that's not likely to change any time soon.

      --
      Sig Battery depleted. Reverting to safe mode.
    12. Re:FUD by Pav · · Score: 1

      I think we can all agree that there is nothing approaching a secure and universally acceptable way to handle this problem.

  2. NSA DID IT! by CajunArson · · Score: 4, Funny

    Must have been the NSA! I should have known that commit from uberspydude@ftmeade-totallynotNSA.gov was suspicious.

    --
    AntiFA: An abbreviation for Anti First Amendment.
    1. Re:NSA DID IT! by Anonymous Coward · · Score: 0

      Sweet, every developer on the planet has a new whipping boy for any security holes that they fail to address in systems they develop...

      The NSA did it!!!

    2. Re:NSA DID IT! by Anonymous Coward · · Score: 0

      Must have been the NSA! I should have known that commit from uberspydude@ftmeade-totallynotNSA.gov was suspicious.

      No, it's a copy paste error. Everywhere it say 'Linux Distributions' it should read 'Apple Operating systems'. The immense amount of peer review in the FOSS community ensure that these kinds of blunders don't happen on Linux.

    3. Re:NSA DID IT! by Yakasha · · Score: 1

      Must have been the NSA! I should have known that commit from uberspydude@ftmeade-totallynotNSA.gov was suspicious

      Was he asking you for any laaauunch cooodes?

    4. Re:NSA DID IT! by Bing+Tsher+E · · Score: 2

      Everybody was busy reading the source code. It's elite and all that stuff. Nobody bothered to read the plaintext files in /etc. That would be beneath them.

    5. Re:NSA DID IT! by mikael · · Score: 1

      Everyone knows they were just: 00000000

      --
      Vintage computer adverts: http://www.vintageadbrowser.com/computers-and-software-ads
    6. Re: NSA DID IT! by Anonymous Coward · · Score: 0

      How do you know my root pw?

  3. KNetworkManager by chill · · Score: 5, Informative

    Simple. Stop using Gnome shit.

    How can I store passphrases associated with encrypted wireless networks?
    The first time KNetworkManager is used, it will try to set up the KDE Wallet (encrypted password storage) to save wireless network passphrases and other passwords. If you choose not to use KWallet, KNetworkManager will store passwords in its configuration files, only readable by the logged in user.

    http://old-en.opensuse.org/Projects/KNetworkManager#Wireless_LAN

    --
    Learning HOW to think is more important than learning WHAT to think.
    1. Re:KNetworkManager by MacDork · · Score: 2, Funny

      It won't matter what you use if you let anyone on your network with an android phone. Oh hai, let's back up everything to teh googles.

    2. Re:KNetworkManager by Anonymous Coward · · Score: 5, Informative

      Are you stupid? NetworkManager is the same underlying component. It will also store passwords in plain text for _system_ connections, where KWallet is unavailable (it is only available after graphical login).

      This is a non-story. Every other operating system not only does exactly the same, they are forced to do the same. Because there is no other way unless you want your Wi-Fi to be offline until you login, and if you do, well, then this problem is not present because NetworkManager will use KWallet OR gnome-wallet, depending on the session you opened.

      The author basically manually checked the "I want to make this connection available to other users" checkbox and then is surprised when the connection is actually made available to other users. Stupidity, plain and simple.

    3. Re:KNetworkManager by Anonymous Coward · · Score: 1

      I really like to know what Gnome as to do with any of this...
      NetworkManager (the daemon) uses connection informations stored under /etc/NetworkManager for wifi connections avaible to all the users of the system.
      It is a functionality independent from the desktop enviroment used.
      You can create them via the desktop applet (after gaining superuser permissions) or by hand by editing the text files as root.
      The password is in cleartext but the configuration files are protected by normal file system permissions.
      So, to get to them someone must get your hard disk; or boot from a usb key; or in some way get root access; and well, if someone gets to do that, the wifi keys are your last problem.
      Now, we could maybe discuss using obfuscation or some sort of system level master password encrytion ecc.
      But it has nothing to do with the fact that GNOME is crap.

      Now, to tell the truth, BOTH GNOME and KDE are tecnically crap; there is reason if after more then ->15 Years- of work we still don't have a viable Linux desktop for the masses: primadonna developers more interested in boosting their childish egos than creating a really usable desktop.
      Primadonnas throwing out untested full-of-bugs crap and then blaming users when they rightly complain about it. (It's Open Source! elevated as the master excuse for doing shitty work).
      "Developers" thinking the main function of a PC is running their pie-in-the-sky "dream desktop"...

    4. Re:KNetworkManager by chill · · Score: 2

      NetworkManager was originally developed by Red Hat and now is hosted by the GNOME project.

      --
      Learning HOW to think is more important than learning WHAT to think.
    5. Re: KNetworkManager by Anonymous Coward · · Score: 0

      Nail on the head. I love Linux I really do but I'm sure it's what made me bald.

    6. Re:KNetworkManager by Anonymous Coward · · Score: 0

      Android also stores passwords in clear text on the phone itself. This story is pointless scaremongering.

      If people don't like shared keys stored in clear text on the device then they need to use a different authentication method, i.e. 802.1x and tell it to prompt you to enter in the password every time.

    7. Re: KNetworkManager by mrclisdue · · Score: 1

      Are you sure it wasn't the nail? cheers,

    8. Re: KNetworkManager by Anonymous Coward · · Score: 0

      I have always found the KDE/Gnome debate kind of like the Ford/Chevy debates, massive accident, flamable fuel catches on fire, obviously that Ford crap

      When KDE meets my needs better than Gnome, I use KDE. When KDE fails me but Gnome works, I use Gnome. Most of the time I use a light weight GUI and load the Gnome or KDE commponents I need. If I really wanted a bloated desktop on my PC, I'd have just left windows on and called it a day

    9. Re:KNetworkManager by mveloso · · Score: 4, Interesting

      Well actually, you can stash the password in a system-level store, like a keychain, so it's not in plaintext. AFAIK that's what mac os x does.

      They don't have to use plaintext - they could use, say, blowfish. Sure they key would have to be stored somewhere. But anything that isn't plaintext is more work to crack. It's substantially more work to dig a key out of a system and decrypt something than it is to do a

      cat pasword_file

      As someone once said, security is about layers. Sure the password will be unencrypted in RAM - but you don't have to make it easy for people to get it. Is WEP better than no encryption? Sure - the extra 10 minutes may dissuade someone and they'll move on. Plus breaking the encryption means intent, which may be useful if there ever was a court case stemming from the activity.

      There's a big difference between "yeah, i broke the encryption, it was so easy" and "I just sort of stumbled on this network."

    10. Re:KNetworkManager by TheCarp · · Score: 5, Interesting

      I mostly agree, especially about it being a non-story.

      Part of the issue, I think, is conflating a wifi password with other passwords. A wifi password has several properties that set it apart from others.

      For one thing, it is usually shared between devices, even ones used by different people (lets ignore advanced schemes, if you are setting up some manner of authentication none of this applies).

      Secondly, it is only useful within a small geographic location. A website or email password can be used by someone half the world away. A wifi password is only useful within range of your particular access point.

      Thirdly, the exposure is mostly limited. While its true that someone could drive up to your AP and start transmitting child porn, and that could lead to some serious consequences; the real abuses here are only attractive to a limited audience and not something generally useful or generally financially useful.... it doesn't give them access to your accounts, even your email downloads are likely encrypted to him.

      Overall, exploiting this is more work than it is worth much of the time, and if it wasn't, it isn't like it is impossible to add more controls. If you really are paranoid, you can always drop wifi devices onto their own segment that can only talk to a VPN endpoint....shit then you can run the wifi passwordless and use the VPN for protection.

      In any case, this is 99.9% a non-issue.

      --
      "I opened my eyes, and everything went dark again"
    11. Re:KNetworkManager by deviated_prevert · · Score: 5, Informative

      It is not important that the directory /etc is not visible without root over a network connection! What is important is that most people who read this article will now claim that core Linux network managers are insecure,,,LOL

      OF course if you enable remote access to any OS as root then all bets are off. You either make damn sure that whoever has access is trusted or you are stupid, Lets not cloud the article with inconvenient facts like network access to a box as root is not enabled by default and anyone who enables it by default unless they are absolutely stupid or the connection is encrypted and otherwise network secure deserves to get hosed.

      Getting in the habit of not having to have root all the time is the strength of Linux and is why Windows sucks dead horse balls as an unprivileged user under Windows gets plastered with requests for the system password all the time. Whereas most Linux distros have software access privileges set in a sensible way WHICH DOES NOT INCLUDE THE ABILITY TO READ AND WRITE TO PLACES LIKE /usr /etc /var unless you are installing software and people who write software for Linux do not expect to write configurations anywhere except in the home user after an install. If someone writes a program which will send password data from /etc to a honeypot and that program is popular because it makes fart noises or plays poker on the net then as far as I am concerned the users got what the deserve. Same as Windows users that install garbage ware at the drop of a hat so that they can do something like play poker on the net from places like gamerareus.ru or happy_nice_pussgames.ru or bollywoodsy_games_freesongs.in ...as one of my friends seems to have a habit of doing so that he can play games on his WINDOWS laptop.

      THIS WHOLE FREAKING ARTICLE IS MORE BULLSHIT AND FUD to amuse the crowd who come to slashdot to bash away at Linux most of whom do not even know wtf /etc is in the first place!

      If a person that has root wants to enable a login by a passphrase at boot they can or with any linux distro they can choose to only enable network login after a user login EITHER WAY IS SECURE because the place where the passphrase is stored is invisible to the network, unless like I said remote login via root is enabled. Again it comes down to trust, you either trust the user or you do not plain and simple.

      THE ONLY REASON YOU CAN TRUST OSS ON LINUX is because you can see the source and there is nowhere for malware to hide. Anyone that writes and compiles a binary for Linux then does not allow access to the source is on the same level of trust as those who write software for Windows. IT ALL COMES DOWN TO TRUST. Be very suspicious of any software for Linux that requires /root r+w after install. Gnome 2 network manager was flakey and thank heavens they fixed it in Gnome 3 the fact that it wrote network passphrases to a file in /etc was not a security issue unless someone wrote a piece of spyware to discover them and linux users were stupid enough to run it as root. Something which no one here seems to think has actually occurred. If someone argues this then point out the actual malware that Linux users were hosed by...eof and end of story.

      --
      This message was not sent from an iPhone because Peter Sellers really was a deviated prevert without a dime for the call
    12. Re: KNetworkManager by Anonymous Coward · · Score: 3, Informative

      Storing it in the keychain is storing it as plaintext. There is _no_ way to store a secret in a secure way if it's to be used without user interaction or a TPM device.

    13. Re:KNetworkManager by entrigant · · Score: 1

      So...

      cat password_file
      vs
      cat /path/to/my_super_secret_key | gpg --batch --passphrase-fd 0 -d password_file

      The difference just doesn't seem that pronounced to me.

    14. Re:KNetworkManager by Anonymous Coward · · Score: 0

      Even if every other OS does the same. That line of argumentation is invalid. We're better off here than in Africa, so let's not improve our standard of living further!

    15. Re: KNetworkManager by Ksevio · · Score: 3, Informative

      You seemed to have missed the point of the parent post. It may not be 100% secure, but it's an extra hurdle someone must go through to get the password. It's not just opening a text file in gedit. The alternative to full security doesn't have to be no security.

    16. Re: KNetworkManager by dns_server · · Score: 3, Interesting

      Obfuscation provides no security, it just looks like it does.
      If the operating system needs to perform a series of steps to turn the encrypted password back into plain text so can an attacker.

    17. Re:KNetworkManager by rev0lt · · Score: 1

      THE ONLY REASON YOU CAN TRUST OSS ON LINUX is because you can see the source and there is nowhere for malware to hide.

      While I do understand what you're saying, either you are a OS wizard or you are _TRUSTING_ that OTHER PEOPLE checked the code for malware. Since this is Slashdot, I'd bet on the latter. Truth is, there are always obscure and not-so-documented parts of every operating system where you don't really know what's happening, specially (in Linux's case) when you have several commercial companies contributing to it. Most modern Linux distros ALLOW the loading of blob's right in the kernel - they call them drivers. And if you think having the source is the proof you need, think again. Just look at the recent arguments about RNG, or a bit further away, the whole "backdoor in OpenBSD's IPSEC" discussion.

      Be very suspicious of any software for Linux that requires /root r+w after install

      Having root +rw is no big problem (I don't like it, but its not suid), since all root-level processes have access to what they want anyway. However, a malicious application may be able to piggyback into sudo to easily gain root access. For that, I'd recommend using an operating system that does not rely on sudo (eg. BSD) :)

      unless someone wrote a piece of spyware to discover them and linux users were stupid enough to run it as root

      Spyware DOES NOT require root privileges. Most distros will run the software spyware wants to spy on with the current user's privileges - this usually includes some parts of X itself, browsers and most of other pieces of software that may handle sensitive information. There is a huge impedance between GUI systems an UNIX permissions system, but no one seems to care. The only reason why we don't have a huge spike in spyware for Linux (or OSX) is because they still don't matter in the big pool of users. And all those "modern vulnerabilites" (social engineering/phishing, CSRF, etc) still work on most*NIX users.

      UNIX operating systems are not about user security, but system security - you may have a heavily "infected" user, but you cannot access or change system wide settings on the machine. The same way, a given user may not be able to interfere with other user's settings (much more "lets sandbox user's crap" than "lets protect users").

      Want to be above average? Sandbox your browser and your applications in different users. As it SHOULD be. And deal with the problems from X for this (not shure if it still requires being run as root, or if its possible to have an ACL on the socket).

    18. Re: KNetworkManager by Ksevio · · Score: 3, Insightful

      That's a common misconception. Obfuscation can provide security is the attacker doesn't have the means to de-obfuscate, isn't smart enough to find it, or doesn't have the time/resources to get it. You shouldn't be fooled into thinking you're fully secure, but that's kind of a moot point when talking about WiFi passwords when the attacker has physical access

    19. Re:KNetworkManager by icebike · · Score: 1

      Simple. Stop using Gnome shit.

      How can I store passphrases associated with encrypted wireless networks?
      The first time KNetworkManager is used, it will try to set up the KDE Wallet (encrypted password storage) to save wireless network passphrases and other passwords. If you choose not to use KWallet, KNetworkManager will store passwords in its configuration files, only readable by the logged in user.

      http://old-en.opensuse.org/Projects/KNetworkManager#Wireless_LAN

      These configuration files are only readable by root on my opensuse box (specifically NOT by the logged in user). NetworkManager uses a privileged back end to read these files. (That's another issue, obsessed over up-thread).

      So realistically, the story is pretty much a bunch of FUD. (In fact, if you read the article they pretty much discredit any of their recommended solutions by pointing out how easy it is to get around them).

      True, if someone gets your laptop and puts in linux boot/recovery CD, they can get at your wifi passwords. But they already have your MACHINE IN HAND, so that war is already lost.

      When you consider how easy it is to crack a wifi password the specter of any one stealing your laptop to get them seems a bit over the top.

      Ok, sure, they should be stored encrypted, but if you wanted that option you could have and / should have chosen to store them in your wallet.
      And in this day and age, you could have and should have used an encrypted hard disk. Either way, there is going to be another password you will need to remember somewhere.

      --
      Sig Battery depleted. Reverting to safe mode.
    20. Re: KNetworkManager by thegarbz · · Score: 1

      This, 1000 times this.

      Obfuscation providing no security is almost turning into an internet meme. I'd argue that all security is obfuscating. Whether you're obfuscating the location of a file forcing the hacker to manually go searching, or obfuscating the method of reading the file forcing a hacker to brute force decryption keys, it's still a form of security.

    21. Re:KNetworkManager by mysidia · · Score: 1

      Well actually, you can stash the password in a system-level store, like a keychain, so it's not in plaintext. AFAIK that's what mac os x does.

      Well... Mac OS X is closed source, so I can't tell you exactly what it does. But since the WiFi is key is presented, without the user having to log in --- I can assure you, that any keys necessary to access the credentials are available, and anyone who can manage to escalate to root access can get them, export them, or even view the Wifi credentials.

      They don't have to use plaintext - they could use, say, blowfish. Sure they key would have to be stored somewhere

      As you should know; the security provided by symmetric cryptography is no better than how strongly you can protect the key.

      And the key must be stored. It's a simple fact that the key must be stored, for without it -- the system could not connect to the network!

      It's substantially more work to dig a key out of a system and decrypt something than it is to do a

      cat pasword_file

      This is not true. It is substantially more work to build the software that has to handle the WiFi credentials, though.

      It's a one-time effort for a hacker to build their tool that does the equivalent of "cat password_file" and distribute it. From that point forward, using the "hacker" tool to cat the credentials is no harder than "cat password_file".

      It is much less effort to build the custom credential dump tool, than the extra effort it took to actually develop the encryption into the software!

    22. Re:KNetworkManager by Anonymous Coward · · Score: 0

      It is about layers of true security, not of layers of security through obscurity. It has been argued many times that any layer of obfuscation would be trivial for any luser to bypass -- just read out about the many pages that list how to recover Windows Wi-Fi passwords. And if I'm not able to "cat password_file" to reveal my passwords, then I might fail into the trap of feeling confident and passing this file around, so there's a clear disadvantage and no clear advantages.

      I'm not the only one making saying this. https://developer.pidgin.im/wiki/PlainTextPasswords . It's been trolled to death on every other Slashdot mis-discussion about plain-text passwords.

      And among other things: WEP is worse than no protection. At least no one is to have any sense of security when running a completely open network. It's people like you that are the problem.

    23. Re: KNetworkManager by DrPBacon · · Score: 1

      There are _many_ ways to store information in ways that would take hours, days, weeks, months to decipher. Plaintext is not one of them.

      --
      Spent All My Mod Points
    24. Re: KNetworkManager by DrPBacon · · Score: 1

      Ah yes, the attacker. With his suite of attacking tools for hacking every obfuscation scheme thought up in existence. And that other tool for decrypting multiple layers in one go. Or maybe it's simpler. He looks at the memory. The password will be inevitably held in a string variable somewhere. He's like batman, but not batman.

      --
      Spent All My Mod Points
    25. Re: KNetworkManager by DrPBacon · · Score: 1

      I'd choose multi-layer obfuscation over a P,Q elliptic curve where NIST chooses Q any day.

      --
      Spent All My Mod Points
    26. Re:KNetworkManager by buchanmilne · · Score: 1

      I have used KDE for a long time. My laptop has an embedded 3G card that works better / more easily with NetworkManager/ModemManager than with more traditional (e.g. pppd, wvdial etc.) setups. Thus, I tried KNetworkManager.

      However, I use WiFi networks with both WPA2 Personal, and WPA2 Enterprise, security. I don't mind my WiFi keys for the WPA2 Personal networks being stored somewhere, but I don't want my passwords for WPA2 Enterprise networks stored *anywhere*. Before trying NetworkManager/KNetworkManager, I would have all the WiFi configuration in /etc/wpa_supplicant.conf except the username and password, and run wpa_gui. The first time a specific instance of wpa_supplicant connected to said WiFi network, wpa_gui would pop up a dialog prompting for username and password, and I wouldn't need to enter the same credentials for the lifetime of that wpa_supplicant process (typically longer than the lifetime of the password).

      However, with KNetworkManager, my options are:
      -Store
      -Always Ask

      In the 'Store' case, due to my KDE Wallet settings (including 'close when screensaver starts'), now every time I resume my laptop, I will be prompted to enter my KDE wallet password (longer/more complex than the WPA Enterprise password).

      In the 'Always Ask' case, I am required to enter my password *every* *time* I associate to the the SSID.

      So, maybe it is better than nm-applet (I haven't used nm-applet *that* much) or the Gnome 3 integration (which I only see when trying to help a colleague), but it most definitely isn't better than the old /etc/sysconfig/network-scripts in conjunction with wpa_supplicant approach that I have been using for the past 7 years. On Mandriva (and Mageia), the net_applet tool can do all that configuration anyway, so there really doesn't seem to be any benefit. Of course, systemd will most likely require NetworkManager only at some point. I hope someone fixes NetworkManager to be more sane before then.

      At present, I don't care about having a WiFi network connected before a user is logged in. Surely on a typical laptop, that occurs once a month or so? We have network authentication with cached crendentials, and I can kinit after logging in anyway. If this is really a requirement, using TPM (with all of its failings) would probably be a better approach.

    27. Re:KNetworkManager by Anonymous Coward · · Score: 0

      You neither have to be an OS wizard nor trust someone else to check.

      Just because I'm no Eng Lit major doesn't mean I can't read a book.

      Just because I'm no carpenter doesn't mean I can't see that the house is built properly.

      The effort needed to spot malicious code is less than that needed to write the malicious code and it DOES NOT require you to be able to write a bloody OS to spot it, even if it's running as part of the OS, rather than, as the parent said, given to you to run ON the OS.

      "Hello World" programs don't require OS wizard skills to debug, so why the hell is "it runs on your OS" mean you have to have those skills if the OS is FOSS?

    28. Re:KNetworkManager by Anonymous Coward · · Score: 0

      As has been explained to you above.. you are a class-A fucking moron who hasn't a clue what he's talking about. Like anyone who uses KDE.

    29. Re: KNetworkManager by Carewolf · · Score: 1

      If the system can decrypt the information automatically and the way it does so is common knowledge (being a standard or the software open source). It will take any attacker just as long to access the information as it takes your system. So you could make it so that it would take months to decrypt, but that would mean rebooting your machine would take months because it needs to do the same thing.

    30. Re:KNetworkManager by Anonymous Coward · · Score: 0

      even simpler - no password on wifi. works for me.

    31. Re: KNetworkManager by DrPBacon · · Score: 1

      I meant more as in human analytical time. If you write some clever code to obfuscate the way you access a file in a way that's elaborate, clever and unpublished, it's going to take a theoretical attacker a pretty long time to work out what the hell kind of bullshit you were doing. I'm not saying it's impossible, but it can easily be not worth the time.

      --
      Spent All My Mod Points
    32. Re: KNetworkManager by lars_stefan_axelsson · · Score: 1

      That's a common misconception. Obfuscation can provide security is the attacker doesn't have the means to de-obfuscate, isn't smart enough to find it, or doesn't have the time/resources to get it.

      But in this day and age of almost exclusively class breaks that's not a realistic threat model as it hinges on the fact that you're the only one that does that particular obfuscation. So getting NetworkManager to do something "better" would be pointless. The attacker would not only have access to that information as it would be spread far and wide, his tools would deobfuscate automagically.

      Obfuscation would work for the likes of the NSA, and then on top of everything else as icing on the cake. For the rest of us, not so much.

      --
      Stefan Axelsson
    33. Re: KNetworkManager by Anonymous Coward · · Score: 0

      in a way that's elaborate, clever and unpublished

      Do you suggest that NetworkManager should add option to write your own pluggable module for extracting password from whatever you like any way you like? Cause if this auth module is shipped alongside NetworkManager itself, that sure can't be called "unpublished", can it?

  4. My password is printed on the side of my router by Anonymous Coward · · Score: 0, Redundant

    I have Verizon FIOS, and the password is printed on the side of the router.

    1. Re:My password is printed on the side of my router by 228e2 · · Score: 2

      And thats not the worst part. You can't change your PW, and they only offer WEP.

      --
      Since when does being a Socialist mean 'someone who has a different opinion than me'?
    2. Re:My password is printed on the side of my router by macbeth66 · · Score: 1

      I've disabled the FIOS provided wireless access, added two wireless access points ( upstairs and downstairs ), each connected by hardwire to to the router and use whatever protocols and passwords I desire.

    3. Re:My password is printed on the side of my router by Grishnakh · · Score: 1

      Why do you have two APs? WiFi penetrates to adjacent floors on a typical residential home with no trouble. I have a 3-story (including the basement) house with my AP on the middle floor, and I have no connectivity problems at all. The problem with WiFi is line-of-sight distance; if your house is a giant 6000sf McMansion and is really spread out, you could have a problem, but as long as you're not far away from the AP it should be fine.

    4. Re:My password is printed on the side of my router by wangmaster · · Score: 2

      Dunno what the original poster has but I have a 1600 sq foot house. basement first floor and second floor. 795 sqft rectangular foot print. My wifi access point on the first floor gets a horrid signal in the basement (especially near the corners). My wifi router in the basement doesn't reach the top floor corners.

      This is specific to the 5ghz bandwidth which I use exclusively.

      Yes, custom antennas might help, but wifi routers are cheap (just for reference I have an Asus rt-n56u and a buffalo wzr-hp-ag300h).

      House is built in 1946. There are many situations where a single wifi access point doesn't work, even when you'd think it might.

    5. Re:My password is printed on the side of my router by jawtheshark · · Score: 1
      I also have a three story house and a WAP in the middle. Reception is horrible, horrible, horrible. I think it's all the insulation material (class B house) and the floor heating (a lot of water in the floors) and on top of that the floors are concrete. I now have a second access point, one on the second floor.

      Cellphone reception is also terrible in the middle of my living room. My best bets are turning off Data on my cellphones so that it doesn't try to negotiate quicker speeds.

      I'd really like to know how to improve things. House has been built last year. I expect this to be a common problem in low energy houses.

      --
      Ahhh...the great dumpster continuum. Many a free computer will be found there. -- sowth (748135)
    6. Re:My password is printed on the side of my router by macbeth66 · · Score: 1

      Why do you have two APs?

      I have steel beams between the first and second floors that seem to interfere with wifi. It could be something else, but since I have the two units and had hardwire between the floors, I use them.

    7. Re:My password is printed on the side of my router by PNutts · · Score: 2, Funny

      Why do you have two APs? WiFi penetrates to adjacent floors on a typical residential home with no trouble. I have a 3-story (including the basement) house with my AP on the middle floor, and I have no connectivity problems at all. The problem with WiFi is line-of-sight distance; if your house is a giant 6000sf McMansion and is really spread out, you could have a problem, but as long as you're not far away from the AP it should be fine.

      Sorry, you brought theory to a practical fight.

    8. Re:My password is printed on the side of my router by chill · · Score: 2

      I have two APs.

      One for 2.4 GHz b/g/n devices that can't really be upgraded. Older phones, Chromebooks, tablets and my bathroom scale.

      The other is for 2.4 GHz/5 GHz 802.11ac devices that HAVE been upgraded and use the extra bandwidth, like for streaming HD video or transferring large files to a server.

      I keep them on separate channels.

      --
      Learning HOW to think is more important than learning WHAT to think.
    9. Re:My password is printed on the side of my router by GIL_Dude · · Score: 1

      I have two access points as well. House is a two-story, 2,590 square feet. Cable access is at one end of the house and the main router is there as well. At the far end of the house, the signal has to go through several walls, a washer and dryer, and a staircase to get to the Chromecast plugged in behind the TV against the outer wall. It is about 1 bar and I am not about to try to use it like that as it will likely stutter and degrade. So I pulled wire to that end of the house and there is a second router (in simple bridge mode) there. As a bonus, I now have coverage in the upstairs master bedroom / bathroom where there was basically no signal before. BTW, this isn't a single router / brand issue. I have used about 7 or 8 different routers - all sorts of brands from Linksys, Netgear, Buffalo, etc. and they all had the same issue getting to the other end of the house.

    10. Re:My password is printed on the side of my router by Culture20 · · Score: 1, Funny

      (class B house)

      Well there's your problem. You should be living in a class M environment.

    11. Re:My password is printed on the side of my router by Grishnakh · · Score: 1

      Aha: the 5GHz thing might be your problem. 5GHz has poorer range and is more attenuated by walls than 2.4GHz. I'm only using 2.4, so I'm not seeing these problems.

    12. Re:My password is printed on the side of my router by TooTechy · · Score: 1

      How come the only class with a name is Minshara?

      I guess all UNIX's are Class Y (Demon worlds)

    13. Re:My password is printed on the side of my router by TooTechy · · Score: 1

      Trust a WAP to bring theory to a practical fight.

    14. Re:My password is printed on the side of my router by Culture20 · · Score: 1

      I'm pretty sure they were all Vulcan names that humans couldn't universally pronounce correctly, so they dumbed them down to just the letter.

    15. Re:My password is printed on the side of my router by isorox · · Score: 1

      Why do you have two APs? WiFi penetrates to adjacent floors on a typical residential home with no trouble. I have a 3-story (including the basement) house with my AP on the middle floor, and I have no connectivity problems at all. The problem with WiFi is line-of-sight distance; if your house is a giant 6000sf McMansion and is really spread out, you could have a problem, but as long as you're not far away from the AP it should

      There's your problem. At least you didn't include the word just. If anyone ever tells me "it should just work", I know it's broken.

    16. Re:My password is printed on the side of my router by Anonymous Coward · · Score: 0

      > Why do you have two APs?

      Are you European? For good coverage in most homes in the US where I've installed equipment while working for Charter, you need two more more APs to get acceptable coverage in the entire dwelling. In many places of a house, you can end-up with a refrigerator, oven, water heater, or other large piece of metal that blocks the signal. Keep in mind that all of those things are typically much bigger in a house in the US versus in Europe. Also, around here a lot of houses have stucco which often means metal lathing. In my 900 sq ft condo, I have three cisco Aironet 2600 APs and still have poor coverage in the corner of one bedroom and on my balcony. I have expanded metal lathing on the outside stucco and metal mesh lathing, look like a thick window screen, on the plaster walls inside and metal kitchen cabinets so getting good coverage is quite a challenge.

      Of course, the network only works with 2.4 GHz. The 5 GHz range will not work unless you're in the same room. My walls, which are not that atypical in the US, are opaque to 5 GHz.

    17. Re:My password is printed on the side of my router by Grishnakh · · Score: 2

      Nope, American. I live in the northeast in a 1930-vintage wood-frame house, and my AP is 2.4GHz. I hadn't considered 5GHz or steel beams when I wrote that, which apparently are some significant factors for some people. Not much stucco around here, thankfully (that shit looks horrible), and the houses here all tend to be similar to this one: fairly old and all-wood. The kitchen here is at the opposite end of the house from where my AP is located, so the kitchen appliances aren't really a factor, though I don't notice any problems when I use my laptop in there either. The water heater and boiler are in the basement, so they don't block any places.

    18. Re:My password is printed on the side of my router by Carewolf · · Score: 1

      Depends on what your floors are made of. If it is made of concrete the signal is blocked. If you live in a concrete house you often can't even use a cell phone without going to a window and you may need repeaters for wifi in each room unless you can place it in a hall where the signal can reach the rooms through the doors. Concrete is common in modern urban appartments but less so in suburban single home houses.

    19. Re:My password is printed on the side of my router by Carewolf · · Score: 1

      Sorry, you brought theory to a practical fight.

      No, he brought an anecdote. The theory is sound. Wifi can not penetrate concrete.

    20. Re:My password is printed on the side of my router by DarwinSurvivor · · Score: 1

      Sorry, you brought theory to a practical fight.

      No, he brought an anecdote. The theory is sound. Wifi can not penetrate the rebar in concrete.

      FTFY

    21. Re:My password is printed on the side of my router by Urkki · · Score: 1

      The rebar should not matter much, it has too big holes to stop WiFi frequencies. It's just signal getting weaker when passing through the material. Rebar certainly plays a part in that, but does not stop the signal.

    22. Re:My password is printed on the side of my router by Anonymous Coward · · Score: 0

      Aha: the 5GHz thing might be your problem. 5GHz has poorer range and is more attenuated by walls than 2.4GHz. I'm only using 2.4, so I'm not seeing these problems.

      In short, I have no idea what I'm talking about, but I'm going to barf all over the internet like I know what the fuck I'm talking about. I'm sure your single access point works great in your mom's basement.

  5. From a comment there by Anonymous Coward · · Score: 5, Insightful

    While it is true that the passwords are stored as plain text, in order to view the "plain text" one must have root privileges to view the text file.

      I would venture to state that "if" one's system is open enough (a stranger has root privileges) for some unwanted person to view that text file, then one has much more to worry about than the fact that one's wifi password is not encrypted.

      Also, to fix it, one must disable the "Available to All Users" option... thus requiring one to enter one's password for wifi on every login... which is annoying to say the least.

      Personally, I think the issue is pretty much a mountain out of a molehill... because, and again, if to view it, you have to be root, then the whole system is vulnerable and not just the wifi password.

    Which completely ignores security vulnerabilities in Linux, as many advocates do. Still, the relevant point is that for someone to steal your wifi password this way, they're already in position to do much worse.

    1. Re:From a comment there by MacDork · · Score: 3, Insightful

      If someone has physical access to your hardware, they're already in a position to do much worse. Encrypted drive? Let me just load this keylogger into BIOS mmm kay?

    2. Re:From a comment there by gweihir · · Score: 5, Insightful

      No, it does not. Have you actually read the part "" one's system is open enough (a stranger has root privileges) for some unwanted person to view that text file, then one has much more to worry about than the fact that one's wifi password is not encrypted."? Apparently not. As the password has to be available in plain at the authentication time, this nicely sums up, why the password storage is not a problem. But to understand that, you would actually need to have a minimal clue what you are talking about...

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    3. Re:From a comment there by Anonymous Coward · · Score: 1

      Exactly. How is this any different than using the show passphrase checkbox in Windows? It's still real world readable to authorized users. Much ado about nothin' is what this is.

    4. Re:From a comment there by Anonymous Coward · · Score: 1

      If you're using Softpedia as a knowledgeable source, then you've got much bigger problems than you can imagine!

    5. Re:From a comment there by Anonymous Coward · · Score: 0

      Can't protect the system from a highly funded government entity? Shucks why bother protecting it at all! I would rather it be secure against any idiot with a bootable usb drive even if the NSA could get in.

    6. Re:From a comment there by bonehead · · Score: 1

      I would venture to state that "if" one's system is open enough (a stranger has root privileges) for some unwanted person to view that text file, then one has much more to worry about than the fact that one's wifi password is not encrypted.

      This ignores multiuser systems.

      Simply having an account on a multiuser system does not mean I want all admins on that system to have access to my info.

      Worse than that, if you accept that argument as valid, then there is no point in encrypting and/or hashing passwords. Ever. Just store the file in a "safe" place.

    7. Re:From a comment there by Anonymous Coward · · Score: 0

      Well yes, the point is that these same vulnerabilities will exist on EVERY device and operating system. If someone is in a position to access the file as-is, encrypted or not, then they already have access to the means to decrypt it even if you're using something like full disk encryption.

    8. Re:From a comment there by amorsen · · Score: 4, Interesting

      You cannot hash wifi passwords. The password needs to be available in plain text form at authentication time. Root can always get to the unencrypted bits, no matter which weird obscuration mechanism you try to use. Even if you require the user to type in an unlock key every time, root can sniff the key.

      Mandatory access control like SELinux or AppArmor can actually provide some security in this case. Sprinkling magic encryption dust cannot.

      --
      Finally! A year of moderation! Ready for 2019?
    9. Re:From a comment there by Anonymous Coward · · Score: 0

      Using file privileges to protect data fails when the person uses some sort of privilege escalation to gain root access
      System V unix used to have a faulty fingerd that would allow you to execute commands as root. All that it took was changing everything under etc to 777 and the system was yours for the taking
      I am not familiar with linux vulns, but it is a fair bet that they are out there. Someday we will have to go back to a Multics model where NOBODY has root

    10. Re:From a comment there by Anonymous Coward · · Score: 0

      While it is true that the passwords are stored as plain text, in order to view the "plain text" one must have root privileges to view the text file.

        I would venture to state that "if" one's system is open enough (a stranger has root privileges) for some unwanted person to view that text file, then one has much more to worry about than the fact that one's wifi password is not encrypted.

        Also, to fix it, one must disable the "Available to All Users" option... thus requiring one to enter one's password for wifi on every login... which is annoying to say the least.

        Personally, I think the issue is pretty much a mountain out of a molehill... because, and again, if to view it, you have to be root, then the whole system is vulnerable and not just the wifi password.

      Which completely ignores security vulnerabilities in Linux, as many advocates do. Still, the relevant point is that for someone to steal your wifi password this way, they're already in position to do much worse.

      In summary, new "vuln" announcement...plain text wifi password is viewable by those with root.

      In other words, why in the holy FUCK are we even discussing this? If someone has root, you're owned. That's not l33t hacker-speak, it's fucking Security 101.

      Damn. Some days, it's like we delve into childish non-stories just for the hell of it.

    11. Re:From a comment there by sunderland56 · · Score: 1

      This ignores multiuser systems.

      Multi-user systems don't need all users to be an administrator.

      Even on a personal machine never used by anyone else, a normal Unix/Linux system won't have administrative rights on the regularly used login account.

    12. Re:From a comment there by MacDork · · Score: 1

      Can't protect the system from a highly funded government entity? Shucks why bother protecting it at all! I would rather it be secure against any idiot with a bootable usb drive even if the NSA could get in.

      Anyone with a usb stick can ruin your shit. There's no magic going on at the NSA. I merely point to them to illustrate the staggering enormity of software available which can defeat the simple "encrypt it" plan from an attacker with root and/or physical access to your box.

      Security theater is security theater. Why waste developers' time implementing a feel good encryption scheme that is hardly better than no encryption at all? I can't imagine this would be a high priority task. Also... Open Source: If it matters so much to you, fix it yourself.

    13. Re:From a comment there by Anonymous Coward · · Score: 0

      If they're already exploiting a privilege escalation vulnerability to gain root access then they have the ability to probe the contents of memory to find out your WEP/WPA key that way.

      In that case, it would be irrelevant to encrypt your hard drive (and they can steal your disk encryption key too while they're at it).

      Realistically, the only thing that encrypting the passwords will help you with is if somebody steals your device when its powered off, and if you're worried about that, you probably should have better security measures to have not lost your device to begin with and should be employing other security measures along side encryption (such as not using pre-shared keys as the authentication mechanism to enter into your WiFi network).

    14. Re:From a comment there by bonehead · · Score: 1

      Multi-user systems don't need all users to be an administrator.

      True.

      But in most organizations of any size, a multi-user system will also be a multi-admin system.

    15. Re:From a comment there by sunderland56 · · Score: 1

      Most corporate sysadmins are in charge of setting up things like wifi access - so they will already know the wifi password.....

    16. Re:From a comment there by Anonymous Coward · · Score: 1

      First rule of computer security: if someone has physical access to your hardware, it's no longer your hardware.

    17. Re:From a comment there by Anonymous Coward · · Score: 0

      That article has nothing to do with the issue at hand, some random criminals usb slurper is not going to break AES, sorry. It's called layered security, just because a measure doesn't stop every possible attacker 100% of the time doesn't mean you shouldn't use it at all.

    18. Re:From a comment there by blueg3 · · Score: 3, Insightful

      This.

      This comes up all the time, and people are always shocked and horrified that certain data are stored in plain text. They want instead for magic encryption dust to be sprinkled on things. But often it's the case that there is no reasonable alternative. Data like WiFi passwords have to be available in plain text at the time they are used. If your system is configured so that a WiFi connection should be available to any user (or if it should be connected at boot time, before user login), then it must be available in plain text. If you encrypt it, the same party that would have had access to the plain-text form instead needs access to the encryption key, which means that the encryption is doing nothing.

      There are some design failures that could be improved. User-specific WiFi connections can have their passwords encrypted, but they are often not as well-supported or well-designed as they should be. User-specific networking configuration in general under Linux is not very well supported (to be fair, it's tricky), but it's a good option for any really multi-user system.

      Encrypting the whole disk is certainly an option, as the article points out, but it's solving a different problem. There's tons of plaintext data that your system needs to have access to that's potentially sensitive. That's the nature of the system. You can't realistically encrypt it from the perspective of the "live" system -- the live system would just need the encryption key, too -- but you can encrypt the disk, which encrypts it from an attacker that has access to the powered-off hardware. However, a) this is a much broader protection than solving "WiFi passwords aren't encrypted", b) if an attacker has access to your hardware, realistically, WiFi passwords are the least of your concerns, and c) full-disk encryption can be tricky to do right on laptops, which are the main user of WiFi.

    19. Re:From a comment there by bonehead · · Score: 1

      They will know the company's wifi passwords.

      That doesn't mean they have any business seeing, for example, the home wifi password on an employee's company laptop.

    20. Re:From a comment there by KDN · · Score: 1

      Um, not quite. assuming your taking about WPA or WPA2, the PSK is only needed to build the PMK (Pairwise Master Key). After that is no longer needed. But, if you change the access point or the NIC, you need to build it again. If your worried, go to enterprise mode.

    21. Re:From a comment there by entrigant · · Score: 1

      You just described the evil maid attack. There is a technology designed to protect against that. It's very common in laptops, but hard to find in desktop boards. /. inexplicably hates it. It's that magic TPM chip. Boot time chain of trust is a well researched, well understood, and, when ignorance isn't pushing it out of markets like desktops, a mostly solved problem.

    22. Re:From a comment there by Anonymous Coward · · Score: 0

      If you put something on your company's computer it is their data not yours. If this worries you don't connect your work computer to your home WiFi, also don't put personal pictures on it, nor do any online banking as they could get to those passwords too.

    23. Re:From a comment there by Megol · · Score: 1

      What is sad is that it is 2013 (soon 2014) and the operating systems most used by ordinary people doesn't per default implement fine-grain protection. Now in theory Windows as default is better fitted for doing something like this than a standard Linux installation - but in practice the reverse is true. In the few places where there are some fine grain protection like e.g. Android it's effectively disabled as programmers are lazy and people would be inconvenienced.

    24. Re:From a comment there by intangible · · Score: 3, Informative

      TPM is hated by Slashdot because the mobo manufacturers have a dirty habit of preloading the Microsoft keys and not allowing you any way to remove the Microsoft keys or use your own, effectively making it useless for any real security purpose (beyond vendor lock-in to Microsoft).

      In fact, the ARM Windows RT tablets were required by Microsoft to force Microsoft's TPM SecureBoot keys only.

      Microsoft's dirty tactics and motherboard manufacturers with their head in their ass are the reason TPM is shunned.

    25. Re:From a comment there by MacDork · · Score: 1

      All your software doesn't matter if your keyboard has a wireless transmitter hidden in the cable. If I know your password, I can sit down and log in as you. It would not be hard for a maid to replace your keyboard in your absence.

    26. Re:From a comment there by MacDork · · Score: 1

      Yeah, layered security. You have a six foot thick iron door on the front of your house, right next to your 25mm thick glass window. Good luck with that.

    27. Re:From a comment there by VortexCortex · · Score: 1

      You cannot hash wifi passwords. The password needs to be available in plain text form at authentication time.

      Au Contraire! My cybernetic neural network is an effective hashing function for my wifi password. Not even root users can get at the data when stored distributed across my memory buckets. Of course, this means typing in a password, however it's far more secure. The key is stored divided into parts and accessed via chain of cognitive-space memo-recall triggers, whereby the hash of one spacial entity, "Start of password" results in a few characters being recalled and also points to the next hash to recall. The episodic nature of my somewhat human intellect handles the process transparently.

    28. Re:From a comment there by Anonymous Coward · · Score: 0

      This ignores multiuser systems.
      Simply having an account on a multiuser system does not mean I want all admins on that system to have access to my info.

      The WiFi password isn't YOUR information, it's available to everybody who needs to connect to the access point.

      The reason we're saying the article is FUD is because the WiFi password MUST be known in order for it to work, that's how simple wifi security works. If you need to keep things more tightly locked down then you should be using something like RADIUS to authenticate instead.

    29. Re:From a comment there by mysidia · · Score: 1

      Mandatory access control like SELinux or AppArmor can actually provide some security in this case. Sprinkling magic encryption dust cannot.

      Maybe, but this is not the right way. You should switch your wireless authentication to 802.1X with certificate-based authentication, and use a physical smart card, as the machine certificate, for authentication of access to the network: whether WiFi access, or 802.1X wired port security.

    30. Re:From a comment there by buchanmilne · · Score: 1

      c) full-disk encryption can be tricky to do right on laptops, which are the main user of WiFi.

      Why?

      I have been using full (or, full enough, /boot isn't encrypted) disk encryption on my laptops for years. Since my only non-laptop is a workstation in a secure facility, I only did full disk encryption on that a few months after first doing it on my laptop (which is a much bigger security risk than my workstation).

    31. Re:From a comment there by amorsen · · Score: 1

      If you do that, NetworkManager does the right thing.

      Not that I have ever seen an office network configured that way, but I am sure they exist. It must be annoying to have a smart card reader glued to your phone though.

      --
      Finally! A year of moderation! Ready for 2019?
    32. Re:From a comment there by amorsen · · Score: 1

      Fine, just do not click the button to make the connection system-wide. Then NetworkManager works exactly as you want. However, the password is still available in plain text form at authentication time, in the widget where you typed it.

      --
      Finally! A year of moderation! Ready for 2019?
    33. Re:From a comment there by amorsen · · Score: 1

      How are you going to build the Pairwise Master Key at bootup if you do not have the plaintext key? Many (most?) networks have an authentication timeout, so just storing the PMK is not a complete solution.

      --
      Finally! A year of moderation! Ready for 2019?
    34. Re:From a comment there by amorsen · · Score: 1

      I do not agree with you that fine grain protection is disabled in Android. I love that apps show me which permissions they expect. The only thing I want more is to be able to deny them those permissions even when they ask for them. I use third party tools for that, but it is admittedly not the perfect solution.

      --
      Finally! A year of moderation! Ready for 2019?
    35. Re:From a comment there by blueg3 · · Score: 1

      Purging the encryption key from the system when it's in any state other than powered off completely (i.e., sleep and hibernate) is tough, and so it's often not done well. Laptops typically spend a lot of time both in one of these suspended states and also vulnerable to theft (or other unauthorized physical access).

      It's not actually any harder for laptops than for desktops, except that the typical usage and attack model are different.

    36. Re:From a comment there by mysidia · · Score: 1

      It must be annoying to have a smart card reader glued to your phone though.

      There are alternatives to physical smart card readers, such as little Yubikey nano-style USB token "stubs", that provide a hardware authentication token integrated with a USB or micro-usb connector --- with little or no footprint outside the USB connector of the smart phone or laptop.

    37. Re:From a comment there by Anonymous Coward · · Score: 0

      Please do not let the usability of the system become lost in the rush to become secure. If the only thing on said machine is a few downloaded open source apps and some bittorrent'd things Jack Valenti would cry about, perhaps having a Wi-Fi key in plaintext is a perfectly acceptable level of security.

      Not everyone needs to hide their embarassing porn sub-genre addictions by steganographically hiding things in ecrypted audio CDs of "ocean surf".

    38. Re:From a comment there by amorsen · · Score: 1

      Fair enough, let us see if we can get the people complaining about the plain text passwords to buy Yubikeys. It is a sensible choice, for sure.

      --
      Finally! A year of moderation! Ready for 2019?
    39. Re:From a comment there by KDN · · Score: 1

      From what I remember, PMK is all that is needed for WPA2. I don't have my SANS617 books handy, but from what recall, the PMK is built from the SSID, length SSID, AP MAC, Client MAC and PSK and then hashed 4096 times to deter dictionary attacks. On connection request, the PTK is built from the PMK, AP nonce and client nonce.

    40. Re:From a comment there by amorsen · · Score: 1

      You obviously have superior knowledge of this topic. Storing the PMK sounds like an excellent solution. Of course the PMK is still almost as sensitive, but at least it will keep people quiet.

      However, what if there are multiple APs with the same SSID and PSK? In smart modern networks they all pretend to be just a single AP so roaming can be done without rekeying, but what about the less clever networks? Having to retype the key until every AP has been visited could be tedious.

      --
      Finally! A year of moderation! Ready for 2019?
    41. Re:From a comment there by KDN · · Score: 1

      If you have a large place, go with WPA2-Enterprise instead of WPA2-PSK. In enterprise mode, there is no PSK. Every client gets their own PMK when they authenticate. Granted, it assumes all users have ids and passwords, but that should be the case for any large installation. Some clients will have problems when the user password changes. You may need to delete the WLAN entry and then let it be discovered again.

  6. Security - and a false sense of security by Anonymous Coward · · Score: 2, Insightful

    The OS has to be able to decrypt the password to connect to the wifi network.
    Windows stores the password as an (unencrypted) hex string in the registry. Guess I've gotta go with full-disk encryption then...

    1. Re:Security - and a false sense of security by jones_supa · · Score: 2, Informative

      Windows stores the password as an (unencrypted) hex string in the registry.

      Just to clarify...

      Windows XP stores WiFi passwords unencrypted in registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WZCSVC\Parameters

      Windows 6.x stores WiFi passwords in encrypted XML files under hard disk folder %PROGRAMDATA%\Microsoft\Wlansvc\Profiles\Interfaces

    2. Re:Security - and a false sense of security by Anonymous Coward · · Score: 0

      That's so bad I'm going to respond in 4chan format:

      > XML files

      > Why

    3. Re:Security - and a false sense of security by Anonymous Coward · · Score: 2, Informative

      They are not encrypted. For that it would be necessary to use a user private key. Instead, they are obfuscated with a system key: http://securityxploded.com/wifi-password-secrets.php

      They are trivial to recover.

    4. Re:Security - and a false sense of security by amorsen · · Score: 2

      What exactly does it help that they are encrypted? The system can obviously decrypt them, otherwise it would not be able to use the passwords at all. Therefore the encryption is just obscuration, and it might lead people to apply insufficient protection to the files themselves in the belief that the contents are not sensitive.

      --
      Finally! A year of moderation! Ready for 2019?
    5. Re:Security - and a false sense of security by recoiledsnake · · Score: 1

      From your link:

      One catch here is that you can't just decrypt the password even though you are administrator. To successfully decrypt the password, you have to perform the decryption operation under system context.

      There are many ways to execute the code under SYSTEM context, one of the popular way is to inject the code via remote thread [Reference 2] in system process - LSASS.EXE. But this one is more risky, as any flaw in code can bring down the entire system. Much safer way is to create Windows service as System account and then execute the above decryption code from that service.

      How would encrypting it with a user key help?

      --
      This space for rent.
    6. Re:Security - and a false sense of security by Anonymous Coward · · Score: 0

      A casual observer might not know how to decrypt them, which increases security.

    7. Re:Security - and a false sense of security by amorsen · · Score: 1

      A casual observer should not have root access to your machine.

      --
      Finally! A year of moderation! Ready for 2019?
    8. Re:Security - and a false sense of security by Bert64 · · Score: 1

      And where is the key to decrypt these encrypted xml files stored?
      By making the storage more complicated your just making it more difficult to debug and/or fix when it breaks, if both the key and encrypted data are available (which they must be in order to connect to the wifi network) then the data can be read. There are already freely available tools to extract the wifi keys from windows machines, obfuscating the key provides exactly zero benefit.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    9. Re:Security - and a false sense of security by Anonymous Coward · · Score: 0

      Because this user key may be symmetrically encrypted with... another password. Even with vulnerabilities present you would have some "protection".

    10. Re:Security - and a false sense of security by blueg3 · · Score: 1

      A casual observer might not know how to decrypt them, which increases security.

      This is just grasping at straws. Your attack model for security should never be, "well, hey, at least it protects against a casual observer".

    11. Re:Security - and a false sense of security by Megol · · Score: 1

      Yes but not all parts of the system need to even be able to access it. Limiting the access means less chance for a bug to expose the password.

    12. Re:Security - and a false sense of security by Megol · · Score: 1

      Nor should any user of the machine. Unix isn't the best model for security related stuff.

    13. Re:Security - and a false sense of security by Anonymous Coward · · Score: 0

      There are many ways to execute the code under SYSTEM context, one of the popular way is to inject the code via remote thread [Reference 2] in system process - LSASS.EXE. But this one is more risky, as any flaw in code can bring down the entire system. Much safer way is to create Windows service as System account and then execute the above decryption code from that service.

      Or you could just "psexec cmd.exe /k" specifying the System account to get a command line as System. That's how I've fixed broken ACLs with cacls in the past (Windows likes to clobber ACLs occassionally and Administrator doesn't have access to fix them.)

    14. Re:Security - and a false sense of security by rev0lt · · Score: 1

      toor is looking at you!

    15. Re:Security - and a false sense of security by Ash-Fox · · Score: 1

      Even with vulnerabilities present you would have some "protection".

      What protection?

      I don't get it. If I have root access, I can get what I need on Linux.

      If I have Administrator access, I can get what I need on Windows too.

      --
      Change is certain; progress is not obligatory.
    16. Re:Security - and a false sense of security by Anonymous Coward · · Score: 0

      Not if you don't know the password that was used to symmetrically encrypt the key. Try it -- it is the basis of Windows NTFS encryption -- root does not have access to encrypted users dirs unless the user logs in.

    17. Re:Security - and a false sense of security by Ash-Fox · · Score: 1

      Not if you don't know the password that was used to symmetrically encrypt the key.

      I created a new user account on my Windows 7 system, it had administrator privileges, much like how root is required to view that wireless password on Linux.

      I then logged into that account, opened the wifi settings, ticked show password and I could view the password just fine. Seems like I got access to it just fine?

      --
      Change is certain; progress is not obligatory.
    18. Re:Security - and a false sense of security by amorsen · · Score: 1

      With SELinux you can run with a completely useless root account if you prefer. Unix security has traditionally been a complete joke, but the Windows low-level design is not particularly better. What would you like instead of Unix? AS/400 or zOS perhaps? I do not think either of them can handle graphical applications, but I could be wrong. Adapting them for widespread client-side use seems challenging.

      --
      Finally! A year of moderation! Ready for 2019?
    19. Re:Security - and a false sense of security by Anonymous Coward · · Score: 0
      You have to _encrypt_ the home directories. That was the entire point of the post. It's how NTFS _encryption_ works!

      Sigh...

    20. Re:Security - and a false sense of security by Ash-Fox · · Score: 1

      You have to _encrypt_ the home directories. That was the entire point of the post. It's how NTFS _encryption_ works!

      Which doesn't protect anything under %ProgramData% - like the wireless keys for the system.

      Do note we are talking about protecting the system's wireless network configuration, not user specific ones. In this particular scenario, distros like Ubuntu use keychain store applications that by default ask the user to set a master password to protect all their credentials with, something Windows is currently lacking.

      --
      Change is certain; progress is not obligatory.
  7. NetworkManager sucks ass anyway by Anonymous Coward · · Score: 1

    This is just another lead balloon for the project. Why not use a keyring? Why is it automatically set up to use multicast DNS by default? Why is it so damn hard to configure settings for a DHCP client?

    1. Re:NetworkManager sucks ass anyway by amorsen · · Score: 1

      NetworkManager uses the keyring if you keep the passwords user-only. As soon as you enable the connection to start without any user being logged in, a wallet is useless.

      --
      Finally! A year of moderation! Ready for 2019?
  8. So? by allo · · Score: 1

    Why is my networkmanager applet asking for access on kwallet?

    i guess its only stored plaintext, if you want it to autoconnect globally. And then its required to be plaintext.

  9. It's true -- but only root can read them though. by Anonymous Coward · · Score: 1, Insightful

    The basic fact is true - they are there in plaintext.

    But since only root can read the file, it doesn't mean much in terms of a security hole. If the attacker is already root, they have access to everything on your system anyway.

  10. Has been for years. by Anonymous Coward · · Score: 0

    I know it doesn't really change the fact that it's non-secure, but this isn't really news.

    1. Re:Has been for years. by gweihir · · Score: 4, Insightful

      It is secure with regard to the design specification. The client does need to have the plain-text password or it cannot authenticate itself. If you do not want a plain-text password to be available to the entity storing it (and that is what password protection is all about), then you cannot use a mechanism where the plain-text password needs to be supplied. At best this is a Wi-Fi protocol vulnerability.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    2. Re:Has been for years. by Anonymous Coward · · Score: 0

      Exactly. The machine has to be able to provide the password to the access point. No matter what scheme is used to store passwords, the machine can decrypt. So anyone taking over the machine can get all the passwords. Except if you provide a "password-decrypting" password each an every time wifi re-authenticates. Which gets old real fast.

      At least on linux, the user using the machine do not have access to the files with passwords. Only root has. And while the user may very well be admin and know the root password, he is not logged in as root normally. So a hacker taking over the web browser or some such, will not gain those wifi passwords. While windows people are admin all the time, unless they have a crippled corporate setup.

    3. Re:Has been for years. by blueg3 · · Score: 1

      There are two alternative designs that are slightly more secure.

      First, usually the WiFi password file is globally-readable. It really only needs to be root-readable, though this makes the network management architecture a little more complicated.

      Second, you can use user-specific WiFi connections, where the password is stored in a database encrypted using the user's login password and decrypted at login time.

  11. Not for me... by sce7mjm · · Score: 1

    It says they are stored under /etc/NetworkManager/system-connections

    I have the info for my wired and wireless connections, but he passwords are definitely not stored in there plain-text or otherwise...

    Which leads me to ask where does it store them?

    1. Re:Not for me... by Anonymous Coward · · Score: 0

      They're only stored in that file if the connection is set as "available to all users" in the connections editor. I think if it's only available to a single user that it's stored under that user's keyring.

  12. Encrypting the full disk by __aaaipu5720 · · Score: 1

    "Encrypting the full disk"

    Is that something I should be doing? New-ish Linux user here.

    1. Re:Encrypting the full disk by mlts · · Score: 1

      A lot of distributions offer LUKS encryption on bootup. I'd highly recommend going that route.

      As for storing a Wi-Fi key plaintext, I consider it a nonissue because any program that gets root will be able to get the Wi-Fi password anyway, and even if it is obfuscated, there will always have to be a way to de-obfuscate it.

    2. Re:Encrypting the full disk by dbIII · · Score: 1

      Not unless it's one of a series of things that you are doing that have a way to get the stuff you have on that disk if you lose the password, or if losing the lot is a better option than someone else getting access.

    3. Re:Encrypting the full disk by __aaaipu5720 · · Score: 1

      Will I see a significant drop in computer speed or anything by encrypting the disk?

    4. Re:Encrypting the full disk by mlts · · Score: 1

      Not really. Encryption isn't going to be a performance issue on any machine made in the past decade.

    5. Re:Encrypting the full disk by Anonymous Coward · · Score: 0

      workstation linux
      ---
      TPM hw platform
      dm-crypt with either smartcard insertion or a console password for the disk
      user encryption of home directories
      usage of passphrases instead of passwords for convenience and security

      workstation mac
      ---
      hfs+ encrypted volume
      user encryption on home dirs
      passphrases

      fileserver
      ---
      TPM hw platform
      FreeBSD (or FreeNAS if you're lazy)
      ZFS full disk encryption

      router
      ---
      mikrotik/juniper/cisco with WPA2 enterprise

      good luck :)
      and yeah, plain text pw is a non-issue if you adhere to other (more relevant) security issues

  13. Solution by Anonymous Coward · · Score: 0

    Report it as a bug. Ask for improved security.

    If the maintainer ignores the bug report and fails to act, uninstall the app and find one that works as you wish. Publicize the lackof response of the maintainer withinh the community.

    1. Re:Solution by dyingtolive · · Score: 2

      Well, and it's NetworkManager. Nothing of value is lost by uninstalling it to begin with.

      --
      Support the EFF and Creative Commons. The war is coming, and they're supporting you...
    2. Re:Solution by amorsen · · Score: 1

      Asking for the impossible does not help anyone. Publicizing the lack of response just makes you look like an ass. Particularly if you manage to go public on a forum full of technically knowledgeable people like Slashdot. (Yeah right).

      --
      Finally! A year of moderation! Ready for 2019?
    3. Re:Solution by Anonymous Coward · · Score: 0

      Yes, anything that unconfigures my networks when it stops (including the one everything is NFS mounted from) is a flaming pile of shit anyway.

  14. Alternative? by duckgod · · Score: 1

    If the alternative is to put in a password for every fucking thing I do like KDE seems to insist then sure go ahead and steal my Wi-Fi password. In addition there must be more interesting stuff to take if access to my computer was compromised.

    1. Re:Alternative? by chill · · Score: 1

      In KDE the Wallet acts as a central keyring for all your passwords. You only have to enter the password for the Wallet the first time something needs access and it'll handle it from there.

      The first time a program tries to access the Wallet you'll get a "allow / disallow" prompt, but that is it.

      If you're bitching about having to enter a password ONCE after logging in then you don't even belong in the discussion.

      --
      Learning HOW to think is more important than learning WHAT to think.
    2. Re:Alternative? by egcagrac0 · · Score: 3, Insightful

      If you're bitching about having to enter a password ONCE after logging in then you don't even belong in the discussion.

      Slightly off-topic, but - If I entered a password to log in, why do I need to enter another?

    3. Re:Alternative? by higuita · · Score: 1

      because you should have multiple levels of security...
      the password for login should be different from the kwallet... and you should even use several kwallets, one for websites, other for local access machines, vpn or more secured data (bank info and other logins).

      a true wallet will auto-close after some minutes unused and require new auth to open (to prove that you are still the correct owner and not a random user trying to steal some data

      it's the same for executing superuser commands... it asks a password as a security layer... you can also disable it if you want, but is very recommended to confirm that you are really allowed to do that

      it's up to you, but look at windows and how the the "easy to use" and "do not ask anything, assume it's OK" have broken the security several times and helped hackers and virus to take over the systems.

      Remember, there is no "one size fits all" security, but having as much security layers as possible help a little every time

      --
      Higuita
    4. Re:Alternative? by chill · · Score: 1

      Because of an 8-year ivory-tower esoteric debate on the subject.

      https://bugs.kde.org/show_bug.cgi?id=92845

      A possible fix, using PAM. Not sure how specific to OpenSUSE this is.

      http://linux.eregion.de/2013/10/26/kwallet-single-sign-on-at-last/

      --
      Learning HOW to think is more important than learning WHAT to think.
    5. Re:Alternative? by egcagrac0 · · Score: 1

      it's the same for executing superuser commands... it asks a password as a security layer... you can also disable it if you want, but is very recommended to confirm that you are really allowed to do that

      For my personal computer, I consider WiFi networking "working" to be a core function. It should just work when the computer is on. (Yes, before user log in.)

      Not so with a lot of superuser commands - for example, installing software.

      I'll freely admit that I don't see the advantage of the KDE Wallet system, and every time I've tried to interact with it, it's thoroughly pissed me off. I'm glad it works for you.

    6. Re:Alternative? by Anonymous Coward · · Score: 0

      The same reason you probably have a deadbolt and a regular lock on your front door, and possibly a chain bolt.

    7. Re:Alternative? by adolf · · Score: 1

      The same reason you probably have a deadbolt and a regular lock on your front door, and possibly a chain bolt.

      To help keep the honest people honest? Because none of those things are going to stop an attacker armed with a BFH. And none of those things are going to keep windows from turning into doorways when bricks are involved. And none of those things are going to keep a stealthy attacker from picking the locks (unless they're ridiculously high-quality locks) and cutting the chain with a small bicycle tool.

      My house has locks on the doorknobs, and that is all. It's not worth the effort to go far enough to stop a motivated attacker (steel bars/shutters over windows, inside/outside doors).

    8. Re:Alternative? by higuita · · Score: 1

      You can choose to save the wifi for the system (and so not saved in user kwallet) or for user (stored in the user kwallet)... so you can choose what fits tou best

      to understand kwallet think that you store your credit card in it and you have your computer on a public place. The login is just the first way to protect you, even if someone can see your password, to use your CC, you still have to lose your kwallet password, that is only rarely used an so harder to be stolen. It's the samething for firefox master password, kiskis, keepass(x) or the apple keychain... another layer to protect your passwords.

      If do not want to have 2 layers of security, just set a empty password for kwallet.

      --
      Higuita
  15. And the problem is? by Anonymous Coward · · Score: 2, Informative

    I'm sorry that timothy and the submitter are morons without a clue, but in order to auto-connect to a wifi network without entering your password every time, the wifi key HAS to be readable by the system. Theres no POINT in encrypting it if you aren't entering the password EVERY TIME you connect, otherwise the password may be obfuscated but always available in plain text with little work considering you have the source so you know EXACTLY how the system extracts it.

    --BitZtream

    1. Re:And the problem is? by sqlrob · · Score: 1

      Has to be readable yes. Has to be plain text? No.

      If I give you something encrypted with OpesnSSL and a password, you can break it right? After all, you know everything that OpenSSL does. The wifi password, and any other external credential, should be protected at rest. And yes, it can be done securely even with full source access.

    2. Re:And the problem is? by bluefoxlucid · · Score: 1, Informative

      If the system stores an encryption key and a password, it's storing plaintext in an exotic format. If the system is capable of extracting the plaintext without user intervention, then it's storing plaintext in an exotic format. If it's OpenSSL encrypted, and the OpenSSL key is RIGHT THERE NEXT TO IT, it's in plaintext.

    3. Re:And the problem is? by Bert64 · · Score: 1

      If the data (in this case a wifi key) is "protected" then the system can't use it to connect to the wireless network..
      If the system is able to obtain the wifi key, either by reading a file or by decrypting one, then so is an attacker who has root on or physical access to that system.

      If the system can't obtain the key autonomously, then neither can an attacker with access to that system. In this instance the key really is protected, but then the user has to enter either the wifi key itself, or a decryption key for the stored copy whenever they want to connect to the wifi network.

      Encryption only works when your adversaries don't have possession of the key.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    4. Re:And the problem is? by Anonymous Coward · · Score: 0

      Consider the following, if you lock you door and hang the key on a nail next to it is your door really locked?

  16. So what? by Anonymous Coward · · Score: 0

    Only root has access to the file. If someone has root access on your computer, the damage could be far worse.

    1. Re:So what? by jones_supa · · Score: 1

      That's not a good excuse. We could still make the damage smaller if he can't steal the WiFi password easily. Especially in a business network that can make an important difference.

    2. Re:So what? by egcagrac0 · · Score: 1

      A business network should be using per-user WiFi authentication (like WPA-Enterprise), already avoiding this problem.

    3. Re:So what? by Anonymous Coward · · Score: 0

      no, not really... network access is a non-issue if

      a) data between servers is being passed in a secure manner
      b) access to those servers is secured

      after all you can always have customers/guests using the same wifi connection without compromising the data. ;)
      I want the customers/guests to see the public information if granted access to the network, I don't want them to see the stuff they are not granted access to.
      It's a matter of layering security so that it grants as much protection as needed without inconveniencing anyone... I want the customer/guest to be able to print and surf the net while on my network. I don't want them to be able to touch any of the servers that are not public or any other workstation that has not explicitly shared data with them ;)

  17. What RH did is a sensible choice by Anonymous Coward · · Score: 0

    Making security more cumbersome does not necessarily make it more secure. As it is, the failure modes are fairly obvious, and so would be the on-site policies and precautions. In a system that stored encrypted passwords, they might not be.

  18. Not a real vulnerability by Anonymous Coward · · Score: 0

    This is like saying that because a bank manager can get into a vault and see the money, it's insecure. If someone breaks into the bank it doesn't really matter that the manager can get into the vault. Should it at least be hashed? Sure, but to say that something stored under root is a problem is kind of odd. Then again I encrypt my drive by default, so the live cd vector isn't a problem for me.

    1. Re:Not a real vulnerability by Vanderhoth · · Score: 1

      Should it at least be hashed? Sure

      I will as soon as I get home, but I have yet to verify if TFA is correct or just FUD for myself.

      Normally passwords should be hashed, but in this case it would be pointless as hashing is used to compare. So I hash my password the first time then if I enter the same password each time its hash value will always be the same as the original, but once hashed the original password is "lost" in that it becomes unknown to the system. The problem is in order for your machine to automatically connect to an access point it needs the password. So either you type it in every time or you store it somewhere where the system can access it. Hashing is one way so if the system can only retrieve a hash of the password not the password itself so a hash can't be used to connect to an access point. You'd still have to enter your password every time or store it.

      As others have pointed out you need root access to view the file, if someone has root access to your machine then you have bigger problems, so it doesn't matter if the password file is encrypted or not. If you wrote your password down and stored it in a bank vault and only the bank manager could retrieve it for you would it matter if people could still walk into the banks lobby? Maybe encrypting it would be a good extra step just in case, but I can't see it being a necessity.

    2. Re:Not a real vulnerability by Bert64 · · Score: 1

      Hashing it would make it unusable... Unless your using an authentication scheme like NTLM, where you simply make the hash the equivalent of plaintext anyway - eliminating any benefits from hashing it.

      You could encrypt it, but then every time you wanted to connect you would need a copy of the decryption key. Either you store the decryption key on the system itself, in which case anyone has root or physical access needs only to work out how to extract the key, or you require that the key be entered every time - in which case you might as well not store the wifi key at all and simply require the user to re-enter that every time instead.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
  19. Re:It's true -- but only root can read them though by wiredlogic · · Score: 1

    You don't need to have root access if you have physical access to the drive. Mount it, get the password, and then monitor the network activity of your target.

    --
    I am becoming gerund, destroyer of verbs.
  20. Re:That's why Liux isn't 1st choice for security.. by wangmaster · · Score: 2

    OR more appropriately, wifi isn't 1st choice for security.

  21. man chmod by Gothmolly · · Score: 1

    Change the perms so that only root can read them. If something has rooted your box, your wifi password is the least of your problems.

    --
    I want to delete my account but Slashdot doesn't allow it.
  22. Re:It's true -- but only root can read them though by cheros · · Score: 1

    If the attacker is already root, they have access to everything on your system anyway.

    Not quite. Root access means a compromised single host. Access to a list of WiFi passwords means compromising all the WiFi networks the machine in question has been given access to, so you'd still want that encrypted.

    --
    Insert .sig here. Send no money now. Owner may sue, contents will settle. Batteries not included.
  23. This has saved my butt a couple of times :) by wangmaster · · Score: 1

    I've forgotten the WPA passphrases on two of my relatives wifi networks and of course since I set it up for them they never had a clue. Fortunately, the unencrypted networkmanager files were there and made it super easy for me to tell them what their passphrases were :)

    1. Re:This has saved my butt a couple of times :) by egcagrac0 · · Score: 1

      Whenever I set up a network for friends/family/etc, I get a piece of white* electrical tape, and write on it the SSID and passphrase. I usually also suggest that they put this information on the refrigerator, so that if guests come over, they can readily get online.

      Later, when they ask me how to set up their new tablet, I say "go find the router... the information is all written on it."

      I usually get a second piece of tape and write login username and password on it, and stick that on the bottom.

      At the point when an attacker can read the stickers you put on the box, they've already got you anyway.

      *: Yellow works too.

    2. Re:This has saved my butt a couple of times :) by fisted · · Score: 1

      Does light gray work, too?

    3. Re:This has saved my butt a couple of times :) by egcagrac0 · · Score: 1

      Research thus far has provided no conclusive answer to this question.

  24. FUD, I am a fraid by gweihir · · Score: 5, Informative

    Generally, storing passwords on the verifying machine in plain is a really bad idea. This is not the verifying machine. On the supplying machine, you usually do not have a choice but allow access to the plain-text password, how else would it be supplied? Hence, while you can store it encrypted, that encryption must either be automatically reversible (making it pointless) or protected by an additional password the user enters each time (making the storing pointless).

    So, no, these people crying "insecure" do not understand what they are talking about and do not know that either (Dunning-Kruger Effect at work). This particular kind of incompetence has seen an increase with the Snowden-relevations, where people with no clue about IT security, risk evaluation or crypto do "pattern matching" with a list of "bad" things in crypto, like "password stored in plain", "SHA1" and then claim insecurity when the keywords turn up in something. They are basically always wrong, because they do not even begin to understand the specific use of the mechanism. Typically the do not even have beginner-level knowledge, like these cretins here. Otherwise they would have understood that Wi-Fi does not do a challenge response authentication with a shared secret, but a plain, one-way password submission. For these, the password does need to be available in plain or things cannot work. Instead, these idiots cry "insecure".

    The only possible other explanation I have is that these people are NSA shills that try to confuse the issue.

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    1. Re:FUD, I am a fraid by PrimaryConsult · · Score: 1

      I hate it when people say reversible encryption is "pointless". There are a few reason where you might want to let someone look at your configuration file/database/etc (maybe to ask for help), and having to sanitize/restore passwords every time is a pain in the ass. You might also open the file while someone is sitting next to you, forgetting that the password is in plaintext. Most people are honest but if the password is staring them straight in the face it becomes a tempting target.

      It's like saying because a lockpick can open your door, you shouldn't bother having a lock.

      I had this same argument over gaim/pidgin storing passwords in plaintext in its profiles.

    2. Re:FUD, I am a fraid by Anonymous Coward · · Score: 0

      or protected by an additional password the user enters each time (making the storing pointless)

      The storing would not be pointless, any more than storing passwords in a password manager (e.g., KeePassX) is pointless.

      That being said, there may well be UX issues with requiring users type in a passphrase to access the secured data.

    3. Re:FUD, I am a fraid by Anonymous Coward · · Score: 0

      This. Root access is already passworded. To store keys additionally in a wallet is redundant.

    4. Re:FUD, I am a fraid by chill · · Score: 1

      On the supplying machine, you usually do not have a choice but allow access to the plain-text password, how else would it be supplied?

      By an agent, like KNetworkManager, PGP-agent or GnuPG-agent.

      Hence, while you can store it encrypted, that encryption must either be automatically reversible (making it pointless) or protected by an additional password the user enters each time (making the storing pointless).

      No. An additional password isn't pointless. It is the purpose behind the operation of gpg-agent, KNetworkManager, Firefox's master password, LastPass and several other programs.

      Otherwise they would have understood that Wi-Fi does not do a challenge response authentication with a shared secret, but a plain, one-way password submission. For these, the password does need to be available in plain or things cannot work.

      To be pedantic, that is exactly how WPA2-Enterprise works. But almost no one uses that in a home network. You still shouldn't ignore it.

      And the password does not need to be STORED in plaintext, which is the point. Like a PGP key, it exists unencrypted only in RAM and is encrypted when stored.

      --
      Learning HOW to think is more important than learning WHAT to think.
    5. Re:FUD, I am a fraid by bluefoxlucid · · Score: 1, Funny

      Your argument is that the password should be rot13 or base64 encoded.

    6. Re:FUD, I am a fraid by Anonymous Coward · · Score: 0

      By an agent, like KNetworkManager, PGP-agent or GnuPG-agent.

      While in many cases this is good, what if you actually care about the system staying on the network with no one logged in? That is the use case being catered to by this strategy, a network connection that is in no way bound to the current user.

      I think this is a mountain out of a molehill because if you *ever* have root level access to a system with access to any given network, you really don't need the wifi password to do lot's of damage. I could see the dumpster diving use case I suppose...

    7. Re:FUD, I am a fraid by gweihir · · Score: 1

      I hate people that do not read what I wrote. Incidentally, I could not care less what you hate, especially when it has no relation to what I just wrote.

      Your rant is completely unrelated to the problem at hand, and if "the password is staring them straight in the face" they already have root access here and can do whatever they want, including things like starting WiFi automatically. So, no, encryption passwords is not always pointless, but it is almost always the wrong solution, and it very much is here. Your risk management sucks, as it completely mis-analyses the situation. But that is in line with your ego being over-inflated. My take is that you have nothing worthwhile to contribute, but feel a compulsion to give your opinion anyways.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    8. Re:FUD, I am a fraid by gweihir · · Score: 1

      Yea, typical incompetent IT security wannabe. Pathetic, but all too common.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    9. Re:FUD, I am a fraid by gweihir · · Score: 1

      It is pointless for the situation at hand. You are ignoring the work-flow here. Compare both for a typical situation.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    10. Re:FUD, I am a fraid by gweihir · · Score: 1

      Indeed. These amateur "security experts" are almost universally incapable of analyzing or even seeing the surrounding situation. What comes out is a "risk analysis" that has no connection to reality.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    11. Re:FUD, I am a fraid by amorsen · · Score: 1

      No. An additional password isn't pointless. It is the purpose behind the operation of gpg-agent, KNetworkManager, Firefox's master password, LastPass and several other programs.

      NetworkManager uses the system wallet for per-user passwords. If you tell NetworkManager to store the password around so it can connect before user log in, it is hardly surprising that it does exactly that.

      --
      Finally! A year of moderation! Ready for 2019?
    12. Re:FUD, I am a fraid by gweihir · · Score: 1

      And the password does not need to be STORED in plaintext, which is the point. Like a PGP key, it exists unencrypted only in RAM and is encrypted when stored.

      It does not need to be stored encrypted either. Not at all. Your attacker model is completely unrealistic, as you assume an attacker with root access. Against that one you have no chance anyways. Classical amateur-level risk analysis that completely misses the point.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    13. Re:FUD, I am a fraid by Anonymous Coward · · Score: 0

      Your argument is that the password should be rot13 or base64 encoded.

      both, just to fool casual attacker

    14. Re:FUD, I am a fraid by Anonymous Coward · · Score: 0

      Except that when my boss loses his laptop again, no passwords will be lost. That's why I put full disk encryption on his machine. It's easy to store passwords in a password manager that gets unlocked on login.

    15. Re:FUD, I am a fraid by Anonymous Coward · · Score: 0

      Well, for his scenario, you'd probably have meaningful encryption with the key stored, elsewhere, in the clear. So if someone had access to the system, all bets are off. But if doing a dump of some config, it might be out of sight.

      The other aspect of this scheme is it makes it straightforward for a paranoid person to protect the key in a meaningful way, compromising their ability to do some magic.

    16. Re:FUD, I am a fraid by gweihir · · Score: 1

      If you are securing commercial infrastructure, you should use VPN with individual public-key authentication anyways. A Wi-Fi password is access control, not secrecy. But I agree that full disk encryption is a very good idea anyways, for this and a number of other reasons.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    17. Re:FUD, I am a fraid by Anonymous Coward · · Score: 0

      Jesus, you sure are fast to jump on everyone else as incompetent trogs without actually offering a solution derived from your golden intellect and superior risk management.

    18. Re:FUD, I am a fraid by Anonymous Coward · · Score: 0

      That's quite an asinine idea of security.

      1. To initiate WiFi connection, the program needs *clear text* key (password,etc.)
      2. Therefore the system must be able to arrive at that key from some input data that is *on the system* *without* user interaction.

      Using obfuscation adds nothing to security of the system. So unless you want to ask the user for password at each bootup, just store it in plain text. Any other approach is insecure bullshit that only seems to convince the uninformed that something is "safe".

      If I have the program, and in this case I can have source code, I can figure out and trivially reverse *any* obfuscation done by the system. Yes, that includes using any cryptography since that crypto would be used *wrongly* and be completely insecure..

    19. Re:FUD, I am a fraid by Anonymous Coward · · Score: 0

      It does need to be encrypted. Network manager is often used on laptops. Laptops get lost or stolen often.

      Don't store sensitive data unencrypted.

      Classical amateur-level risk analysis that completely misses the point.

      ...

    20. Re:FUD, I am a fraid by chill · · Score: 1

      I assume an attacker with physical access to the drive thru a Live session or physical drive removal. I also keep drives encrypted to protect data at rest.

      Multiple layers of security are a good thing.

      My risk analysis is just that, *MY* risk analysis. I want the OPTION to not use system WLAN accounts and have to activate the wireless network after login.

      --
      Learning HOW to think is more important than learning WHAT to think.
    21. Re:FUD, I am a fraid by Anonymous Coward · · Score: 0

      This is similar to locking your door and then hanging the key on a nail next to it. It is no more secure then not having a lock, if you want security you can't store your key right next to the door.

    22. Re:FUD, I am a fraid by immortalpob · · Score: 1

      Actually there are no lockpicks in this case, we have unbreakable encryption. It is just that in order for a lock to be useful you can't leave your key in it. If you do there is, in fact, no reason to have a lock.

    23. Re:FUD, I am a fraid by immortalpob · · Score: 1

      He is suggesting a solution, use a plaintext file and restrict it to root only. You are just demanding a "better" solution which would require magic.

    24. Re:FUD, I am a fraid by DMUTPeregrine · · Score: 1

      An attacker who has broken into my house shouldn't really have me worried that they might mooch off my WLAN connection. Sure, they might do that, and they might also just steal all my valuables.

      --
      Not a sentence!
    25. Re:FUD, I am a fraid by chill · · Score: 1

      I was thinking more of a coffee shop, train or anywhere else I use (lose) my laptop.

      --
      Learning HOW to think is more important than learning WHAT to think.
    26. Re:FUD, I am a fraid by PrimaryConsult · · Score: 1

      Oh really? So you're telling me because a simple two line library could decode the password (adding negligible overhead to any program implementing it) it's not worth protecting against the very real possibility of shoulder surfing to steal passwords? Tell me, do you advocate against having obfuscated password forms for typing in your passwords as well?

      Methinks you are the incompetent who doesn't understand what the actual purpose of security is.

    27. Re:FUD, I am a fraid by PrimaryConsult · · Score: 1

      I'd argue storing a password in plain text in the config file is leaving the key in the lock. Base 64-ing the password is at least putting the key under a rock in front of the house.

    28. Re:FUD, I am a fraid by DMUTPeregrine · · Score: 2

      The problem is a disconnect in threat models.

      An attacker with physical access can defeat any obfuscation scheme that doesn't require input from the user.
      The point of having a wireless key stored in plaintext (or obfuscated) is so that the computer can connect to that network without input from the user.
      Encrypting the key requires input from the user, so storing the key is effectively pointless. Obfuscating the key doesn't actually do anything to stop anyone with root access. Whatever choice you make you will break either the security or the usability.
      Why break the security? Because the security is minor, in this case. An attacker with physical access to a computer on the site of the wireless network can already compromise the wireless key, eg by using a keylogger, installing malware on the machine to sniff the wireless key from memory as the computer initially connects, and possibly reset the access point's settings, assign a new key, and assign a new key on the client computer (s). etc. An attacker with physical access to a computer off the site of the wireless network (coffee shop, etc) just stole your computer, and is probably going to sell it. If they're determined to attack your network the same issues as above arise.

      So not storing the key requires the user to type it (or a password to decrypt a keyring) when they connect, and provides very little practical security benefit. Anyone who would derive a practical security benefit from encrypting the key would likely derive a much greater security benefit from using a wired connection. The benefits are outweighed by the costs.

      --
      Not a sentence!
  25. FUD by hurwak-feg · · Score: 1

    I would say it is FUD. If it is a company owned computer that is controlled by others, you might risk having your employer having access to your networks. Other than that the biggest risk is theft. If a computer is stolen, you should change all your passwords anyway, including your wireless network passwords. Friends and family that use it would have access to your network anyway. I'll admit to not RTFA, but it sounds like (I am speculating, I could be wrong) the author is parroting some stuff out of a security certification study guide without really considering if it is actually a problem worth writing about. It is possible the author is anti-linux, but I doubt it considering an alternative tools is suggested. If someone is really paranoid, they could always just use a live CD/thumb drive that doesn't store anything. I am leaning towards well meaning FUD.

  26. SSH Keys Also Vulnerable by Bob9113 · · Score: 4, Informative

    It is also common in most Linux distros to store SSH private keys in ~/.ssh, which -- given you need root to read the wifi passwords -- can be accessed just as easily. Access credentials have to be stored in the clear somewhere on a live machine -- in memory during connect if nowhere else. Once you root the box, you get everything.

    1. Re:SSH Keys Also Vulnerable by Anonymous Coward · · Score: 0

      You realize that SSH provides the key passphrase and ssh-agent for a reason, right?

    2. Re:SSH Keys Also Vulnerable by Anonymous Coward · · Score: 0

      ssh-keygen asks for a passphrase during key generation. If you provide one, it will encrypted your private key using 128-bit AES.

    3. Re:SSH Keys Also Vulnerable by Anonymous Coward · · Score: 0

      But SSH private keys can still require a password, so even if someone gets your id_rsa, they still have to know your password before they can use it to impersonate you.

      (Granted, if they have root on your machine, they'll probably figure out a way to get you to type it for them...)

    4. Re:SSH Keys Also Vulnerable by Anonymous Coward · · Score: 0

      ssh private keys are encryptable (which I do, then load'em up in memory--would be nice to have an encrypted memory-with-key-only-in-cpu feature, but eh.) which "wireless passwords" are not.

      Still and all, I don't really care about this. I view access to the network as pretty much a given, also because wifi has a colourful history of getting security wrong, on top of being a rather open access medium already. If you do want better security here, look into using certificates. Requires more infrastructure though.

    5. Re:SSH Keys Also Vulnerable by Anonymous Coward · · Score: 0

      ssh private keys CAN be encrypted. All you have to do is enter the pass phrase when the key is created.

      The key cannot be used except by decrypting with the pass phrase.

      To make management easier there is the "ssh agent" which will then maintain the private key - but not on disk, and is discarded when the agent exits at logout.

    6. Re:SSH Keys Also Vulnerable by Anonymous Coward · · Score: 0

      Most people do keep their private keys encrypted with a symmetric passoword... Tho... to use them ssh-agent that unlocks them is usually employed, since its more convenient... still, from cold-booted machine, even with root, they are relatively safe, if encrypted.

  27. OpenBSD does this as well by Anonymous Coward · · Score: 0

    # cat /etc/hostname.iwn0

    nwid attwifi
    wpakey P@ssW0Rd
    dhcp

    The solution is to encrypt your hard drive.

  28. Wrong. The entire discussion is FUD. by Giblet535 · · Score: 1

    Anyone who connects a GNU/Linux box via wireless network has no concern for security.

    1. Re:Wrong. The entire discussion is FUD. by bluefoxlucid · · Score: 0

      Why Linux specifically? Windows also stores your WIfi password in plaintext.

  29. No. It's shear utter brilliance! by Anonymous Coward · · Score: 0

    You see, when the hackers/crackers (not the southern white people) get the password, they'll think it's some really really really really obfuscated-genius-sick-crypto and spend years and much computer time trying to crack it.

    See?

  30. Nothing changes... by Anonymous Coward · · Score: 1

    The die hard Linux bunch will defend it to their deathbeds. If it was found that Windows was doing the same thing, they'd be lighting torches and sharpening the pitchforks. This is a serious security flaw. Not only does it expose passwords for people's home networks, but businesses and other institutions as well. I love Linux, use it on every laptop I have at home, which means there are several passwords stored on those machines. This is an issue that needs to be addressed and fixed. If disabling NetworkManager and enabling netctl accomplishes it, easy enough.

    1. Re:Nothing changes... by bluefoxlucid · · Score: 3, Informative

      Windows does the same thing. Does it automatically connect to Wifi when it boots?

      We can store them in an exotic form of plaintext, like encrypted with the encryption key in /var, so you can use the encryption key to read the plaintext but we can claim it's "stored encrypted" even though this doesn't add security.

    2. Re:Nothing changes... by Anonymous Coward · · Score: 0

      A business would use TLS auth for its wifi or it deserves what's coming to it.

    3. Re:Nothing changes... by Bert64 · · Score: 1

      Windows does pretty much do the same thing...

      They obfuscate the key, but there are plenty of tools available to easily extract them:

      http://www.nirsoft.net/utils/wireless_key.html
      gsecdump can extract wireless keys too...

      Wireless keys must be available in plain text in order to be used, there's no way around this... Windows just tries to obfuscate the data, which achieves no security benefit but serves to unnecessarily increase complexity.
      You could use WPA2 Enterprise instead, so each user has their own private key, so that then only one key becomes compromised.

      Windows actually does much worse things, it stores the passwords of system users in a plain text equivalent form.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
  31. Re:It's true -- but only root can read them though by Sarten-X · · Score: 1

    If the attacker has compromised that one system, they could just decrypt the encrypted file.

    --
    You do not have a moral or legal right to do absolutely anything you want.
  32. Reversible encryption by gmuslera · · Score: 1

    The password encryption must be reversible to be used, is not the computer that runs linux the one that must do the validation so can have the luxury of doing one-way encryption, the original password must be provided. The source code already includes how to decrypt that password, and if is salted or uses another information, all the needed information is stored there already. At most, you can do what is already being done by most if not all network managers, only giving access to it to the root user. If someone else have access to your computer with root access and the ability to see files/run programs, then would be easy to obtain it even if is encrypted, but capturing your wifi password won't be the worst that will happen in that scenario.

  33. You're not still counting on WPA2? by drinkypoo · · Score: 1

    I'm using WPA2 to discourage anyone trolling for the most easily abused access points, but if were transmitting my .secret_plans_to_rule_the_world file, I'd be using ipsec as well — to a machine which does not allow any unencrypted connections.

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  34. gnome-keyring by Anonymous Coward · · Score: 0

    It uses gnome-keyring. All passwords are saved in the keyring. And if its not open a dialog popups to open it.

    (For those who don't know, gnome-keyring encrypts everything).

    1. Re:gnome-keyring by Anonymous Coward · · Score: 0

      No. Passphrases for encrypted partitions, if saved, are stored in PLAINTEXT in a text file in the keyrings directory in $HOME.

  35. Physical access gets wifi access. Okay. by Rob+the+Bold · · Score: 2

    I suppose in general that keeping "secret" things secret seems reasonable. After all, when you login to your wifi network (the first time) the password is usually masked to hide it from shoulder surfers. This does give users the impression that the data is also stored securely.

    From a practical perspective, though, how much of a security risk is this?

    From TFA:

    So anyone who inserts a Live CD Linux distro into your laptop, can view your not-so-secret Wi-Fi password... or steal even more important data!

    Wouldn't it be even easier if someone had access to your laptop to just use it then and there to access your network without rebooting, "stealing" your important data secured by nothing more than a wifi login? They're already in your home or office -- unless they stole your laptop while you were in the restroom at Starbucks -- they could also just plug their own laptop into your router or other network port and get the same thing, couldn't they? (As if your "sensitive documents" aren't just sitting there on the laptop unencrypted anyway.) Or just hang around in network range, sniffing packets and cracking your wifi encryption at their leisure? That wouldn't even require taking the risk of borrowing your computer and raising suspicioins.

    So while storing any authentication data in plain text seems needlessly insecure and sloppy, relying on wifi passwords alone to protect sensitive data is an even worse idea to begin with.

    --
    I am not a crackpot.
  36. so i hacked into myself on the 'net by Anonymous Coward · · Score: 0

    sounds gross but it's really nonsense i just wanted to see how i 'look' from out in the kingdumb. reminding myself how unexcitingl my dealings are helps me feel more secure? free the innocent stem cells.

  37. Confirmed on a Debian 7.3 machine by shtrom · · Score: 1

    USER@DEBIAN73:/etc$ cat /etc/debian_version
    7.3
    USER@DEBIAN73:/etc$ sudo grep -R WPAKEY *
    [sudo] password for USER: :/etc$ cat /etc/debian_version
    7.3
    USER@DEBIAN73:/etc$ sudo grep -R WPAKEY *
    [sudo] password for USER:
    NetworkManager/system-connections/ESSID:psk=WPAKEY

    This is a bit embarassing...

    Now, can somebody with the WPA key of a network capture traffic to/from other stations?

  38. Wi-Fi passwords are not security features by Theatetus · · Score: 1

    They're (weak) access control features. Secure at the transport level.

    --
    All's true that is mistrusted
    1. Re:Wi-Fi passwords are not security features by KDN · · Score: 1

      WPA2 with enterprise mode and AES transport is pretty secure, assuming the NSA hasn't FUBAR'ed AES. WEP and TKIP I would definitely put out to pasture.

  39. Re:It's true -- but only root can read them though by Grishnakh · · Score: 5, Insightful

    If someone has physical access to your drive, you have much, much worse problems than someone sniffing your WiFi traffic. To do this, someone has trespassed into your house. I'm much more concerned with strangers stomping around my living room than I am about someone sniffing my WiFi traffic.

  40. Re:It's true -- but only root can read them though by Gort65 · · Score: 2

    Not quite. Root access means a compromised single host. Access to a list of WiFi passwords means compromising all the WiFi networks the machine in question has been given access to, so you'd still want that encrypted.

    Sure, but if you're root, then you can quite easily decrypt to find those passwords. This isn't to say that it shouldn't be encrypted (another hurdle, etc), but once you're root, then anything on that machine is fair game, including those WiFi passwords if you're determined enough.

  41. It's FAR worse than that! by PvtVoid · · Score: 2

    The reality is far, far worse. Even as a non-root user, if I click on the wireless connection icon on my desktop, select my network under Edit Connections, and click "Show Password", there it is, in pure plaintext!

    Oh, NOES! If my desktop lets me have access to my own network password, where will it end? It might even let me access my own files! Then what? Human sacrifice, dogs and cats living together... mass hysteria!

  42. Checked, not true. by Anonymous Coward · · Score: 0

    I'm running Ubuntu and using Network Manager. I checked the directory where the passwords are reported kept and found two things:
    1. All the files in that directory are readable only by root. This means someone needs to have root access to your system (or phsycialy access to an unencrypted drive) to read the network profiles.

    2. None of the files contained passwords for my wireless networks.

    My conclusion is the article is A) wrong on multiple points and B) ignores that fact that if your box is already rooted than wireless passwords are the least of your worries.

  43. No, it is not a problem by Anonymous Coward · · Score: 0

    And if you think it is, maybe you should read what Pidgin developers have to say about this..

    These yearly "$PROGRAM is storing my passwords in plain text! Won't somebody think of the children!" stories are very tiresome...

  44. You need the plaintext password by KDN · · Score: 1
    If you are using the WPA with PSK (Pre Shared Key), you need the plain text pre shared key to generate the PMK (Pairwise Master Key). Once you have the PMK, you really don't need the pre shared key. But if you change the access point or change the NIC on your machine you will need it to generate the PMK over again. If you are concerned, go to WPA enterprise mode with the Radius challenge response.

    Speaking of PSK security, you are using the mimimal PSK length of 20 (or was it 22?) characters to ensure security, right?

  45. So what? by Bert64 · · Score: 1

    So you store the password in plain text, so what?
    The password needs to be available in plain text form in order to be used, so even if you store it encrypted you must also store the key so that the system is able to retrieve it so at best all you do is make it slightly more difficult to extract the key.
    For other systems there are freely available tools to extract the wifi keys anyway...

    The only secure way to do it, is to encrypt the wifi key using the user's login password... MacOS can do this, but then your system won't connect to wireless until after you've logged in so this is a very uncommon configuration to use.

    --
    http://spamdecoy.net - free throwaway anonymous email - avoid spam!
  46. Stored Credentials are bad by mlwmohawk · · Score: 1

    As bad as it sounds, NetworkManager is probably doing almost the right thing. There is no way to safely encrypt a password so that it may be used for access to another system without requiring another password.The only thing that you can do is use the permission structure of the OS to protect the password. (As they have done)

    Now, they could have "scrambled" or encrypted the password with a known key. That will prevent the slim chance that a "casual" intruder with root access will get your password, however, any moderately intent intruder who can gain root access will, by design, be able to reverse the password mutation. You can't MD5 or SHA the passwords because you *need* them to gain access to the external system.

    I had this fight at a company a while back about accessing Windows servers and storing their credentials, I ended up base64 the creds into a database row or an encrypted database. You needed a password to open the database, so they were safe, but management didn't want to be able to "see" the password once they did. It wasn't real security, but it shut them up.

    NetworkManager needs to do something similarly stupid so that stupid people don't say stupid things about a stupid problem. If you can't trust your computer to store your password, then don't trust your computer to store your password. duh!

  47. NetworkMangler by DaveAtFraud · · Score: 1

    I removed NetworkMangler from all my systems except my laptop. It does come in handy when connecting to WiFi hotspots when I'm not at home. Keeping it on a server with a static network connection is just inviting trouble.

    Cheers,
    Dave

    --
    They that can give up essential liberty to obtain a little temporary safety deserve neither safety nor liberty.
    Ben
  48. Adequate monitoring by Anonymous Coward · · Score: 0

    One does not require passwords, encrypted disks, or other pseudo-unbreakable crypto keys.

    As long as one has enough adequate monitoring in place!!!

    [wdw]

  49. Only readable by root on my Debian Stable pc by mrflash818 · · Score: 3, Informative

    Only readable by root on my Debian Stable workstation:

    robert@debian:/etc/NetworkManager/system-connections$ ls -latr
    total 16
    drwxr-xr-x 5 root root 4096 May 20 2013 ..
    -rw------- 1 root root 329 May 21 2013 geophile.net
    -rw------- 1 root root 399 Jul 4 13:22 Auto geophile.net
    drwxr-xr-x 2 root root 4096 Jul 4 13:22 .
    robert@debian:/etc/NetworkManager/system-connections$ cat geophile.net
    cat: geophile.net: Permission denied
    robert@debian:/etc/NetworkManager/system-connections$

    --
    Uh, Linux geek since 1999.
  50. Gnome shit by Anonymous Coward · · Score: 0

    > Simple. Stop using Gnome shit.

    Does that include SystemD?

    (* hides behind a rock before the systemd thugs come to beat him up *)

    1. Re:Gnome shit by kthreadd · · Score: 1

      SystemD has nothing to do with Gnome, apart from that some Gnome components use it.

    2. Re:Gnome shit by Crimey+McBiggles · · Score: 1

      Well, is it not the same people that were behind the changes in Gnome 3 so everything over to tablet mode, udev, and advocating the use of binary configuration files?

      --
      Crimey
    3. Re:Gnome shit by fnj · · Score: 0

      Don't be disingenuous. The Gnome developers have eagerly riddled Gnome3 with dependencies on Systemd. It is a prerequisite. Why do you think Gmome3 is dead to anyone with any common sense at all?

  51. What? by ArchieBunker · · Score: 1

    None of you know what you are talking about.

    --
    Only the State obtains its revenue by coercion. - Murray Rothbard
    1. Re:What? by game+kid · · Score: 4, Informative

      FiOS user here, and indeed they do not know.

      When they brought and installed the router, they pointed out the password label, and I asked if the password could be changed, and they said yes. Sure enough, I changed it when they left, and changed the WEP to WPA2 as well via the router's "web" interface. The result is probably not secure (NSA aside), but GP and GGP are still worthy of Rep. Joe Wilson's attention.

      --
      You can hold down the "B" button for continuous firing.
  52. Re:That's why Liux isn't 1st choice for security.. by bluefoxlucid · · Score: 4, Informative

    If you want the system to use a wifi connection as its primary--to boot and enable wifi, or to allow all users to enable wifi--the wifi connection must store the password in plaintext.

    Think like this: You get a wire, plug in an RJ-45, and tell the system to enable that on boot. When you boot, you're online.

    Now, if you use wifi, to do this, you have two options. The first is for a user to log in, connect to wifi, and store the password encrypted in keyring. The next user logs in (after the first logs off, or after a reboot) and, not knowing the password, can't use the network on that machine. The second option is to store that password in plaintext, accessible by a system level service (or, alternately, by all users). At boot, the system service enables the network connection; any user with access rights to enable or disable the network connection can send a message to the service to do so, and the service will read the password from disk.

    In the second scenario, if you create an encryption key and encrypt the password, you need to store the key in plaintext. An attacker would get the key and use it to decrypt the password in the same way as he'd obtain the plaintext password, so technically you are still storing plaintext--just in a different format involving multiple files. It's not encrypted until it's separated from the key. An encrypted e-mail is encrypted because only the sender and recipient have the key--the sender usually generates a session key and encrypts that with a public key, so usually no longer has the key after sending it. A third party would have an encrypted blob and no key. If you encrypted the e-mail and stored a private key to decrypt it on the same system, protected by a password stored in a text file on the same system, then administrative access gives you full access to everything--essentially, the message is stored in plaintext. That's a stretch; but if your system fundamentally functions such that it must store some data, and stores that data and an encryption key "to encrypt it", you're storing plaintext--the "encrypted" data is never transported, and the key is just theater.

    So this isn't an example of poor security; it's an example of "the only way to accomplish this particular goal".

  53. Ssh keys can be encrypted. You have a choice by Anonymous Coward · · Score: 1

    I think the article is complaining that you do not have a choice. I think the counter-argument (that you need root so they own you anyway) is not legitimate. In this day and age, no passwords should be stored in plaintext.

  54. netctl doesn't encrypt it either by SteveAyre · · Score: 2

    That 'encrypted' key is no such thing. The passphrase you enter is used as input to a key-derivation algorithm. The value stored by netctl is the output of that algorithm. The interesting thing is that you can use that passphrase *as* the password too. So netctl is no more secure than NetworkManager storing it in a file on disk. The only thing it protects is someone knowing that the passphrase is BatteryHorseStaple - it doesn't protect your network at all.

    The configuration file's permissions are sufficient to hide it from other users but not from physical access, as TFA notes you can encrypt your disk to protect that.

    Or use a keyring, which NetworkManager does support. That will store it truly encrypted. The configuration files are just a simple fallback mechanism for when that isn't available.

  55. Nope. I'm OK. by PPH · · Score: 4, Funny

    No passwords stored as plaintext on my system's disk. Only on the yellow post-it stuck to the display.

    --
    Have gnu, will travel.
  56. Er by Anonymous Coward · · Score: 0

    Sorry bonehead - if you don't expect admins to be able to access your data, your approach is fundamentally flawed.

    1. Re:Er by bonehead · · Score: 2

      As an admin, there are plenty of ways I can, if I choose, keep my data from being viewable by my fellow admins.

      Yes, it takes a bit of extra work, but it's entirely doable.....

  57. Re:It's true -- but only root can read them though by Boltronics · · Score: 1

    Then as root just install a key logger?

    Either the WiFi password is decrypted with a user password (eg. local machine account log-in password), or the WiFi password is supplied directly by the user. No problem.

    --
    It's GNU/Linux dammit!
  58. How does windows do this then... by Anonymous Coward · · Score: 0

    Has anyone noted that MS has done anything more meaningful than obfuscation in this regard? MS does offer a nice 'securestring' feature, but if they want to have automatic joining to a wireless network possible on startup without login, it's highly likely that they do something equivalent to this (plaintext or just pretending it's protected).

    MS has their share of sins (NTLM hashes are pathetic in the SAM db, unattend files can be found all over the interent with posters thinking 'hidden' provides some meaningful protection when it's really just base64 encoded, etc.) In this case, I'd be hard pressed to identify a *meaningfully* more secure scheme unless requiring local console login to get net access.

    1. Re:How does windows do this then... by KDN · · Score: 1

      I remember someone saying that MS does not store the PSK, but stores the PMK. Assuming neither NIC gets changed, that should be enough. Note: I have not had an opportunity to check this.

  59. Re:It's true -- but only root can read them though by hairyfeet · · Score: 0

    Except with it stored unecrypted they don't NEED physical access, they merely need you to follow a few simple instructions and download their "free codec" or similar trick.

    Linux fanboys can scream bloody murder and waste modpoints but that won't change reality and reality is its almost never the OS that is the weakest link, its PEBKAC. Hell look at Windows from Vista on up, you have the user running as a user and requiring elevation for anything more than trivial changes (sound familiar?) and it goes even one better than Linux by having the browser by default run with the lowest possible privileges, yet systems STILL get pwned, why? PEBKAC.

    Linux users, like the Mac users before them got away with not having to worry about such things thanks to security by obscurity, but just as MacDefender signaled the end of that perk in OSX so too has the million Android infections signaled the end of SBO for Linux. I've seen Linux machines pwned in a week (look up the "KDE Look" bug for just one example) and I've seen Win2K boxes go from RTM to EOL without a single bug because at the end of the day its not the OS, although storing passwords in plain text is just stupid, but ultimately whether a system is secure or not comes down to whether the user has common sense and follows best practices.

    Remember folks no matter how hard you work to foolproof a system the world will always come up with a bigger fool.

    --
    ACs don't waste your time replying, your posts are never seen by me.
  60. only root can read it in Wicd by FudRucker · · Score: 1
    --
    Politics is Treachery, Religion is Brainwashing
  61. Encryption Encryption Encryption by ajyand · · Score: 1

    The article points to a deeper problem that exists with all unencrypted disks. What if the hardware gets into wrong hands? With encrypted disks you're never in urgency of changing all the passwords of bank cards, devices, online accounts stored on your system, in case the hardware is compromised. Encryption also protects your sensitive data to a great degree. I recommend all partitions to be made encrypted during the initial setup of the system.

  62. Re:It's true -- but only root can read them though by DarkOx · · Score: 1

    I does even if you do encrypt them. Think!

    If you are going to store the passwords in an encrypted format you need to have the key somewhere the user who owns the wifi passwords can read to decrypt them. In which case someone who has root can read the key and use it to decrypt the passwords.

    You might make the key something like the users password itself, but that has implications too like what happens when the user changes their password. What happens if an alternative password change protocol has to be used because the user forgot their password and the sysadmin must do it? Does the user lose all the stored wireless passwords?

    Generally speaking there isn't much in the way of something you know based schemes that will protect user data from the system administrator and provide single sign on. If you want to have some second password or token that acts as a cipher key for a password wallet that is one thing but there is a usability cost there, the use now has two passwords and if the wallet password is lost the data is probably lost.

    Otherwise its a situation of root can read everyones files, which we knew, or some obfuscation that probably is more a false sense of security than anything. So pretty much the whole complaint is FUD.

    --
    Repeal the 17th Amendment TODAY! Also Please Read http://www.gnu.org/philosophy/right-to-read.html
  63. Passwords and automation by Sits · · Score: 4, Interesting

    The issue of passwords being stored unencrypted on media has come up before with Android email passwords, Pidgin passwords and so on. If your attacker can bypass filesystem permissions you are already in a world of pain. One way to mitigate this would be to use a password protected keychain/keyring but this only works if you don't automatically unlock it...

    Say that I want my Windows machine to automatically log in as a user when I turn it on. Because of the way Windows works it needs to be able to unlock my account (almost certainly to be able to unlock credential stores that would be otherwise locked), which means that when I enable Windows auto-login my password is going to be saved into the registry in plain text.

    Perhaps Mac OS X can magically do better? Well not really - OS X XOR's your password with a fixed key and saves into /etc/kcpassword. For an attacker this is not a big hurdle over what Windows does. Unless your password is available OS X would be unable to unlock your keychain and all sorts of things would have to start prompting you if they wished to work.

    If the keys to reverse the encryption are stored alongside the encrypted object you have not gained any more security but are just obfuscating your data - an attacker can simply steal both at the same time, run the decryption algorithm and use the object. To be secure you need to have something your attacker doesn't have access to which is at odds with unattended operation. If you want to have something happen completely unattended (i.e. from power on) fashion you are going to need ALL the information available in a directly usable form at some point and it's going to have to be "unprotected". While saving things like hashes are bit better (as they don't reveal the underlying password which may have been reused elsewhere) someone can still steal the hash and use it as is for accessing that service and in many cases a hash is no good as challenge response is being used to prevent the whole secret from having to be passed.

    I do have one question though - what do OS X and Windows when you save things like WiFi/802.11x passwords that are accessible to every user? To what extent do they try and protect their system "keychains" and wouldn't such protection be obfuscation?

    1. Re:Passwords and automation by Todd+Knarr · · Score: 1

      I do have one question though - what do OS X and Windows when you save things like WiFi/802.11x passwords that are accessible to every user? To what extent do they try and protect their system "keychains" and wouldn't such protection be obfuscation?

      Even if it weren't just obfuscation, it wouldn't matter. If the attacker has access to your machine and your machine automatically authenticates to the network without human intervention, the attacker doesn't need to decrypt your password. He can just access the network as you, since the system's already automatically authenticated and made the network available. Same as if you have shares automatically mounted: anyone who's compromised your machine doesn't need to know the password for them, the system's already taken care of that for them.

  64. Re:It's true -- but only root can read them though by Grishnakh · · Score: 1

    Well we're talking about Linux here, not Windows, so Windows security problems aren't really relevant (though another post here says that Windows does essentially the same thing, storing WiFi passwords unencrypted in the registry).

    But still, if someone on the internet hacks your system and gets your WiFi password, what good does that do them? They have to physically travel to your home to do anything with it. And even there, what is that going to gain them that they don't already have, since they've apparently hacked into your system?

  65. The password can't be encrypted by Todd+Knarr · · Score: 3, Informative

    The problem is that the system needs to be able to use the password to connect to the network, and it needs to do so without human intervention (because there may not be a human at the keyboard to enter a decryption password). So the password can't be stored encrypted in any meaningful way. If it is encrypted then the key or password to decrypt it must be stored in the clear so the system can use it, which is no different from storing the network password in the clear in the first place (any intruder that could get to the first could get to the second too). Better that the system not fool you into thinking that the password's stored more securely than it is.

    The only way to change this is to change the system so that it doesn't connect to the network until after the user's logged in. That though would hose things that run without user intervention, since there's no guarantee that the user would've logged in between the time the system booted and the time the job ran (think automatic reboots, or reboots due to power failure). And since Unix doesn't have the concept of "the" single sole user, there's no guarantee that the user logging in is the one that knows the decryption password. And we won't even discuss systems where directories like /home needed for login are network shares and require the network to be available.

  66. network priority? by Mirar · · Score: 1

    And here I thought that the main problem with NetworkManager is that it can't pick networks on priority, nor do roaming.

    My phone also stores the wifi passwords (if it didn't also mail them to google). If someone gets root access on my machine, I'll just change my wifi passwords. I don't really see the problem - if someone gets root access on my *other* machines, they are already connected to my LAN, which doesn't require a password.

  67. True, BUT you can change it! by Anonymous Coward · · Score: 0

    Besides default password, is unique, and a bit more complicated than the default, non-unique password found on stand-alone routers.

    If you reset the Verizon router It defaults back to the printed password .

    I'm guessing you think you are too smart to read the instructions.

  68. avoid NM by NikeHerc · · Score: 1

    I can't comment on whether NetworkManager stores Wi-Fi passwords in plain text, but I do have some very painful experience with NM in RHEL 6 and I strongly, strongly encourage everyone to avoid using NM. It's buggy and works very, very poorly.

    --
    Circle the wagons and fire inward. Entropy increases without bounds.
    1. Re:avoid NM by Anonymous Coward · · Score: 0

      Welcome to LINUX NT !!!!!

  69. Re:It's true -- but only root can read them though by Anonymous Coward · · Score: 0

    > what happens when the user changes their password.

    In systems like that it goes like this: user password is passed through key derivation function to get a key that is used to decrypt the actual, more secure key which is used for actual encryption. To change the password, you first decrypt the actual key with old pass and then reencrypt with new pass. There might also be separate procedure to replace the secure key.

    > What happens if an alternative password change protocol has to be used because the user forgot their password and the sysadmin must do it? Does the user lose all the stored wireless passwords?

    Yes, with this setup, you forget your password - you're SoL. Only way around is a backup of the decryption key in a separate place, protected with different pass you might remember, but it's more of a plan in case of key getting corrupted, not in case of user failure.

    That's more or less the protocol used by, say, Windows EFS and TrueCrypt. iCloud secure backups seem to use something like that too, but I've no firsthand experience of that.

  70. Wut? by Anonymous Coward · · Score: 0

    Since when did any hacker worth his salt need to know your WiFi password in advance of hacking your WiFi ?

    Once you do a drive by demo using an Android smartphone in Access Point mode hooked up to a laptop running WireShark nobody puts a WiFi access point on their LAN anymore anyway...

    Besides that if I have physical access to your machine and you haven't encrypted your private data it's game over....

    Had a client once proclaim their servers were locked down tighter than a duck's arse and were unhackable, then I did my five minute reboot and boot into Knoppix routine to show them just how useless all that two factor auth was when I had physical access to their servers and they hadn't bothered to encrypt their data.

    1. Re:Wut? by Anonymous Coward · · Score: 0

      nobody puts a WiFi access point on their LAN anymore anyway...

      Errr, every single home router with WiFi in existence?

      Also pretty much every SOHO office.

  71. Re:PoetterKits by Gary+van+der+Merwe · · Score: 3, Informative

    Lennart Poettering has had nothing to do with NetworkManager: http://www.ohloh.net/p/network-manager/contributors

  72. Re:It's true -- but only root can read them though by Crimey+McBiggles · · Score: 1

    We're talking about operating systems and how they handle security, so I don't think the Windows example is completely out-of-place.

    What if your Wifi password is the same password you use everywhere? I know that's a dumb move, but you'd be surprised how many people suck at using different passwords for each login. Security is like an onion, it's comprised of layers. If you take away one of those layers, you increase the likelihood of an attack.

    --
    Crimey
  73. Re:That's why Liux isn't 1st choice for security.. by Qzukk · · Score: 1

    If you want the system to use a wifi connection as its primary--to boot and enable wifi, or to allow all users to enable wifi--the wifi connection must store the password in plaintext.

    Not exactly. wpa_supplicant and most tools that use it store an intermediate hash of the password, since the password is hashed as a step in the process of logging into WPAx-PSK (which everyone is using WPA by now, right? Right?). This isn't perfect, since the hash is still secret and you can just copy the hash to another computer to log in with wpa_supplicant, but good luck figuring out what the plaintext password used to be in order to punch it into some gooey dialog box. Some WPA-EAP variants (generally using CHAP compatible handshakes) can do the same by storing an NT hash.

    See also http://unix.stackexchange.com/questions/74500/wpa-supplicant-store-password-as-hash-wpa-eap-with-phase2-auth-pap

    --
    If I have been able to see further than others, it is because I bought a pair of binoculars.
  74. Re:That's why Liux isn't 1st choice for security.. by Anonymous Coward · · Score: 0

    So this "RJ-45 wire".... is it better than connecting the access point to the antenna using a wire completely made out of tinfoil?

  75. NetworkManager - portables by whitroth · · Score: 1

    That's the *only* vague use for it. If you're wired, there's absolutely no need for it. On CentOS/RHEL/Scientific Linux, service network start will do perfectly well.

                        mark

  76. Re:It's true -- but only root can read them though by Anonymous Coward · · Score: 1

    Except with it stored unecrypted they don't NEED physical access, they merely need you to follow a few simple instructions [geekzone.co.nz] and download their "free codec" or similar trick.

    Ditto if you store it encrypted so what's the point?

  77. Pure FUD. by Anonymous Coward · · Score: 1

    Oh dears.... if my machine is compromised it can spill my SSID and the password to get there and then the big bad man outside my door can surf child prons and communicate with Al Qaeda and access my completely unsecured internal network 'cause I don't know how to turn my public sharing off on my Windoze machines and...............

    If someone has compromised my system and gotten to my WiFi password I've got much deeper shit going on with my system to be worried about.

    FUD, plain and simple.

  78. Re:It's true -- but only root can read them though by Culture20 · · Score: 1

    Depends on the system. Maybe the user is supposed to have root or physical access to system X, but not access to wifi access point Y from system Z.

  79. Re: It's true -- but only root can read them thoug by Anonymous Coward · · Score: 1

    The problem with that logic is that the key can be obtained using the exact same trick (fool the user to run your application) since a shared key can only be obfuscated and not truly encrypted.

  80. OPEN SOURCE IS MOAR SECURE!!!!1 by Anonymous Coward · · Score: 0

    hope u macfags have fun with ur overpriced shiny encrypted passwords!!!1

  81. But by Anonymous Coward · · Score: 0

    you still need it decrypted in order to use it, which requires that any secret information required to decrypt it is then at risk. This is turtles all the way down.

  82. Re:That's why Liux isn't 1st choice for security.. by Anonymous Coward · · Score: 0

    You get a wire, plug in an RJ-45

    I'm pretty sure you mean 8P8C.

  83. Re:That's why Liux isn't 1st choice for security.. by bluefoxlucid · · Score: 0

    True, but as you say: the "password" is a generator seed, and the real access key is what's stored in plaintext. Also: this intermediate hash needs to be repeatable, so it can't really be salted (I can come up with a few over-engineered ways, like the AP sending back the salt in the handshake and you store the salt), so rainbow tables.... In any case, the actual authentication token is plaintext.

  84. Re:That's why Liux isn't 1st choice for security.. by Anonymous Coward · · Score: 0

    > wpa_supplicant and most tools that use it store an intermediate hash of the password
    > See also http://unix.stackexchange.com/questions/74500/wpa-supplicant-store-password-as-hash-wpa-eap-with-phase2-auth-pap [stackexchange.com]
    >> Is there a way to store my password in /etc/wpa_supplicant/wpa_supplicant.conf as some hash instead of plaintext?
    >> 1 Answer: Unfortunately I have to answer the question myself now. "Unfortunately" because the answer is "No, it is not possible".

    Wat.

  85. Re:That's why Liux isn't 1st choice for security.. by Anonymous Coward · · Score: 0

    The system level service can store multiple copies of the wifi password, separately encrypted with the wallet key/login password/whatever of each user authorized to use the password.

  86. You're already on my network by Anonymous Coward · · Score: 0

    If you can read the contents of files in my /etc, then I think you're already on my network. This is like worrying about a jigaw puzzle, where, one you solve it, it reveals the secret solution: "put the pieces where they fit."

  87. TPM/HSM by Anonymous Coward · · Score: 0

    I wanted to point out that here is a legitimate use case for TPM/HSM. Everyone was so frightened of the threat of DRM abuse that was driving TPM, that we all forgot that we do actually want some of those features.

  88. Fedora 20 by hackus · · Score: 1

    # cd /etc/sysconfig/network-scripts
    # ls keys-*
    keys-HACKUS
    # cat keys-HACKUS
    WPA_PSK='HACKUSISCOOL'

    http://www.youtube.com/watch?v=6nSKkwzwdW4 :-)

    -Hackus

    --
    Got Geometrodynamics? Awe, too hard to figure out? Too bad.
    1. Re:Fedora 20 by GioMac · · Score: 1

      Beh, on my Fedora 20 box it's encrypted :)

      --
      "It feels like I'm at the Zoo when reading this thread - I'm frightened, but it's interesting" (c)
  89. It truly leaves one a bit red in the face. by Anonymous Coward · · Score: 0

    Now, can somebody tell me why this person used sudo?

    Because the security hole exists between the chair and the keyboard, not in the operating system.

  90. I was the AC saying the PEBKAC by Kremmy · · Score: 1

    I'm replying with my account because the slashdot beta doesn't seem to let me link to a post directly, so I can't just remember where I laid replies as an Anonymous Coward.

  91. Why would any self-respecting POSIX geek use NM? by mmell · · Score: 1
    Okay, so you have to hack up the rc sequence just a tad to start messagebus and wifi manually at the end of the sequence (under CentOS, at least, in rc.local) and you have to configure wpa_supplicant. What's the big? DHCP even works. Yay, kiddies!

    Oh you wanted your VPN? Not going into that (too many flavors), but if NetworkManager can do it, so can you with a little research. BONUS: Instead of outright connecting to your workplace, if you manage your VPN manually you can decide what traffic gets routed through your employer's network (think B2B VPN configuration, check with your neighborhood SysAdmin to be sure you're not violating network security policies). Finally - a way to keep wrok and pron separate!

  92. This full disk encryption thing is a red herring by Kremmy · · Score: 1

    Full disk encryption does one thing: adds another password layer.

    The whole idea of it being a solution to the problem is bullshit.

  93. Re:It's true -- but only root can read them though by hairyfeet · · Score: 1

    Actually in some moist delicious irony Windows does NOT store the WiFi unencrypted, the last one that did was WinXP which was depreciated and is all but abandoned by MSFT, the rest? Store it in an encrypted XML file which the system and NOT the user has the keys for so the only way for them to get it would be to somehow corrupt the WiFi password file AND disconnect the session so the user would be forced to re-input the password while they were monitoring.

    And it is very MUCH relevant as I was attempting to point out that a good 9 times out of 10 the weakest link is NOT the operating system, its the user. Apparently you didn't follow the narrative for whatever reason, so I will elaborate. See this how to write a Linux virus in 5 easy steps page? It works the exact same way that pretty much every current bit of malware on Windows, from the "free porn codec" to the security tool and FBI porn bug variants work and that is by fooling the user in order to get them help the malware writer past the defenses.

    Go look at the top 10, hell the top 50 malware infections and guess what? They ALL work the same way, get the user to help lower the defenses. All TFA shows is that once a malware writer gets a Linux user to lower the defenses the system will be that much trivial to pwn, that's all. But at the end of the day the vaunted "Linux security" is worth a bucket of piss against the top 20 malware writers because they all know where the weakest link in the security chain, as those million Android infections show Linux security PEBKAC.

    --
    ACs don't waste your time replying, your posts are never seen by me.
  94. re: stolen hardware by Kremmy · · Score: 1

    When it gets to the point of talking about stolen hardware there is one single thing that people seem to forget: the hardware is probably worth a lot more to the thief than your data. They're more likely to wipe it and resell it unless they were there for your identity to begin with, and for that there are plenty of more reasonable angles of attack.

  95. Re:It's true -- but only root can read them though by Grishnakh · · Score: 1

    the last one that did was WinXP which was depreciated

    Sorry, you can't depreciate WinXP on your tax forms.

    As for your article, it's mostly right, but the problem with malware on Linux (not Android) is that there's too much diversity. One of the comments after that article said it best:

    The security of Linux is always mentioned as a good reason to switch. And in fact, I still agree with that argument. I believe that Linux itself is definitely much more secure (note how these vulnerabilities are in Gnome and KDE, not in Linux itself). There is noticably less malware out for Linux. There are several reasons for that:

      * Linux as the core OS is more secure.
      * There is much more diversity in the potentially more vulnerable desktop environments.
      * Linux has a smaller market share.

    The second point is often overlooked: Whatever works on one version of Linux doesn't work on the other. Linux has a small market share, but those who run Gnome and KDE have an even smaller percentage of that, and so on. And servers, which don't run a desktop component, are very secure indeed.

    Unlike other platforms, with Linux, users could be running several different things. This is more true today than in 2009, when this article was written. Back then, there were only KDE and Gnome2, with others having very little usage. Now, there's KDE, Gnome3, Unity, MATE, Cinnamon, XFCE, and several others (most of this caused by the Unity and Gnome3 dual debacles, forcing people to flee to or create new alternatives). On top of that, there's different distros. So something that might work on one may not work on another. The article's author even mentioned Thunar (the XFCE file manager), as it flags desktop launchers as potential malware; there's nothing stopping other file managers from doing the same thing, and who knows, maybe some do by now.

    Android is a little different since there's only one Android (though it does get some different "skins" from the handset makers, like TouchWiz and HTC Sense) (though it does have a few different versions, not different from Windows with its XP, Vista, 7, and 8). It also has a huge marketshare in mobile phones, unlike desktop Linux which has a rather small marketshare (as best as anyone can tell, since there's no reliable way to count Linux users since it's usually installed after-the-fact, unlike Windows/MacOS). It really isn't worth it for a malware writer to target Linux and hope they get one of the less-savvy users (grandma whose grandson set up her computer with Ubuntu because he was sick of getting called over to fix her Windows computer so often) when they can target the Big Two instead.

  96. WTF /. This is normal by GioMac · · Score: 1

    1. NetworkManager can do both
    2. Passwords are _always_ stored with reversible encryption algorithm
    3. Solution: KDE uses kwallet and f*cks my brain every time i want to connect to my wifi

    --
    "It feels like I'm at the Zoo when reading this thread - I'm frightened, but it's interesting" (c)
  97. This is a real problem by prefec2 · · Score: 1

    NetworkManager and its frontends for Gnome, KDE and other desktops should be improved in a way that the data is stored in database which should be encrypted and only be accessible through a local service for those users who own the keys.

  98. Re: by Darinbob · · Score: 1

    Basically, you first make sure your wi-fi password is not shared with any of your other passwords, and second you make sure you don't allow any fool on your wi-fi access to anything without additional credentials. So then the worst that happens is that someone gets free internet off of you until you tighten up your linux distro security (they fact that they are reading plain text files on your private computer is cause for enough concern already).

  99. Re: by Darinbob · · Score: 1

    Yup, I had to figure out wi-fi password on my mother's computer by browsing the registry (get the big long ugly password instead of the short one, but it worked).

    On the other hand, I don't want my computer doing anything when I'm not on it. Which is why I shut it off every night. At work I shut off wi-fi completely on the laptop, it's pointless and slower than ethernet.

  100. Re: by Darinbob · · Score: 1

    But you crack the password manager once and you've got access to everything. I don't trust the Mac's keychain so I keep passwords either in my head or the vital passwords on an external thumb drive I keep with me. The keychain would only be for non vital stuff, like forum passwords.

  101. Can't reproduce by Erikderzweite · · Score: 1

    Opensuse 13.1, did 'grep [first four letters of my Wi-Fi password] /etc/ -R'. No results. FUD?

  102. Re:That's why Liux isn't 1st choice for security.. by Qzukk · · Score: 1

    Wat

    Because the answer is "No, it is not possible" for WPA-EAP-PAP, specifically. Read the rest of the question and answer. PAP falls under "some other WPA-EAP variants" in my post.

    --
    If I have been able to see further than others, it is because I bought a pair of binoculars.
  103. Usually, no by l2718 · · Score: 2

    What is your threat model?

    • -- If your main concern is someone remotely accessing your machine while it is connected to the internet, then full-disk encryption is irrelevant. Programs running on your computer must be able to read the disk. Specifically regarding those WiFi passwords the article is trying to scare you with, they are stored in a file which is only readable by the root (=administrator) user. If the "evil" program can read the file, it has already achieved full privileges on your machine, and it reading WiFi passwords is the least of your concerns.
    • -- If, on the other hand, you would like protection against people who physically hold your machine (border guards when leaving/entering countries, or your business competitor who has stolen your machine) then you absolutely need full-disk encryption. Having restrictions on which programs can read a file is no protection against someone who can extract the harddrive from your machine and plug it into theirs (or simply boot your machine from a live-CD), gaining automatic access to every bit of information.

    In short, in order to decide what security you need, you must first formulate your threat model. For a funny take on this see XKCD.

  104. Windows and OS X system wifi passwords by Sits · · Score: 1

    To answer my own question here's what OS X and Windows do with system wide wifi passwords:

    OS X stores the wifi password in the (encrypted) System keychain. The System keychain (System.keychain) is stored in a known location on disk and the material to decrypt it (SystemKey) is also stored in a known location on disk. The permissions on SystemKey file are set to be readable by only root.

    What Windows does varies depending on version. For XP the wifi password is converted into a key and this key is stored directly in the registry unencrypted. For Vista and later the wifi password is encrypted (not turned into a key) with the System's Master Key and saved into XML file inside a known path on disk. To reverse this process offline, you need the particular decrypted Master Key used to encrypt the wifi password. Due to the way that Window's DPAPI works there may be many multiple Master Key's, one of which was the one actually used to encrypt the wifi password. All System Master Key's live under a well known path on disk but are encrypted. To decrypt a System Master Key, data from the SYSTEM and SECURITY registry hives has to be used. Permissions on the aforementioned registry hives and Master Keys is tight so even a "regular" Administrator cannot directly access the underlying files while the system is running and some of the files are marked as hidden (but this is by the by for an offline attack).

  105. If someone is shoulder surfing by Anonymous Coward · · Score: 0

    they can see what letter you typed in, so it's still insecure.

    PS the overhead comes when it needs debugging. If finding that you've been attacked is obscured, then you're less secure.

  106. The post-XP encrypt is easily hacked by Anonymous Coward · · Score: 0

    It's "encrypted" in a method that is trivial to decrypt. Decrypting it by brute force would take several minutes.

    Seriously, how the hell do you think it would work?

    If your wireless connection connects only with the user's password as they log in, then you need to have every account set up the wireless connection.

    If the OS uses a password to "encrypt" and when booting uses the password to decrypt WiFi access on boot, then boot has available IN PLAIN TEXT the password required.

    If the OS uses a key to encrypt it, then it cannot be a passworded key and therefore access to the system to read the wifi password includes access to the passwordless key to decrypt it, and you have still got plaintext access to the wifi password.

  107. /boot needs the decrypt by Anonymous Coward · · Score: 0

    Unless your boot up is to the GRUB system and no further, then your /boot partition needs to have in plaintext the decrypt key for /usr, /etc, /var and so on to boot the OS on /usr.

    Unless your boot is "Please enter password to boot up computer" before it can boot the OS.

    1. Re:/boot needs the decrypt by buchanmilne · · Score: 1

      Unless your boot is "Please enter password to boot up computer" before it can boot the OS.

      Of course it is. Any other FDE is the sprinkling of magic encryption dust kind of FDE. Both initscripts (on RH-style systems) and systemd support this, and have for years.

    2. Re:/boot needs the decrypt by buchanmilne · · Score: 1

      Oh, and that still doesn't answer why laptops are trickier than desktops in this regard.

  108. Not a real problem today. by niftymitch · · Score: 1

    Not a real problem.
    By default there is no read permission except
    by root.

    Not a real problem...
    A stranger must own your machine to grab the phrase.

    Not a real problem.
    Knowing the key to a WiFi link that travels less than
    100 feet in most cases has no value unless your snooping
    device is also within 100 feet.

    Not a real problem.
    Data coming off the WiFi router is not encrypted on links
    that can be snooped on half a continent away.

    Not a real problem.
    If you care, establish a VPN link between you
    and some place you trust.

    Not a real problem.
    If the key was encrypted ... In a family of six the pass phrase needs to
    be shares with at least six. Add the babysitter and key management in
    a home gets to be so much trouble that silly user tricks will make it
    worse.

    --
    Truth is stranger than fiction, but it is because Fiction is obliged to stick to possibilities; Truth isn't. Mark Twain.
  109. Stores plaintext keyring to encrypted partitions! by Anonymous Coward · · Score: 0

    Gnome stores passphrases to encrypted partitions _IN_PLAIN_TEXT in the gnome keyrings directory in the user's home, if you let it. Tails even does this. That's fucked. Gnome once again proves it has absolutely no idea about security. NEVER check that remember password box! NEVER store passphrases in plain text, anywhere or anyhow.

  110. network mangler can DIAF by X0563511 · · Score: 1

    NM is a real pain in the ass.

    --
    For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
  111. TO: mveloso by Anonymous Coward · · Score: 0

    Good example, wrong conclusions, using weak encryption like WEP is like using a bent nail in place of a lock for your basement - sure, someone has to intentionally pull it away to open the door but as police will explain unless the door was properly locked, it's treated as unlocked door i.e. owner neglect which at least here is enough for police to send you away instead of filing a case.

  112. WI PWDS in the clear. by lsatenstein · · Score: 1

    My first opinion is that for the majority of users, our laptops or desktops are personal systems in a non hostile internal environment. If we encrypt the network passwords, a decision would be to decide if a specific group (user) is the owner, and if all the other users are member of that group.
    That way, I could, if encryption became the defacto standard, allow all my enrolled users network access.

    OK, what about hacker programs which somehow are now behind the scenes with privileges. All they need do is join the appropriate group, which would entitle them to network access. (dont want to use a group, use a privileges list via selinux or other means.

    As this security has little to do with the router security, I deep the network passwords a FUD argument.

    --
    Leslie Satenstein Montreal Quebec Canada
  113. bah! by Anonymous Coward · · Score: 0

    I don't care because most remote attacks have a problem with accessing /etc
    I mean a person would have to steal my computer to get my wifi key. Does it really matter? I am writing a private book and should I encrypt that too? You see personally I don't care.

  114. omg... OMG! O.M.G! by Anonymous Coward · · Score: 0

    Yikes! Pidgin does store my passwords in plain text! But... but... but... Joomla too, in its configuration file! And... and almost every CMS by the way! Wait a minute... My Webmail system also stores the... waaaaaaaaaaah! database administrator password in plain text!

    This is a conspiracy! We're all doomed! Shut them all down!