dashy icon indicating copy to clipboard operation
dashy copied to clipboard

[BUG] Backend has no authentication checks in place

Open skornel02 opened this issue 3 years ago • 7 comments
trafficstars

Environment

Self-Hosted (Bare Metal)

Version

2.0.8

Describe the problem

To begin with I'm not sure if this should be taken as a security issue or a documentation issue.

Currently the official documentiation talks about the safety of the password and the use of keycloak.

With basic auth, all logic is happening on the client-side, which could mean a skilled user could manipulate the code to view parts of your configuration, including the hash.

This suggests that the use of basic auth has no futher security implications aside from the hash being visible. However anyone, without authentication, can still use the node server's functions. Prohibiting the use of the functions on the client side is not proper security.

I am no security expert but I think that this exposes a few immediate ways this software can exploited:

  1. Anyone can rebuild the application to their likings (without authentication)
  2. The available storage space can be filled with newly saved config files
  3. The machine can be slowed by continuous rebuilds and in case of mini PCs (like a Raspberry Pi) they can be rendered useless.

I suggest that either the security part of the documentation and the README should have a clear warning that indicates that this software should not be run as an internet facing service because of security complications OR a proper backend check for authentication is ought to be implemented (this has to be done for each security provider) OR there should be configuration for the backend to hard-disable potentially harmful endpoints and make this the default for new users.

This supersedes #590

Additional info

No response

Please tick the boxes

skornel02 avatar May 20 '22 14:05 skornel02

Any updates on this? I was really hyped to put Dashy on a server but if there are such security implications, I'd rather not have it on an internet facing server with private stuff in it :(

voidfire avatar Jun 12 '22 17:06 voidfire

This issue has gone 6 weeks without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days.

liss-bot avatar Jul 13 '22 01:07 liss-bot

Will be completed (hopefully) in 2.1.2, along with a re-write of how config is loaded and managed. For details, see #799

Lissy93 avatar Jul 13 '22 09:07 Lissy93