News for hackers. Stuff that matters.
Re:Why Is This Website Port Scanning Me? by justinclift on Wednesday May 20, 2020 @09:40PM (#23254035)
> 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?

Re:Why Is This Website Port Scanning Me? by _nalply on Thursday May 21, 2020 @01:19AM (#23255058)
Yes, if this is programmed badly (missing security or a security hole).

The browser connecting to the government website accesses two servers: the original one and the second local one you install yourself on your system. The local server runs natively and therefore can access the USB device. Like all servers it should be programmed such that misuse by hackers is prevented.

Re:Why Is This Website Port Scanning Me? by Shorel on Tuesday May 26, 2020 @01:34PM (#23314029)
That's already a security hole.

The only thing missing is a rogue website abusing it.

There's no guarantee you will never connect to any rogue website that abuses this government mandated backdoor.

Re:Why Is This Website Port Scanning Me? by vbezhenar on Thursday May 21, 2020 @09:40AM (#23258181)
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.