zlacker

[parent] [thread] 9 comments
1. noduer+(OP)[view] [source] 2023-09-27 00:22:42
I don't use any of this home automation junk, but this kind of begs the question - why would such an app need root access to your devices in the first place?
replies(2): >>bryanc+W1 >>IggleS+V3
â—§
2. bryanc+W1[view] [source] 2023-09-27 00:34:35
>>noduer+(OP)
To allow a web server to bind to port 80 is the only thing that really comes to mind.
replies(1): >>noduer+Sv
â—§
3. IggleS+V3[view] [source] 2023-09-27 00:47:23
>>noduer+(OP)
Shit gets complicated, and being able to dynamite a railroad track through a mountain of nuance is just easier.

"Oh, that path is actually not a temp directory and requires permissions different than the user account?" - sudo

"Oh your firewall blocks my outgoing telemetry data?" - sudo

"Oh your firewall blocks my localhost request but I don't actually realize that's what happens but when I try it with sudo it just works everywhere?" - sudo

There are myriad reasons apps want root access, and almost none of them are good reasons, but that doesn't mean it's not simpler for them to get sudo from a user than it is to get dev eyes addressing (let alone understanding) the nuance.

replies(1): >>noduer+zw
â—§â—©
4. noduer+Sv[view] [source] [discussion] 2023-09-27 03:56:50
>>bryanc+W1
Yeah, that's a conceivable use case for a dedicated box, I guess. But why would that be necessary (or desirable?) Seems like opening port 80 would be the last thing you'd want a home appliance to do... lol
replies(1): >>somehn+2v1
â—§â—©
5. noduer+zw[view] [source] [discussion] 2023-09-27 04:02:55
>>IggleS+V3
Why the hell does telemetry need to allow inbound connections?! Running as root for that reason is even more offensive than what I had figured.

I'm not sure why I'm getting downvotes here... is there some cult of people who love installing apps with root privileges?

replies(1): >>IggleS+hp1
â—§â—©â—ª
6. IggleS+hp1[view] [source] [discussion] 2023-09-27 11:52:25
>>noduer+zw
I think the downvotes might be because I specifically said outbound connections? Although if you have IoT devices it's not unreasonable that they should be able to initiate conversations with your other devices (that would then need permission to accept inbound connections from your IoT devices).

Or maybe the downvotes are because everything I was saying was conjecture / hypothetical anyway, and you're now asking a more specific question to the general question being answered.

I thought the question was "why do apps that don't need sudo request sudo?" And my answer was "perhaps because it's easier to fix permissions problems by getting permission for everything than it is to get them by understanding why your app is getting blocked by them in the first place." Whether it's inbound or outbound or taking video surreptitiously doesn't really answer the question of "why, if the app doesn't actually need it?"

At any rate, I don't actually know why because I don't ask for permissions that I don't need. I also don't know why you're getting downvotes as I didn't downvote you: this answer, like my previous one, is speculative, as is somewhat inevitable when trying to answer "why" questions that relate to the motivations of others.

replies(1): >>noduer+kN1
â—§â—©â—ª
7. somehn+2v1[view] [source] [discussion] 2023-09-27 12:32:20
>>noduer+Sv
80 is desirable because it’s the default port of web browsers and means you can just visit the DNS or up address & not have to remember to tack on some arbitrary port number. Or use some sort of proxy if setup.

And there’s nothing wrong with using port 80 security wise. Binding a port doesn’t mean you’re opening it on the firewall for the world to see. Plus if you’re opening some port on the firewall, what port you use doesn’t matter - it’ll be scanned by an automated scanner shortly regardless of port.

replies(1): >>noduer+v12
◧◩◪◨
8. noduer+kN1[view] [source] [discussion] 2023-09-27 14:03:57
>>IggleS+hp1
For the record, I thought your original answer was excellently well constructed. The bulldozer analogy is completely recognizable to anyone who's tried to engineer any software that needed to run a local server and somehow get its data out. Geez why didn't we all think of forcing the user to run it as root? /s

Maybe more interestingly: I do think that the motivations of others are totally calculable. Society is an autocomplete. One big honkin LLM replete with all the hallucinations. Pretending to be a member of this society is to pretend that I wish to better understand why I'd be downvoted for a thought - to pretend that it's just me, a neuron, looking for back propagation. Yay for the neuron.

Nevermind, it's not important anyway. (Life).

◧◩◪◨
9. noduer+v12[view] [source] [discussion] 2023-09-27 15:05:54
>>somehn+2v1
The downsides of choosing port 80 for your all-important lightbulb dimmer switch telemetry are that:

1. browsers don't even attempt encryption,

2. the port could be open to the world, and

3. lots of people are already running more meaningful shit on port 80.

Seriously, you want to sell me a lightbulb that needs root access and then opens an unencrypted port and then makes outbound calls...? Are you nuts? That's beyond lazy design. It's almost like an intentional insult.

[edit] If you set up a home service on your local network, surely you can also bookmark the obscure port number next to the 128/ address in front of it. The only purpose served by turning your light bulbs into a beacon from hell on port 80 would be letting strangers totally penetrate your house. What happens if you start up a webserver? Do the lights go off?

What kind of schmuck does this to his house??

replies(1): >>somehn+Dff
◧◩◪◨⬒
10. somehn+Dff[view] [source] [discussion] 2023-10-01 15:01:32
>>noduer+v12
1. OK, but it's a LAN - who cares. It's either that or you're in self signed cert hell anyway.

2. If that's the case you have major issues going on which are irrelevant to the port chosen

3. On a single IP - so what? Every device can open it's own port 80 on your LAN without any conflict

> Seriously, you want to sell me a lightbulb that needs root access and then opens an unencrypted port and then makes outbound calls...? Are you nuts? That's beyond lazy design. It's almost like an intentional insult.

This doesn't make any sense. Are you talking about a single light bulb or actual orchestration software? Both need to communicate to actually do anything.

> edit] If you set up a home service on your local network, surely you can also bookmark the obscure port number next to the 128/ address in front of it. The only purpose served by turning your light bulbs into a beacon from hell on port 80 would be letting strangers totally penetrate your house.

This also doesn't make any sense. There is no reason a device on your local network listening on port 80 makes it a 'beacon from hell' - because again, listening on LAN & WAN are 2 very different things. And the port it's using has 0 bearing on security.

> What happens if you start up a webserver? Do the lights go off?

Absolutely nothing - because again there is no conflict with different devices on your LAN using the same ports to listen on.

You're mixing up a number of different things here & making issues where there aren't any. A device on your network opening port 80 doesn't magically make it accessible to the world for poking & prodding or result in any conflicts that cause things to stop working.

And when it comes to orchestrators like Home Assistant - you can choose any port you so desire. But changing the port doesn't make it any less or more secure.

[go to top]