Live data from Hacker News

TIL: You can access a user’s camera with just HTML

austingil.com

191–200 of 240 posts

Re: TIL: You can access a user’s camera with just HTML

#191
post #159

Earlier quoted context omitted.

What exactly is the security risk? The browser intermediates all access and you already trust the browser to handle many other sensitive operations on your behalf. There's no way for a site to activate this without your approval or covertly without a full zero-day (probably two since most OSes also have recording indicators now). Contrast this with where we were in the bad old days: sites used things like plugins or…

The security risk is that advanced functionality is available to all websites. Even if the browser itself is actually a perfect sandbox (and I don't think that's a claim anyone would make), it's still a security problem because a lot of mischief can be done within those parameters, such as tracking, fingerprinting, and other forms of spying. > Contrast this with where we were in the bad old days In the "bad old days"…

> The security risk is that advanced functionality is available to all websites. Even if the browser itself is actually a perfect sandbox (and I don't think that's a claim anyone would make), it's still a security problem because a lot of mischief can be done within those parameters, such as tracking, fingerprinting, and other forms of spying.

No, it can't. It's an HTML attribute which enables some mobile browser UI around the standard behaviour. The only thing it allows for tracking is whether your browser supports that attribute, which narrows it down to about 60% of the browsers in the world:

https://caniuse.com/html-media-capture

The only way you're breaking that is if you have the kind of exploit which could break just about anything and in that case the argument would be more along the lines of “we should remove JavaScript entirely” since that's been a source of orders of magnitude more security problems.

> In the "bad old days", you could decide not to install plugins, choose which ones to install, etc. You could customize the attack surface you're willing to present. That ability is seriously constrained now.

Your choice was to enable a massive operating system-scale level of functionality in Flash/Silverlight or not be able to use many popular sites. Since those plugins were managed separately from the browser they did not follow the same secure development practices or sandboxing which the browsers were using, and many users either did not update them or did so on a schedule far slower than the update schedule Chrome or Firefox kept.

> In effect, it's allowing any random website to have the power of a natively installed application.

… with complete user control. That's exactly what you say you want in the next sentence and it's far better from a security perspective because trusting a browser's sandbox is a lot easier to evaluate than having to individually review every native application you install. Installing native applications should be seen as a relatively rare activity because they expose you to more risk and are harder to evaluate.

Re: TIL: You can access a user’s camera with just HTML

#192

I can't get over the fact, that he is using "a public internet URL" to tunnel the traffic to his local server, just to watch it on his phone. What he should have done: - Make his local server listen on his local ip like >:3000 instead of just 127.0.0.1:3000 - Connect his cellphone to his local lan with wifi. - Look at the site on >:3000 on his cellphone. I would never make a connection from a public Domain to my loca…

Maybe he can't connect his phone to the same network the local server is on? Maybe he wants to share the URL to people not on the same network?

Re: TIL: You can access a user’s camera with just HTML

#193

Earlier quoted context omitted.

USB/Bluetooth is underrated because it means you can ship hardware products that can have their firmware updated or connect and sync with a web service without having to build/ship/maintain a whole app for it that will eventually stop working after an OS update.

Is Bluetooth good yet? I had issues as recent as last year's new products. But otherwise I love the concept of hardware access with HTML. The embedded guy in me thinks the future is going to be crazy. I can't quite wrap my head around the possibilities.

My guess is that hardware access with HTML will mostly bring about remote exploits and massive privacy problems. I disable all of it.

I also keep Bluetooth disabled on my mobile devices. It's used extensively to ID and track people and their devices. For things that don't move and are only ever paired to a single thing (like a speaker) it works fine. Most of the complaints I hear about bluetooth are from people who pair multiple devices to a single source and want to easily switch between them.

Re: TIL: You can access a user’s camera with just HTML

#194

Hyper Text Markup Language ...why is a markup language for hypertext able to control my device's camera? Why have all the relevant standards bodies associated with this language and protocol gotten on board with turning a markup display language into a full-blown OS?

Because its the securest way we have to launch any app on any device. With binaries, any binary might be malicious and therefore I can only trust and run a very small amount of selected binaries. With web apps, I can launch whatever I want without compromising my system.

> With web apps, I can launch whatever I want without compromising my system.

What makes you think web apps can't enable exploits that compromise your system? Anything that can run code on your machine enables attacks. Even Javascript that gets run in browsers have enabled attacks on the local system.

If anything web apps decrease your security since a binary can be vetted and verified as unchanged, but when you open a web app you're at the mercy of whatever it is and does in that moment.

Re: TIL: You can access a user’s camera with just HTML

#195
post #9

This is a site that shows the camera feed full screen and inverts in with css https://nega.radioac.dev/ I hacked it together in half an hour to give people a way to look at the uninverted version of my inverted analogue photos with their phones at exhibitions. most people were more excited to play with it on their phone than by the photos I took days making. :'( [edit oops this javascript ]

I'm getting a blank screen on Firefox for Android :(

Works for me on the same.

Re: TIL: You can access a user’s camera with just HTML

#196
post #31

Earlier quoted context omitted.

I'm getting a cert error. Subject is *.fortinet.com, not nega.radioac.dev. Edit, the second: Disregard. It's definitely a corporate middlebox on my end.

My guess is that some corporate filter blocked it because of the "nega" subdomain. Kind of sounds like the racial slur. Edit: it doesn't help that the domain is `radioac.dev`. So *NEGA.R*adioc.dev

Wouldn't that be a ridiculously dumb heuristic to employ?

Re: TIL: You can access a user’s camera with just HTML

#197
post #9

This is a site that shows the camera feed full screen and inverts in with css https://nega.radioac.dev/ I hacked it together in half an hour to give people a way to look at the uninverted version of my inverted analogue photos with their phones at exhibitions. most people were more excited to play with it on their phone than by the photos I took days making. :'( [edit oops this javascript ]

Doesn't show my actual camera but a virtual one. So I guess it would need an option to select which camera to use.

Re: TIL: You can access a user’s camera with just HTML

#198
post #9

This is a site that shows the camera feed full screen and inverts in with css https://nega.radioac.dev/ I hacked it together in half an hour to give people a way to look at the uninverted version of my inverted analogue photos with their phones at exhibitions. most people were more excited to play with it on their phone than by the photos I took days making. :'( [edit oops this javascript ]

Do you have a link to any of your photographic work?

Re: TIL: You can access a user’s camera with just HTML

#199
post #196
post #31

Earlier quoted context omitted.

My guess is that some corporate filter blocked it because of the "nega" subdomain. Kind of sounds like the racial slur. Edit: it doesn't help that the domain is `radioac.dev`. So *NEGA.R*adioc.dev

Wouldn't that be a ridiculously dumb heuristic to employ?

Who ever said corporate IT was smart?

Re: TIL: You can access a user’s camera with just HTML

#200
post #31

Earlier quoted context omitted.

I'm getting a cert error. Subject is *.fortinet.com, not nega.radioac.dev. Edit, the second: Disregard. It's definitely a corporate middlebox on my end.

My guess is that some corporate filter blocked it because of the "nega" subdomain. Kind of sounds like the racial slur. Edit: it doesn't help that the domain is `radioac.dev`. So *NEGA.R*adioc.dev

Maybe because it’s close to ‘mega’ and all those variants of what used to be mega upload are like whackamole.
Post reply on HN