Live data from Hacker News

Why Is This Website Port Scanning Me?

nullsweep.com

421–430 of 448 posts

Re: Why Is This Website Port Scanning Me?

#421

Earlier quoted context omitted.

There are legitimate reasons for port scanning, but I'm not sure most websites out there are using it for noble purposes. I guess browsers could allow it based on explicit permission from the user, just like it's already done for microphone and camera.

Port scanning from a user’s browser is effectively sneaking behind a user’s firewall. The only legitimate reasons I can envision are security research, and this, to me, is such a small edge case that I’m not sure such access is ever warranted. I’d be all for a user notification that says “fnord.com wants to access 192.168.0.10 on tcp/443, which seems to be a web server on your home/work network. Are you sure you want…

I wonder if there is a browser add-on for that...?

Re: Why Is This Website Port Scanning Me?

#422
post #291

> Furthermore, when I installed and ran a VNC server, I didn't detect any difference in site behavior - so why is it looking for it? Not an eBay employee, but used to work in fraud detection. Two very obvious related guesses from my experience: 1. Fingerprinting a user to help identify account takeover (ATO). Open port signatures is probably a pretty good signal for that kind of thing (and it doesn't seem to be measu…

Can you say what were the final false positive rates? Was this part of your research?

Re: Why Is This Website Port Scanning Me?

#423

Earlier quoted context omitted.

These kind of complaints are based on a misunderstanding of how JS works or how the browser works. You can do the same exact thing in JS right now. In fact, if anything, JavaScript makes this way easier than WASM. With JS, you can just use something like Rollup or Webpack to put your analytics code in the same code.

Yeah but using webpack is not how majority of websites deployed, so it's probably not worth the effort for ads companies to support it. They will consider this when webpack/wasm become mainstream enough (approaching 50% web), which may or may not happen. Probably won't happened but the thought always linger in my mind.

It's easy to first party ad code. I would guess that as a percentage of website usage Webpack, or at least code that uses custom bundling, is over 50%. JS knows all.

Re: Why Is This Website Port Scanning Me?

#424

Earlier quoted context omitted.

There are legitimate reasons for port scanning, but I'm not sure most websites out there are using it for noble purposes. I guess browsers could allow it based on explicit permission from the user, just like it's already done for microphone and camera.

>> There are legitimate reasons for port scanning Such as?

Without context people might get the wrong end of the stick. There are legitimate reasons to use nmap on your own equipment, sure.

A port scanner running on a webpage without the users knowlege is never legitimate.

So the question is what legitimate reason is there for a port scanner running in a web browser with the users knowledge?

Re: Why Is This Website Port Scanning Me?

#425
Allowing ws connections to local addresses can be pretty useful in many cases (admittedly, many of these could be better solved with WebExtensions' native messaging) so disallowing it would not fly.

But since this is pretty rare, a message saying: "this website is trying to connect to services running on your computer - allow/deny?" would be pretty easy to implement and solve this for good. Sites that need this already require you to jump through hoops, so one more popup would be fine, but sites that do this for other reasons would probably not want to risk a popup.

Re: Why Is This Website Port Scanning Me?

#426
post #227

Earlier quoted context omitted.

Yes, I've used it to download Linux distros, but the point still stands.

Not really, it totally contradicts the made-up point.

Can you explain.

What percentage of torrent traffic do you suppose - or better have stats for - is not copyright infringing? I'd think it's about 0%.

Would certainly be interested if you can prove that's wrong.

Re: Why Is This Website Port Scanning Me?

#427
post #327

Earlier quoted context omitted.

Ublock origin says it supports ABP filter rules which allow for whitelisting sites which seems like it should allow something approximating: ~site.com$websocket *,~site.com$websocket However this seems like it's invalid syntax because switching your example to this opens all websocket use back up tested via https://websocketstest.com/

That is not valid ABP filter syntax. This is what you want: *$websocket,domain=~site1.com For more than a single site: *$websocket,domain=~site1.com|site2.com|... I would personally suggest people to just enable advanced user mode and create rules such as: * 127.0.0.1 * blocked To block all request attempts to 127.0.0.1.

Correction:

    *$websocket,domain=~site1.com|~site2.com|~...

Re: Why Is This Website Port Scanning Me?

#428
post #377

Earlier quoted context omitted.

In Kazakhstan we have e-government website. This website allows users to use crypto-tokens to access government services (every citizen can get a digital certificate representing his identity). This website used to run Java applet. This applet was signed and it could access restricted APIs to access USB device. So website talked to applet and applet talked to USB device to sign data. After major web browsers disabled…

Since these use cases already require having software installed on your machine, it seems fine and safer to use a browser extension with native messaging for this: https://developer.chrome.com/extensions/nativeMessaging https://wiki.mozilla.org/WebExtensions/Native_Messaging That bypasses the entire certificate question and lets the website know it's communicating with exactly this app and not something happening to…

Yep, that might work. But that would require significantly more work to support all browsers and platforms. Currently it's just a Java application and it works independently of OS or browser.

Re: Why Is This Website Port Scanning Me?

#429

Earlier quoted context omitted.

In Kazakhstan we have e-government website. This website allows users to use crypto-tokens to access government services (every citizen can get a digital certificate representing his identity). This website used to run Java applet. This applet was signed and it could access restricted APIs to access USB device. So website talked to applet and applet talked to USB device to sign data. After major web browsers disabled…

> So government website now uses JavaScript to connect to 127.0.0.1:12345 using websocket. It sounds like random other websites (Ebay, etc) would be able to interact with people's USB devices this way too. Maybe without people knowing?

When JavaScript establishes websocket connection, it sends its origin URL (I don't remember exactly where, probably that's in Referer header). So local webserver can deny connections from unwanted websites.

Re: Why Is This Website Port Scanning Me?

#430

Earlier quoted context omitted.

In Kazakhstan we have e-government website. This website allows users to use crypto-tokens to access government services (every citizen can get a digital certificate representing his identity). This website used to run Java applet. This applet was signed and it could access restricted APIs to access USB device. So website talked to applet and applet talked to USB device to sign data. After major web browsers disabled…

The app running on localhost using WSS is not why they want[ed?] you to install a custom CA certificate. https://en.wikipedia.org/wiki/Kazakhstan_man-in-the-middle_a...

No, that's not true. They used different certificate to MITM connections.
Post reply on HN