Live data from Hacker News

Hacking WiFi to inject cryptocurrency miner to HTML requests (CoffeeMiner)

arnaucode.com

31–40 of 56 posts

Re: Hacking WiFi to inject cryptocurrency miner to HTML requests (CoffeeMiner)

#31

Some buildings (hostels and shared accomodations) have shared internet (secured with WPA2). This type of attack might be particularly profitable in such situations.

Wouldn't WPA2 protect users from an attack like this?

Not if the attacker knows the password (which is probably just listed on the wall in the hostel)

Re: Hacking WiFi to inject cryptocurrency miner to HTML requests (CoffeeMiner)

#33
post #29

Given the recently disclosed vulnerabilities, instead of a cryptocurrency miner, it could be a Spectre exploit trying to scan and exfiltrate data from the computer's memory. We might be now at the point where disabling all Javascript for non-HTTPS pages is a good default.

Why do HTTPS pages get a pass? Between CDNs and ad networks, there's a ton of code out there. At some point, we decided that a magical protective box could make it okay for random people on the internet to run code on our machines. We keep finding this premise to be flawed, with Applets, and with Flash, and now with Javascript, and we always say "oh, if only we had a better protective box, it would have prevented this specific form of attack". Maybe the premise is flawed. Maybe no box is strong enough. Maybe we should stop running code from websites.

Re: Hacking WiFi to inject cryptocurrency miner to HTML requests (CoffeeMiner)

#34
post #13
post #7

Earlier quoted context omitted.

Since we won't get https everywhere soon, is WPA2 on a public Wifi with a publicly known key a workaround? Should prevent plain MITM?

If you control the AP, you should disallow client to client communication. Most AP's and routers allow this and it would mitigate this risk.

CoffeeMiner mixed with a WiFi Pineapple seems like the way to go.

Re: Hacking WiFi to inject cryptocurrency miner to HTML requests (CoffeeMiner)

#35
post #24

Earlier quoted context omitted.

Is there any way to mitigate this without limiting abilities of people on the network? It kind of destroys the point of a LAN.

don't take my word for it, but I'd bet you could disallow LAN comms on port 80 and prevent this. Typically a toxic client would flood the arp table until the router believed the toxic client should receive all communications and then the toxic client would mitm and forward traffic on the expected port to other normal clients...if the toxic client can't send stuff on port 80 to a normal client they can't easily mitm t…

Yeah, but it would still redirect, since that's a different layer of the IP stack.

You could prevent wifi clients from communicating arp packets, I think that would allow most things to work.

If you have a corporate wifi system, you should be watching for arp poisoning anyway. If it's a public system, most people aren't using it to communicate between wifi devices. Most android devices that communicate via wifi will generate their own wifi network for the duration of the communication.

Re: Hacking WiFi to inject cryptocurrency miner to HTML requests (CoffeeMiner)

#36
post #13

Earlier quoted context omitted.

If you control the AP, you should disallow client to client communication. Most AP's and routers allow this and it would mitigate this risk.

CoffeeMiner mixed with a WiFi Pineapple seems like the way to go.

Pineapple is overkill. You can use any open-wrt device or Linux laptop with a card supporting hostap.

Just give it the ssid 'xfinitywifi'.

Re: Hacking WiFi to inject cryptocurrency miner to HTML requests (CoffeeMiner)

#38
post #26

Earlier quoted context omitted.

Is there any way to mitigate this without limiting abilities of people on the network? It kind of destroys the point of a LAN.

Did you ever use LAN functionalities in public Wifi (e.g. Starbucks)?

I did once at a hotel. Someone on the LAN kept what appeared to be his entire MP3 collection in his Shared folder. So I downloaded the whole thing.

Turned out he had crap taste in music and I ended up deleting my copy.

Re: Hacking WiFi to inject cryptocurrency miner to HTML requests (CoffeeMiner)

#40
post #2

I've thought about adding something like this to my guest wifi to mine some cryptocurrency - but quickly dismissed it as most guests would need to use a charger soon(ish) and thus using my electricity :P

I wonder how many use ASICs for mining at public power outlets.
Post reply on HN