News for hackers. Stuff that matters.
Re:Raspberry Pi Z-Wave kit exposes private key by trengrj on Friday February 20, 2015 @05:41AM (#9079868)
I loaded the script "http://find.zwave.me/zbw_new_user" a couple times. You will notice it generates a new private key each time. This is for the local service to connect to the z-wave server without password credentials.

This actually seems okay, the script should be loaded over https definitely but this ssh key part is really just giving a password to each device for connection.

Re:Raspberry Pi Z-Wave kit exposes private key by lcampbell on Friday February 20, 2015 @03:20AM (#9079493)
> "using ssh as a transport mechanism for a web service is one of the worst practices you can use. SSL vulnerabilities are being spotted more frequently than ever now"

Just wanted to note that SSH doesn't really have anything to do with SSL (e.g., it doesn't operate over an SSL transport). Might just be a typo though. Still seems really sketchy that they're using a reverse bind to (presumably) punch through NAT rather than something sane like just using UPnP or simply requiring correct network configuration.

Re:Raspberry Pi Z-Wave kit exposes private key by ambrop7 on Friday February 20, 2015 @03:47AM (#9079572)
I see zero problem with using SSH, which happens to be a pretty secure protocol. In fact I would prefer it to HTTPS since it is not by default vulnerable to malicious CAs. Note for example that GitHub allows Git access over SSH.

When the author says that the system "exposes the private key", well, it's by design that the user can see it - since they need to use it to identify themselves to the SSH server. It's not much different from being assigned a password by the server. What could be improved is if it was transferred over HTTPS rather than HTTP, and of course also the install script.

(I only speak about the usage of SSH, it's possible that they still do something insecure..)

Re:Raspberry Pi Z-Wave kit exposes private key by lcampbell on Friday February 20, 2015 @03:56AM (#9079592)
> it is not by default vulnerable to malicious CAs

Well, in this particular case, they're using

  ssh [..] -o 'StrictHostKeyChecking no' -o 'UserKnownHostsFile /dev/null' [..]
So the remote authentication bits are already out the window. It would be nicer if they included the host's public key in the installation package rather than eschewing it completely.
Re:Raspberry Pi Z-Wave kit exposes private key by ambrop7 on Friday February 20, 2015 @03:58AM (#9079599)
Indeed, they're just using it wrong.
Re:Raspberry Pi Z-Wave kit exposes private key by lucaspiller on Friday February 20, 2015 @05:32AM (#9079842)
> When the author says that the system "exposes the private key"

To be fair the author didn't, the submitter did. I'm not sure if they are the same person.

Re:Raspberry Pi Z-Wave kit exposes private key by raverbashing on Friday February 20, 2015 @05:56AM (#9079904)
Oh look, another "security expert" that doesn't know the difference between SSL and SSH

Actually, SSH tunneling is a very secure way of transporting your web requests.

Re:Raspberry Pi Z-Wave kit exposes private key by nodata on Friday February 20, 2015 @10:17AM (#9080724)
If you check the key. Which that script doesn't.
Re:Raspberry Pi Z-Wave kit exposes private key by raverbashing on Friday February 20, 2015 @11:02AM (#9080938)
I agree, that's the problem, the problem is not that it is SSH
Re:Raspberry Pi Z-Wave kit exposes private key by spacemanmatt on Friday February 20, 2015 @03:22AM (#9079502)
Seems like it's not a typo, rather he intended to indicate that he uses ssh due to SSL vulnerabilities precluding use of SSL.
Re:Raspberry Pi Z-Wave kit exposes private key by yzzxy on Friday February 20, 2015 @03:44AM (#9079561)
Title should maybe be amended to make it clearer that this is not a Raspberry Pi Foundation product.
Re:Raspberry Pi Z-Wave kit exposes private key by NoCowLevel on Friday February 20, 2015 @04:17AM (#9079641)
Suggestion: 'Z-wave's Raspberry Pi kit exposes private key'
Re:Raspberry Pi Z-Wave kit exposes private key by timthorn on Friday February 20, 2015 @04:32AM (#9079676)
It's not made by Z-Wave, either - they're Z-Wave.me.
Re:Raspberry Pi Z-Wave kit exposes private key by GorsyGentle on Friday February 20, 2015 @09:29AM (#9080525)
> These types of installers aren't inherently bad or evil, they just require a degree of trust between yourself and the source you are downloading from.

* And everyone in between.

Re:Raspberry Pi Z-Wave kit exposes private key by moron4hire on Friday February 20, 2015 @07:24AM (#9080108)
The Z-Wave protocol transmits keys in plaintext when setting up secure connections between devices on the mesh network. The rationale is that this should be a one-time event when installing the devices, while also requiring very close proximity to them. Most device don't even have the capability to run securely. It's typically only door and window locks.
Re:Raspberry Pi Z-Wave kit exposes private key by 2bluesc on Friday February 20, 2015 @03:29AM (#9079515)
For more security fun: `wget <non-http url> | sudo bash`
Re:Raspberry Pi Z-Wave kit exposes private key by bodyfour on Friday February 20, 2015 @04:05AM (#9079613)
Not any worse than installing an RPM/deb (which includes an embedded preinstall script) Or the normal "./configure / make / make install" pattern which gives a malicious distributor lots of boilerplate to hide in.

If anything it's probably safer since it's explicit and more likely to be audited.

Re:Raspberry Pi Z-Wave kit exposes private key by ars on Friday February 20, 2015 @04:25AM (#9079663)
If you install deb's normally they are signed, and it does check the signature.

Perhaps the one-liner should be amended to check the hash of the file first, and only run if it matches.

Re:Raspberry Pi Z-Wave kit exposes private key by legulere on Friday February 20, 2015 @06:03AM (#9079917)
Or just use https with certificate check.

One could argue that signed packages are still harder to check because publicly facing web servers are easier to hack, but you need to get the signature somewhere which is usually included in you distribution you downloaded through an insecure http or ftp connection.

Re:Raspberry Pi Z-Wave kit exposes private key by xnyhps on Friday February 20, 2015 @07:00AM (#9080046)
That doesn't protect you from truncation attacks: almost no server out there sends a close_notify before closing the TLS connection, so few tools will throw an error when you receive an incomplete file.

It may be hard to exploit, but executing a script before you have completely downloaded it is simply a really bad idea.

Re:Raspberry Pi Z-Wave kit exposes private key by grhmc on Friday February 20, 2015 @09:47AM (#9080595)
Yes you download the signatures, but you need to trust the key which created the signatures. Distributions come with that key pre-trusted.