News for hackers. Stuff that matters.
Re:FBI Advising People to Avoid Public Charging Stations by CharlesW on Wednesday April 12, 2023 @10:34AM (#35540404)
I'm seeing a lot of hysteria in response to this random tweet by the Denver FBI's social media person.

Do we know of a single real-world use of this hypothetical exploit? Do we know that iOS's (and presumably Android's) protection against untrusted device access isn't enough?

Re:FBI Advising People to Avoid Public Charging Stations by enguinq123 on Wednesday April 12, 2023 @11:11AM (#35541080)
Anecdotally, I have had a previous iphone infected by using a public charging station at SFO a few years ago.
Re:FBI Advising People to Avoid Public Charging Stations by ghostpepper on Wednesday April 12, 2023 @11:18AM (#35541198)
Can you elaborate on this? What kind of phone? Android or iOS? Fully patched? What kind of infection? How did you discover it? How did you get rid of it?
Re:FBI Advising People to Avoid Public Charging Stations by kevviiinn on Wednesday April 12, 2023 @02:19PM (#35544308)
I bet their iphone was running android
Re:FBI Advising People to Avoid Public Charging Stations by Alupis on Wednesday April 12, 2023 @03:01PM (#35544976)
There have been many jailbreaks available that only required plugging the phone in and running some program on the other end of the cable. There's been jailbreaks where all you needed to do was visit a website... Apple's security isn't as bullet-proof as some make it out to be.

So, is it plausible a malicious charging station could gain root and sideload something nefarious on an iPhone? Absolutely. Particularly for non-tech-savvy folks desperate to get a charge before their connecting flight...

Has it happened? ...No idea. I guess that's where the anecdotes come in...

Re:FBI Advising People to Avoid Public Charging Stations by kevviiinn on Wednesday April 12, 2023 @03:05PM (#35545032)
My point was that the person who made the comment stating that they had an iPhone, the person I'm replying to went on to ask them if they had iOS or android
Re:FBI Advising People to Avoid Public Charging Stations by Alupis on Wednesday April 12, 2023 @03:08PM (#35545070)
Good point, I missed that bit upstream.

My general point about how easy it can be to maliciously root someone's device stands, so I will leave my comment as-is.

Folks - don't plug your devices into untrusted USB ports...

Re:FBI Advising People to Avoid Public Charging Stations by ghostpepper on Thursday April 13, 2023 @10:48AM (#35556312)
It’s been many years since I rooted (or even owned) an android phone but is there really no interaction from the user required beyond plugging it in? On iOS there’s a pop up asking if you want to trust the computer, and that’s after you’ve unlocked the screen
Re:FBI Advising People to Avoid Public Charging Stations by kevviiinn on Thursday April 13, 2023 @02:47PM (#35560210)
Usually it requires enabling developer mode and enabling USB adb
Re:FBI Advising People to Avoid Public Charging Stations by Alupis on Thursday April 13, 2023 @03:06PM (#35560509)
For a non-techy, the hurdles you just described are an annoyance in the way of getting a quick charge - not obvious security issues. After all, this charging station is operated by the amusement park/airport/conference/whatever... if it asks you to approve it why not?

And yes, in the past many iOS jailbreaks were shockingly simple. The website one in particular - you went to a URL and clicked a button... your phone rebooted and was jailbroken.

Re:FBI Advising People to Avoid Public Charging Stations by Tagbert on Wednesday April 12, 2023 @12:13PM (#35542088)
did you have to say yes to the “trust this computer” question to enable data exchange?
Re:FBI Advising People to Avoid Public Charging Stations by Alupis on Wednesday April 12, 2023 @03:10PM (#35545111)
Your non-tech-savvy folks will pound through nearly any popup if they are desperate to get a charge before their connecting flight, for instance.

The popup really should be a toggle somewhere in the settings that forces a user to explicitly enable data - not a popup users are mostly self-trained into ignoring.

Additionally, real charging stations should not offer cables with data lines at all.

Re:FBI Advising People to Avoid Public Charging Stations by rsync on Wednesday April 12, 2023 @03:26PM (#35545374)
You’re going to need to elaborate here … that’s genuinely interesting if true …

More details?

Re:FBI Advising People to Avoid Public Charging Stations by l33t233372 on Wednesday April 12, 2023 @11:27AM (#35541370)
I think I recall such a thing happening at DEFCON. It was either that or USB sticks being handed out.
Re:FBI Advising People to Avoid Public Charging Stations by _fat_santa on Wednesday April 12, 2023 @11:39AM (#35541569)
It just doesn't seem like a plausible hack when you take in all the circumstances that have to line up correctly:

1. The station has to be using USB Ports / Charging cables that are data enabled, not just cables that carry power

2. The hacker would need some way of injecting the malware into the charging station ports without being seen, I doubt many charging stations are internet connected so you would have to be at the device.

3. You need to have an active exploit for iOS or Android (or both) that will compromise the device and steal it's data.

It just seems like alot of work for something that in all likelyhood would not work.

Re:FBI Advising People to Avoid Public Charging Stations by pphysch on Wednesday April 12, 2023 @12:05PM (#35541968)
More practically, you visit a place that has public chargers, you study them and create a compromised clone, and then you swap out the real one. Like card skimmers.
Re:FBI Advising People to Avoid Public Charging Stations by feoren on Wednesday April 12, 2023 @12:10PM (#35542039)
None of these are necessary, except half of #2. All you'd need is a "middleman" device that is subtle enough to avoid notice by the person plugging in, just like how credit card skimmers work.

> 1. The station has to be using USB Ports / Charging cables that are data enabled, not just cables that carry power

Doesn't matter, because you're (unwittingly) plugging into the attacker's device, not the station's.

> 2. The hacker would need some way of injecting the malware into the charging station ports without being seen, I doubt many charging stations are internet connected so you would have to be at the device.

You don't need to "inject" anything; you just need to physically place it between the user and the actual port and disguise it enough that people not paying attention won't notice. Or even just put a fake "charging station" in a place that the station didn't have one.

> 3. You need to have an active exploit for iOS or Android (or both) that will compromise the device and steal it's data.

People are plugging in their phone so they can use it. They'll plug in the phone, unlock it, and browse the internet. What can't you do in that situation?

Re:FBI Advising People to Avoid Public Charging Stations by marcellus23 on Wednesday April 12, 2023 @01:24PM (#35543348)
> They'll plug in the phone, unlock it, and browse the internet.

iOS devices (maybe Android too, idk) ask you if you want to allow new accessories to access your device. That's why they said you need an exploit.

Re:FBI Advising People to Avoid Public Charging Stations by yardstick on Wednesday April 12, 2023 @01:59PM (#35543953)
“This fast charge station requires accessories access to your device for high speed charging”

Anyone who would believe a notice like that (or would click trust without thinking) is a prime target.

It’s like many scam/spam emails- they often intentionally look a bit dubious, poor grammar, typos etc as the attacker just wants to deal with low hanging fruit, not someone who may wise up quickly that something isn’t right.

Re:FBI Advising People to Avoid Public Charging Stations by mulmen on Wednesday April 12, 2023 @02:44PM (#35544710)
Given what I know of battery technology that seems like a plausible requirement. Why wouldn’t the phone and charger communicate?
Re:FBI Advising People to Avoid Public Charging Stations by gregmac on Wednesday April 12, 2023 @02:00PM (#35543972)
I don't have an iOS device to test, but just found a video [1] showing someone connecting a USB keyboard and immediately using it with no prompts. Same on Android.

Even better, here's [2] a direct example of this attack using an O.MG cable [3].

[1] https://youtu.be/COndab_rQkE?t=76

[2] https://www.youtube.com/watch?v=7YpJQT55_Y8

[3] https://shop.hak5.org/products/omg-cable

Re:FBI Advising People to Avoid Public Charging Stations by OJFord on Wednesday April 12, 2023 @02:34PM (#35544562)
Android allows you to select the 'USB mode' between charging, MTP/PTP media transfer, debugging (if enabled), and filesystem.

If not an exploit, you need the victim to do something a lot more obviously (though the absolute obviousness of course remains debatable) dumb/risky than merely plug in.

Re:FBI Advising People to Avoid Public Charging Stations by worthless-trash on Wednesday April 12, 2023 @10:33PM (#35550139)
If you attack the right part of the USB stack, the prompt and its answer dont matter.
Re:FBI Advising People to Avoid Public Charging Stations by erik_seaberg on Thursday April 13, 2023 @05:30AM (#35553028)
If a malformed packet can trigger RCE in the USB stack, there wouldn’t be a prompt, right?
Re:FBI Advising People to Avoid Public Charging Stations by worthless-trash on Thursday April 13, 2023 @10:22AM (#35555920)
Thats how i'm seeing it.
Re:FBI Advising People to Avoid Public Charging Stations by standardUser on Wednesday April 12, 2023 @01:24PM (#35543355)
I'm confused about #1. If I have a power adapted plugged into the wall, and a USB cable from that power adapted to my phone, how exactly could my phone be compromised?
Re:FBI Advising People to Avoid Public Charging Stations by l33t233372 on Wednesday April 12, 2023 @01:36PM (#35543537)
The attack involves placing a device between the cord and the wall.
Re:FBI Advising People to Avoid Public Charging Stations by yardstick on Wednesday April 12, 2023 @02:04PM (#35544060)
The scenario was talking about a power bank where you plug a USB cable into, not where you plug your own power adapter into. Lots of people, myself included, don’t carry power adapters or even charging cables on them on a day-to-day basis.

Using your own power adapter and own power cable you will be fine.

Unless someone has tampered with either of them while you were distracted momentarily but that’s too high risk/inconvenient for an attacker for you to worry about.

Re:FBI Advising People to Avoid Public Charging Stations by meling on Wednesday April 12, 2023 @02:56PM (#35544897)
Maybe a better attack would be to create and sell a usb condom with malware built in.
Re:FBI Advising People to Avoid Public Charging Stations by marcosdumay on Wednesday April 12, 2023 @01:16PM (#35543199)
We do know of shady companies that sell "own this phone" USB devices to governments, but AFAIK they only sell to governments and the details aren't available to the public.

I have never heard about a non-government sponsored attacker doing that kind of thing. If this is relevant or not to you, it's a matter of your threat model. If I were a journalist, I would be very weary. Personally, I don't plug my phone on random outlets and don't plug random devices on my computers, but it's clearly an overreaction.

Re:FBI Advising People to Avoid Public Charging Stations by tonyarkles on Wednesday April 12, 2023 @03:05PM (#35545035)
Heh, if I'm remembering right, a couple of years ago there was a public charging station at DEFCON that was sponsored by the NSA. I did not plug my phone into it :D
Re:FBI Advising People to Avoid Public Charging Stations by marcosdumay on Wednesday April 12, 2023 @03:45PM (#35545673)
That one became famous. It said something like "Powered by the NSA. You know you want to do it."

(And no, I've never been to DEFCON. It really became famous.)

Re:FBI Advising People to Avoid Public Charging Stations by thinkmassive on Wednesday April 12, 2023 @02:02PM (#35544014)
Thousands of O.MG cables are out in the wild… https://shop.hak5.org/products/omg-cable
Re:FBI Advising People to Avoid Public Charging Stations by CharlesW on Wednesday April 12, 2023 @02:19PM (#35544298)
Wouldn't this be considered the same attack? Users would connect the cable, unlock their phone, and then would need to explicitly "Trust" the external device attempting to connect to their phone via USB.

I suppose the difference is that people may be using the cable to connect to a device where that prompt is expected, in contrast to the "charging port in an airport" scenario where it would seem appropriately alarming.

Re:FBI Advising People to Avoid Public Charging Stations by thinkmassive on Thursday April 13, 2023 @10:06AM (#35555650)
If the phone is unlocked, a badUSB-type device can do anything a keyboard can do, so it’s far from completely harmless.
Re:FBI Advising People to Avoid Public Charging Stations by thrashh on Wednesday April 12, 2023 @03:21PM (#35545283)
Usually the risk for something like is that if there's some unexploited bug in the USB stack or the OS. Which, from what I know from writing software, I don't trust shit.

I think the risk is insanely low for your average person because you'd have to use an unpatched bug on a well-supported system, you'd have to put bug a USB port in a popular place, and you'd need a reason to do all that.

But at the same time, this is well in the wheelhouse and capability of some bored teen with a lot of time who wants to screw with people FWIW. You could also have fun and write a worm that infects everyone that connect to your USB port and have it DDoS a website or something. The first worms were created by bored people.