Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security update #16

Open
Telraam opened this issue Feb 18, 2020 · 8 comments
Open

Security update #16

Telraam opened this issue Feb 18, 2020 · 8 comments

Comments

@Telraam
Copy link
Owner

Telraam commented Feb 18, 2020

After analysis and extensive testing of the changes, we have made the following modifications to the code and pushed this update to all connected devices in the field. The update includes:

  • Removing SMB from the pi
  • Changing the password for user pi to a random one from an openssl command (so every pi will have a different, random password)
  • Modifying /etc/rc.local so the password for the user pi is changed at every startup.
  • Disabling and stopping the ssh deamon

A random password is now generated at every boot. For changing the password, the next command is used:
/bin/echo "pi:$(sudo /usr/bin/openssl rand -base64 12 2>&1)" | sudo /usr/sbin/chpasswd

The new passwords will be 12 bytes pseudo-random, base64 encoded strings.
The new versions of the scripts and image are available.

The consequence of these adaptations, is that active Telraam devices are no longer accessible. If you do want to be able to connect to your device directly, you will need another image with user access. We trust expert users understand the risks. We've made a second image that allows user access. Dev image is available for download at https://telraam-api.net/telraam-dev-image.7z
See https://github.com/Telraam/Telraam-RPi/blob/master/telraam-dev-image for more info.

Happy to receive your feedback!

@Telraam Telraam mentioned this issue Feb 18, 2020
@mrtnrey
Copy link

mrtnrey commented Feb 18, 2020

Many thanks to the Telraam team to have still the possibility to access your own telraam device. Much appreciated!
(I use the access to tweak my telraam to connect to my LAN instead of WLAN, with a USB-to-RJ45 dongle).

@hgcvm
Copy link

hgcvm commented Feb 27, 2020

It is not clear to me how you keep SSH access with the dev image. Both when the pi is in AP mode or when it's connected to the home wifi, SSH access is not possible (at least not on standard port 22). Port seems not open, I guess the service is not running. Anybody had any luck with this?

@Telraam
Copy link
Owner Author

Telraam commented Feb 27, 2020

That is correct, by default, the SSH service is not running.
You have to enable it.

Take a look at https://github.com/Telraam/Telraam-RPi/blob/master/telraam-dev-image
I updated the information in that file.

@ThomasDesloovere
Copy link

How can i login then if it is a random password?

@Telraam
Copy link
Owner Author

Telraam commented May 4, 2020

Hi Thomas,

At first startup, the dev image has pi:pi credentials, you can use those credentials to log in the first time and create your own user.

@ThomasDesloovere
Copy link

ThomasDesloovere commented May 4, 2020 via email

@Telraam
Copy link
Owner Author

Telraam commented May 4, 2020

Then you would have to flash the dev image in order to be able to log in.
(you would also need to reconnect to the TELRAAM hotspot and re-enter your wifi credentials)

@Telraam
Copy link
Owner Author

Telraam commented Apr 5, 2022

We had an issue where the wifi password was shown on the TELRAAM hotspot webpage.
We fixed this and made new software images.

You can find the new images at:
https://telraam-api.net/telraam-sd-image.zip
https://telraam-api.net/telraam-dev-image.zip

@Telraam Telraam reopened this Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants