News for hackers. Stuff that matters.
Re:eBay is port scanning visitors to their website by mehrdadn on Saturday June 06, 2020 @04:11AM (#23437567)
I asked this earlier and nobody had a response, so thought I'd ask it again: is there an extension to block this?

Edit: @Windows users: pip install pydivert and then try to write a script to block connections from Chrome to non-Chrome processes. you might need GetTcpTable2() or something. (Looking into this now. Check out http://stackoverflow.com/a/25431340)

Re:eBay is port scanning visitors to their website by sva_ on Saturday June 06, 2020 @04:34AM (#23437630)
As far as I know these port scans are done using WebRTC. Using a browser extension[0] it is easy to deactivate it on the go. Personally, I always have WebRTC disabled by default (as it has several nasty security implications), and only activate it if I explicitly need it for something.

[0] https://addons.mozilla.org/en-US/firefox/addon/happy-bonobo-...

Re:eBay is port scanning visitors to their website by olliej on Saturday June 06, 2020 @06:24AM (#23438148)
This is the kind of thing the webkit team at apple raised as privacy problems with webrtc. They got called IE.

But seriously, many new specs are very obviously abusable, yet on HN people seem unwilling to accept "this feature is trivially abusable" as a reason to not give developers a new feature, even when it is user hostile.

Web specs, and the webdevs he frequently want them, need to consider abusive developers being the default users of the API.

When working on WebGL it took an absurd amount of work to get non-web folk to understand that the spec had to be very tight and verifiable. I literally had to deal with people arguing that "developers won't ship shaders that crash the machine". It was painful.

Re:eBay is port scanning visitors to their website by ZacharyPitts on Saturday June 06, 2020 @01:14PM (#23440679)
"IE". Difficult to search for what that means.
Re:eBay is port scanning visitors to their website by VLM on Saturday June 06, 2020 @01:32PM (#23440830)
Internet Explorer. A much maligned legacy browser for legacy windows desktop platforms.

Aside from being intensely maligned and full of security holes, it doesn't (or didn't?) support WebRTC.

So being called IE is sarcastic like ha ha if you're so concerned about security downgrade to IE which doesn't support WebRTC.

Re:eBay is port scanning visitors to their website by kroltan on Saturday June 06, 2020 @03:00PM (#23441485)
I don't think that's what the poster meant by "They got called IE". IE is notable for - along with the things you mentioned - being about a decade behind in web specification support and taking non-standard approaches to whatever features it did have.

The implication being in this case that people were calling Safari too "conservative", so to speak.

Re:eBay is port scanning visitors to their website by olliej on Saturday June 06, 2020 @03:49PM (#23441758)
The "safari is the new ie" is basically any time apple doesn't implement a web spec it's because they're trying to kill the web, and the privacy complaints are nonsense that doesn't matter. All that matters is developers having shiny new toys.
Re:eBay is port scanning visitors to their website by moooo99 on Saturday June 06, 2020 @05:07AM (#23437752)
irrc, eBay uses websocket connections [0] to scan the ports. Firefox doesn't offer an option to disable websockets in the about:config page. However, I have read about workarounds by setting

  network.websocket.max-connections=0
This is a global setting and is applied to all websites. I also wasn't able to test this myself yet. Are there any good extensions for blocking websockets on for specific domains?

[0] https://nullsweep.com/why-is-this-website-port-scanning-me/

Re:eBay is port scanning visitors to their website by hazz99 on Saturday June 06, 2020 @06:02AM (#23438053)
To people reading this, many websites rely on websockets for real-time information. They would likely fallback to per-refresh HTTP requests, but it also may break a bunch of sites.
Re:eBay is port scanning visitors to their website by narrowtux on Saturday June 06, 2020 @06:55AM (#23438294)
As a developer on a product that uses websocket extensively, I'm afraid that this will lead to the already huge distrust in the technology.

If IT admins get wind of this they'll just block it (or never unblock it since it's been blocked by some from day 1) and our product gets degraded experience.

Re:eBay is port scanning visitors to their website by dicknuckle on Saturday June 06, 2020 @08:16AM (#23438625)
like dropping ICMP replies on firewalls. idiotic because it gives a very false sense of security. it's been a useless "security" practice since the 90s.
Re:eBay is port scanning visitors to their website by rasz on Monday June 08, 2020 @07:18PM (#23461848)
Zonealarm's "!1ALERT!! x.x.x.x is h4x0r1ng you with ICMP packets!" sold $millions worth of placebo in early 2000.

http://download.zonelabs.com/bin/media/pdf/ZA_Manual.pdf

Re:eBay is port scanning visitors to their website by 1over137 on Saturday June 06, 2020 @11:32AM (#23439846)
But don't firewalls drop everything inbound by default? So it's more that people don't know they should create rules to allow ICMP, no?
Re:eBay is port scanning visitors to their website by concerned_user on Saturday June 06, 2020 @11:57AM (#23440036)
Connection comes from your browser i.e. localhost to yourself, firewall is not setup to block such connections in most cases.
Re:eBay is port scanning visitors to their website by narrowtux on Monday June 08, 2020 @09:14AM (#23456193)
Yes, false sense of security hits the nail on the head.

Fits right there with unnecessary password rules too.

Re:eBay is port scanning visitors to their website by anewdirection on Saturday June 06, 2020 @10:19AM (#23439350)
You could say that about JS and I am not running that shit either.
Re:eBay is port scanning visitors to their website by dndvr on Saturday June 06, 2020 @07:34AM (#23438448)
Surely the websockets angle is a bit of a red herring?

Ebay will have your IP from your request so they can run nmap against your machine from their server without your browser ever knowing about it.

I also know of a bank that does similar via an old school sort of way, their online banking login page tries to load images from urls made up of your IP and various ports.

Presumably these are targeting known ports for online banking malware C&C http traffic rather than remote desktop services though.

And this is a bank that still uses frames 'for security', so it must be an old technique!

Re:eBay is port scanning visitors to their website by wongarsu on Saturday June 06, 2020 @07:44AM (#23438491)
Websockets bring them past the router and any other hardware firewall or NAT. Also various software only listens to localhost, on the assumption that local traffic is trustworthy.

They could still portscan from afar and it would still be sketchy, but using Websockets makes it worse

Re:eBay is port scanning visitors to their website by dndvr on Saturday June 06, 2020 @08:30AM (#23438698)
So does using websockets allow you to scan local IP ranges and find other devices on the LAN?
Re:eBay is port scanning visitors to their website by hedora on Saturday June 06, 2020 @10:26AM (#23439408)
By the rule of all web technology sucks and is untrustworthy, they block 10.0.0.0 and 192.168.0.0, but inexplicably allow 172.16.0.0-172.31.255.255.

(Or at least, that was what someone else claimed last time this came up on HN)

Re:eBay is port scanning visitors to their website by eganist on Saturday June 06, 2020 @02:51PM (#23441435)
Who's "they" in this context? It's unclear to me if this refers to eBay or browser vendors.
Re:eBay is port scanning visitors to their website by disposekinetics on Saturday June 06, 2020 @10:28AM (#23439413)
My understanding is it allows them to check for things listening on loopback, given they appear to be checking for SSH tunnels.
Re:eBay is port scanning visitors to their website by ilikenwf on Saturday June 06, 2020 @03:10PM (#23441530)
This won't actually disable websockets if I recall.

There's a blocklist that may make it into uBO in the future that blocks 3rd party access to localhost and other IANA reserved IP addresses, though.

https://github.com/uBlockOrigin/uBlock-issues/issues?q=is%3A...

Re:eBay is port scanning visitors to their website by the_pwner224 on Saturday June 06, 2020 @05:04PM (#23442211)
Re:eBay is port scanning visitors to their website by mycall on Saturday June 06, 2020 @09:13PM (#23443846)
That thread was a fun rabbit hole. !/s
Re:eBay is port scanning visitors to their website by fortran77 on Saturday June 06, 2020 @12:23PM (#23440264)
No. It uses Web Sockets.
Re:eBay is port scanning visitors to their website by labster on Saturday June 06, 2020 @04:15AM (#23437581)
uBlock Origin on Firefox, at least according to a previous article[0] I read on HN. Doesn't work on Chrome/Edge because they never provided the API.

[0]: https://news.ycombinator.com/item?id=23361823

Re:eBay is port scanning visitors to their website by ilikenwf on Saturday June 06, 2020 @03:13PM (#23441555)
Re:eBay is port scanning visitors to their website by stinos on Saturday June 06, 2020 @05:23AM (#23437830)
Previous discussion mentioned a filter rule for uBlock Origin like

$websocket

to override this for sites which break use e.g.

@@gateway.discord.gg$websocket

Re:eBay is port scanning visitors to their website by ilikenwf on Saturday June 06, 2020 @03:14PM (#23441558)
Re:eBay is port scanning visitors to their website by ilikenwf on Saturday June 06, 2020 @03:11PM (#23441538)
uMatrix will usually stop things like this because you haven't explicitly turned them on, but I prefer to just use uBlock origin...we have a discussion and a blocklist for internal IP's here:

https://github.com/uBlockOrigin/uBlock-issues/issues?q=is%3A...

Re:eBay is port scanning visitors to their website by tyingq on Saturday June 06, 2020 @08:06AM (#23438578)
Re:eBay is port scanning visitors to their website by milofeynman on Saturday June 06, 2020 @01:00PM (#23440571)
If this it WebRTC, uMatrix. Don't allow 127.0.0.1 anything, but specifically UHR requests in the UI. This is a fingerprinting technique I believe. My guess is they'll claim it's to prevent fraud.
Re:eBay is port scanning visitors to their website by nemec0 on Saturday June 06, 2020 @01:19PM (#23440729)
uBlock Origin blocks this specific threat (and it's added a few extra filters since this article was posted), however as I noted near the end there are a bunch of other companies running these exact same scans and uBlock only has the ability to block one at a time as they pop up.

I've heard with uMatrix you can block all sites from trying to access localhost/127.0.0.1, which should stop the fingerprinting in its tracks. You may need to enable on a few sites that use localhost for legit things, but those aren't super common.

Re:eBay is port scanning visitors to their website by rkagerer on Saturday June 06, 2020 @03:59PM (#23441831)
Is there a way to make Chrome ask permission before allowing a site to utilize WebRTC?

Similar to how you can make it prompt to store Cookies, provide Location, use the Camera/Mic, etc.

Re:eBay is port scanning visitors to their website by kburman on Saturday June 06, 2020 @04:17AM (#23437586)
I'm not aware of any extension for this but i think we run browser in some kind of docker containers we could avoid this.

One thing that could break due to this could login via XYZ network which opens a new tab in the default browser for authentication.