backend icon indicating copy to clipboard operation
backend copied to clipboard

The default password must be changed on the first access

Open avivace opened this issue 6 years ago • 2 comments

Having the same password for every device is a serious security issue (webcam stream, ...)

(1) I propose to disable every route and make the web application unusable until the password is changed.

On the backend:

  • Implement a change wifi password route
  • check the password, if it's the default, disable every route but the change wifi password one, then force a redirect to a change password page on the frontend

On the frontend:

  • Implement a simple page allowing to change the password

(2) An alternative could be to generate a new password, show it to the user, making sure the user has taken note of (confirmation dialog?) then reboot the wifi service and apply the new password, on the first run.

Any opinion on this? @previ @leonardo77

avivace avatar Feb 05 '19 11:02 avivace

(1) seems ok to me, but we also need the possibility to reset the password. If we add a hardware button we can exploit it to trigger the password reset, assuming that anyone who has the access to the robot can set its password.

leonardo77 avatar Feb 06 '19 20:02 leonardo77

Agree, (1) looks good to me. The password, as well as the ssid, could be changed via web ui, old version. It implemented in wifi.py; it's a little cumbersome, but it should work.

previ avatar Feb 06 '19 21:02 previ