News for hackers. Stuff that matters.
Re:Show HN: Browser extension that spoofs your location data... by WithinReason on Sunday June 12, 2022 @06:39AM (#31713479)
Can you explain how Firefox (or Chrome) knows my location within 20m even if I use a VPN? Brave puts me where I think the VPN exit point is.

For example:

https://wikishootme.toolforge.org/

Re:Show HN: Browser extension that spoofs your location data... by saurik on Sunday June 12, 2022 @06:52AM (#31713531)
Many (most?) VPN mechanisms don't entirely remove access to the other routes from apps that manually request them, so even if an app isn't able to use something akin to "location services" on your device it might still easily be able to get access to your other IP addresses by sending requests with sockets manually bound to specific interfaces, and even might choose to lower the priority of information learned using interfaces that are clearly tunnel devices instead of network cards.
Re:Show HN: Browser extension that spoofs your location data... by TecoAndJix on Sunday June 12, 2022 @07:21AM (#31713664)
Also known as split tunnel, this can be used by corporate VPN solutions to lower the amount of network traffic entering a data center (so you don’t overload your undersized pipes)
Re:Show HN: Browser extension that spoofs your location data... by saurik on Sunday June 12, 2022 @02:24PM (#31716914)
No, I don't mean that. That's when you purposefully set your routing table to split some traffic to different paths. The premise here is that even if all of your traffic is supposedly going over a VPN, an app can often opt out of that and do whatever it wants.
Re:Show HN: Browser extension that spoofs your location data... by TedDoesntTalk on Sunday June 12, 2022 @11:12AM (#31715082)
> by sending requests with sockets manually bound to specific interfaces

I don’t believe this is possible in client JavaScript within a web browser. Very open to be proved wrong.

Re:Show HN: Browser extension that spoofs your location data... by saurik on Sunday June 12, 2022 @02:23PM (#31716905)
I thought the complaint was that the browser was figuring it out directly and then exposing it, such as via the browser's location API, not that the website was figuring it out using non-location network mechanisms provided by the browser.

(FWIW, a website that is given media recording privileges can definitely do that, though, using WebRTC. If you don't have that privilege then you can still use the WebRTC API but it doesn't return alternative candidates. But I also don't think that is what they meant.)

Re:Show HN: Browser extension that spoofs your location data... by pancho111203 on Sunday June 12, 2022 @07:27AM (#31713698)
This could also happen if you have a misconfigured VPN with a DNS leak. Check out this website for clues: https://ipleak.net/
Re:Show HN: Browser extension that spoofs your location data... by WithinReason on Sunday June 12, 2022 @07:35AM (#31713740)
I checked and my DNS is not leaked through the VPN. Even if it was, how could that result in such an accurate localisation?
Re:Show HN: Browser extension that spoofs your location data... by Saris on Sunday June 12, 2022 @10:02AM (#31714567)
You clicked "Allow" on the location request dialog, click deny and it won't do that.
Re:Show HN: Browser extension that spoofs your location data... by WithinReason on Sunday June 12, 2022 @10:36AM (#31714817)
Of course, but how does it know? Where is the information from?
Re:Show HN: Browser extension that spoofs your location data... by runlevel1 on Sunday June 12, 2022 @02:27PM (#31716949)
I'm assuming you mean on devices without a GPS.

There are services that wardrive around mapping locations of WiFi access points. Your laptop periodically will phone home with your nearby Wi-Fi MAC addresses (BSSIDs) to ask where they were detected.

Here's one such service: https://www.skyhook.com/wifi-location-solutions

Re:Show HN: Browser extension that spoofs your location data... by runlevel1 on Sunday June 12, 2022 @02:38PM (#31717032)
By the way, if you've ever noticed a brief packet drop or latency spike (usually a few 100s of ms) while pinging a server from your Mac, it might be because your device is doing this.

When Location Services is on (which it is by default), macOS will periodically switch your wireless card to monitor mode to find those nearby SSIDs. That briefly interrupts normal network traffic.

IIRC, it does this more often when Find My.app is turned on.

You can disable Location Services in: System Preferences > Security & Privacy > Location Services

Re:Show HN: Browser extension that spoofs your location data... by intuxikated on Sunday June 12, 2022 @07:33AM (#31713732)
firefox has something called the mozilla location provider, which maps wifi access points to locations, which is similar to what google maps uses when you have gps disabled on mobile
Re:Show HN: Browser extension that spoofs your location data... by hedora on Sunday June 12, 2022 @09:53AM (#31714502)
Is there a way to turn that off? I never want my browser location services to work.
Re:Show HN: Browser extension that spoofs your location data... by jeroenhd on Sunday June 12, 2022 @10:28AM (#31714754)
Go to about:config () and set geo.enabled to false.

: if you're on Android, you'll need either an unstable version (Beta, Nightly) or a fork (Fennec from F-Droid) of Firefox to get access to that page because Mozilla decided users of the standard distribution can't be trusted with these settings.

Re:Show HN: Browser extension that spoofs your location data... by WithinReason on Sunday June 12, 2022 @07:37AM (#31713742)
This would make sense, thank you. Apparently Chrome has something similar?
Re:Show HN: Browser extension that spoofs your location data... by belter on Sunday June 12, 2022 @01:06PM (#31716115)