News for hackers. Stuff that matters.
Re:iPhone 15 and iPhone 15 Plus by Reason077 on Tuesday September 12, 2023 @05:20PM (#37488580)
> ”It comes with one USB-C to USB-C charging cable - not sure if it is a data cable, also.”

All USB-C cables must support USB 2.0 480 Mbps data transfer, at minimum. There’s no such thing as a USB-C cable that doesn’t support data.

Re:iPhone 15 and iPhone 15 Plus by c0pium on Tuesday September 12, 2023 @05:29PM (#37488708)
Of course there are, they’re sold as “privacy” or sometimes “security” cables.

To be clear, “juice jacking” is not a thing anymore, but people are still foolishly worried about it so there’s a market.

https://www.amazon.com/PortaPow-NA-USB-C-Data-Blocker/dp/B08...

Re:iPhone 15 and iPhone 15 Plus by lukasb on Tuesday September 12, 2023 @07:13PM (#37489940)
Why is it foolish? Are drivers really well hardened now?
Re:iPhone 15 and iPhone 15 Plus by lucideer on Tuesday September 12, 2023 @08:10PM (#37490448)
No, and juice jacking is entirely possible right now. It's just more difficult to do than many other types of hw attack & too costly to deploy in random indiscriminate public ports, making it less than viable for most cases outside of nation-state targeted attacks.

Generally speaking any documented cases of juice jacking happening are just red teams doing PoCs.

Re:iPhone 15 and iPhone 15 Plus by c0pium on Tuesday September 12, 2023 @10:41PM (#37491568)
Stop repeating unsubstantiated rumors as facts.
Re:iPhone 15 and iPhone 15 Plus by lucideer on Wednesday September 13, 2023 @06:23AM (#37494814)
BadUSB-C[0] builds upon the original 2014 BadUSB's HID emulation approach but takes advantage of USB 3.x DisplayPort to process video stream to make decisions & validate the success of the HID emulation steps.

It's too esoteric & expensive to be viable at any scale, but it's definitely functional.

[0] https://ieeexplore.ieee.org/document/9474274

Re:iPhone 15 and iPhone 15 Plus by c0pium on Wednesday September 13, 2023 @10:41AM (#37497396)
If you bother to read more than the abstract, you’d realize this isn’t an attack. It’s a framework for possibly creating new attacks, which after extensive research yielded precisely zero code execution bugs. Gotta print something after wasting a whole semester I suppose.

When I say unsubstantiated rumor, this is what I’m talking about.

Re:iPhone 15 and iPhone 15 Plus by lucideer on Wednesday September 13, 2023 @12:05PM (#37498561)
> this isn’t an attack

I'm aware. As I said above:

> any documented cases of juice jacking happening are [...] PoCs

Re:iPhone 15 and iPhone 15 Plus by c0pium on Thursday September 14, 2023 @12:47AM (#37505093)
Then you should learn what a PoC is. This is not a PoC. It’s a “we tried this and failed”. It’s a disproof(by exhaustion)-of-concept.
Re:iPhone 15 and iPhone 15 Plus by lucideer on Thursday September 14, 2023 @09:00AM (#37508390)
I'm curious about what you think they "tried and failed", and what exactly success looks like for you.

You mentioned "code execution bugs" - what is that exactly to you? I presume you don't count HID emulation, so I'd be interested in what exactly does count.

Re:iPhone 15 and iPhone 15 Plus by c0pium on Saturday September 16, 2023 @01:08AM (#37532212)
Code refers to computer code, sometimes called “shell code”. Execution refers to getting that code to run.

They didn’t get anything unexpected to happen on the device. You really should read the paper, it’s a masterclass in making nothing sound like something.

Re:iPhone 15 and iPhone 15 Plus by c0pium on Tuesday September 12, 2023 @10:49PM (#37491630)
In a word, yes. The code execution CVEs, especially for iOS which is the subject here, all start with <=2014. There has been a huge amount of work since then (accelerated by the research device program).

It’s a favorite boogeyman of the “nation state actors are under your bed” crowd. Which is stupid because they all recommend avoiding public charging and would they be doing that if they were siting on high-quality exploits?

There’s a reason NSO doesn’t target USB, and it’s not because they enjoy creating VMs in the image decoder.

Re:iPhone 15 and iPhone 15 Plus by lucideer on Wednesday September 13, 2023 @06:31AM (#37494867)
Juice jacking tends to use HID emulation - that's feature abuse, not CVE exploitation.

The point is it isn't viable at any scale - nation states advise avoiding public charging because employees of companies they subcontract have been individually targetted. They're not going to be doing any indiscriminate mass exploitation of the general public with it though.

Re:iPhone 15 and iPhone 15 Plus by c0pium on Saturday September 16, 2023 @01:12AM (#37532223)
That’s absurd, no it doesn’t. It refers to a combination of the 2011 defcon demo of eliciting a device to sync data by default and a fever-dream of getting code execution by abusing the USB stack.

You’re thinking of BadUSB or OMGCable.

1) which is a totally different attack 2) not especially applicable to smartphones 3) very much a thing that happens in real life (I have responded to incidents where one was used)

Lastly, there are plenty of CVEs issued for “feature abuse”, that’s a meaningless distinction.

Re:iPhone 15 and iPhone 15 Plus by epcoa on Wednesday September 13, 2023 @09:15AM (#37496330)
> Which is stupid because they all recommend avoiding public charging and would they be doing that if they were siting on high-quality exploits?

Umm. Yes? I think this supports the opposite point than the one you’re trying to make. Apparently you’re too ignorant to grasp that.

Re:iPhone 15 and iPhone 15 Plus by lxgr on Tuesday September 12, 2023 @07:32PM (#37490133)
Is that even possible with USB-C, though?

I believe at least the CC connection needs to be intact for a conformant power adapter or device to even output any voltage for charging for a C-to-C cable.

It might be possible to omit the D+ and D- wires, but that disqualifies many legacy charging protocols as well.

Re:iPhone 15 and iPhone 15 Plus by c0pium on Tuesday September 12, 2023 @10:57PM (#37491682)
Yes.
Re:iPhone 15 and iPhone 15 Plus by xen2xen1 on Tuesday September 12, 2023 @05:52PM (#37489032)
Oh my, lots of cheap cables don't support data. Buy a $15 set of wirlesss Earbuds and check them.
Re:iPhone 15 and iPhone 15 Plus by BHSPitMonkey on Tuesday September 12, 2023 @07:09PM (#37489882)
GP's point is that those are not, by definition, USB Type-C cables (even though a bootleg can still function like one for some use cases), and Apple is not likely to sell USB non-conforming cables.
Re:iPhone 15 and iPhone 15 Plus by coffeebeqn on Tuesday September 12, 2023 @07:50PM (#37490299)
Yeah wouldn’t it be less copper to only put in the voltage connectors? I don’t see why low end wouldn’t skimp out on those
Re:iPhone 15 and iPhone 15 Plus by zlsa on Tuesday September 12, 2023 @10:07PM (#37491336)
If a USB-C to USB-C cable only had wires for VCC and GND, here's what wouldn't work:

* Data (this one is fairly obvious) * Power (since the CC wire in the cable is missing, and a compliant USB-C power source will refuse to output power unless the CC wire is terminated on the other end which signals what type of device it is)

You'd need at _least_ the CC wire as well.

Re:iPhone 15 and iPhone 15 Plus by hedora on Tuesday September 12, 2023 @11:37PM (#37491900)
Can’t the cable terminate it instead? That would save a lot of wire, and consumer expectations for USB-C reliability are just above “might catch fire” and below “I’d be surprised if the cable was incompatible or failed so quickly”.
Re:iPhone 15 and iPhone 15 Plus by duskwuff on Wednesday September 13, 2023 @12:36AM (#37492245)
You'd end up with a cable that only worked for "slow charging" (5V / 500 mA), and even then only in one direction (because the cable could only pretend to be Rp+Ra or Ra+Rd for one side). It's easier to do the right thing.
Re:iPhone 15 and iPhone 15 Plus by hedora on Thursday September 14, 2023 @12:16PM (#37510901)
I wonder how much a crappy voltage regulator costs vs. 3-9ft of wire. Maybe you could step the voltage down at the device end?
Re:iPhone 15 and iPhone 15 Plus by dfcowell on Tuesday September 12, 2023 @10:48PM (#37491627)
The spec requires negotiation between the devices to deliver any nontrivial amount of power. A data connection is necessary to enable charging.
Re:iPhone 15 and iPhone 15 Plus by paulmd on Tuesday September 12, 2023 @09:54PM (#37491249)
then we live in a world with extremely low adoption of this standard. why race to replace lightning with a standard that doesn't have good market penetration?

if you can't walk into the store and pick up a usb-c cable (because we've agreed that cable sold at the checkout counter isn't a real usb-c cable) then why does this standard matter?

Re:iPhone 15 and iPhone 15 Plus by denderson on Tuesday September 12, 2023 @10:13PM (#37491365)
Because Europe made Apple adopt USB-C.
Re:iPhone 15 and iPhone 15 Plus by paulmd on Tuesday September 12, 2023 @10:28PM (#37491474)
Glorifying government intervention into market economics (and forcing a changeover of an entire ecosystem of hardware, producing innumerable e-waste) seems like an odd take for HN's libertarian culture.

Same thing with the sideloading, it's not enough that android lets you do it, apple's business model centered around the iphone as a secure endpoint has to be completely outlawed.

kinda seems the android idea just isn't resilient enough to stand on its own in the market without government intervention to literally outlaw competition with it. given how obtuse and anti-consumer the USB-IF body tends to be, this probably won't end well in the long run.

Re:iPhone 15 and iPhone 15 Plus by komali2 on Wednesday September 13, 2023 @12:06AM (#37492072)
I don't understand - many devices that aren't android phones use USBC. The only devices on earth that used lightning were Apple ones, and not even all their devices (laptops) use it.

Standards and interop are good. If the "free market" refuses to align on that value I'm happy for another mechanism to force it to happen. Judging from this thread, I'm not alone in that.

Re:iPhone 15 and iPhone 15 Plus by baq on Wednesday September 13, 2023 @01:03AM (#37492399)
Free market is only possible because of regulators in the first place. Libertarians conveniently ignore this fact.
Re:iPhone 15 and iPhone 15 Plus by perilunar on Wednesday September 13, 2023 @04:24AM (#37493782)
I don't think they do. Most libertarians aren't anarchists — they accept the need for some government. They just debate (endlessly) how much.
Re:iPhone 15 and iPhone 15 Plus by coldtea on Wednesday September 13, 2023 @01:35AM (#37492593)
>Glorifying government intervention into market economics (and forcing a changeover of an entire ecosystem of hardware, producing innumerable e-waste) seems like an odd take for HN's libertarian culture.

Not everybody is libertarian here, many are pragmatic, and are not dogmatic when a regulation is good.

For example, we also don't lament how there are standards in power plugs, and we don't have to juggle with 20 competing power outlets from different companies in our own country for the benefit of the "free market". That's for starry eyes "ideal over utility" libertarian types.

Re:iPhone 15 and iPhone 15 Plus by md_ on Wednesday September 13, 2023 @05:05AM (#37494141)
In the shadow of encroaching regulatory despotism, the luminous innovation of the iPhone was threatened with bureaucratic shackles by the European Union. The relentless march of progress was halted, as the central planners decreed that every charging port must bow before the altar of uniformity. No longer could Apple's vision for a sleek and efficient Lightning connector reign supreme; instead, the heavy hand of Brussels demanded compliance with the USB-C standard. The champions of individualism and choice saw their liberty erode, replaced by the stifling straitjacket of conformity. The spirit of innovation, once ignited by the entrepreneurial genius of Silicon Valley, flickered in the face of such top-down directives, leaving a world dimmed by uniformity, where the art of technological diversity was sacrificed at the altar of bureaucratic convenience.

Or, like, you know...it's just a charging cable.

Re:iPhone 15 and iPhone 15 Plus by maigret on Wednesday September 13, 2023 @09:08AM (#37496254)
... Ultimately, Apple failed because of USB-C.
Re:iPhone 15 and iPhone 15 Plus by rprospero on Wednesday September 13, 2023 @04:46AM (#37493976)
> Apple is not likely to sell USB non-conforming cables.

I remember Apple intentionally selling non-USB conforming cables for the keyboard on the early iMacs. There was a little notch in the USB cable which meant that it couldn't plug into a standard USB port. The urban legend at the time was that it also meant that they didn't have to include the USB logo on the cable, better matching Steve's aesthetic preferences.

Re:iPhone 15 and iPhone 15 Plus by xen2xen1 on Wednesday September 13, 2023 @07:15PM (#37502909)
But, by definition, all of humanity that is not GP will call them that, so.. Calling them not USB-C is pedantic to the point of extreme silliness.
Re:iPhone 15 and iPhone 15 Plus by josephcsible on Tuesday September 12, 2023 @08:41PM (#37490694)
The standard can say cables "must" support things all day long, but that doesn't mean they will.
Re:iPhone 15 and iPhone 15 Plus by 38 on Tuesday September 12, 2023 @10:08PM (#37491346)
this is Apple. this is not some random seller on Amazon.
Re:iPhone 15 and iPhone 15 Plus by fps-hero on Tuesday September 12, 2023 @11:13PM (#37491771)
The USB-C cable supplied with my MacBook does not function as a data cable, charging only.
Re:iPhone 15 and iPhone 15 Plus by axman6 on Wednesday September 13, 2023 @12:19AM (#37492137)
That sounds highly unlikely, the one that came with my MBP supports everything up to Thunderbolt. But USB is ridiculously complicated, and sometimes better cables fail on shitty devices; I've seen it a few times with camera equipment where I really needed the cable that came with it because higher specced ones just didn't work.
Re:iPhone 15 and iPhone 15 Plus by cjcampbell on Wednesday September 13, 2023 @12:32AM (#37492215)
True if they are referring to the MagSafe cable. If referring to USB C to C, they’re mistaken. The charging cable for all MacBooks does support USB 2 data rates.
Re:iPhone 15 and iPhone 15 Plus by Reason077 on Wednesday September 13, 2023 @11:36AM (#37498177)
The charging cables included with MacBooks do not support Thunderbolt. Just USB 2.0 data.

I do have an Apple Thunderbolt cable which supports charging (of course), but it was a separate purchase. The Thunderbolt cable looks similar but is a bit thicker, and has the Thunderbolt logo printed on the connectors at each end.

Re:iPhone 15 and iPhone 15 Plus by stouset on Wednesday September 13, 2023 @12:38AM (#37492260)
Unless you received a faulty cable, which I guess is technically possible if extremely unlikely, this is categorically untrue.
Re:iPhone 15 and iPhone 15 Plus by worthless-trash on Wednesday September 13, 2023 @01:46AM (#37492665)
In my limited experience, USB cables do go bad. Fortunately the USB-C and A female ends take much more abuse than the cables.
Re:iPhone 15 and iPhone 15 Plus by Reason077 on Wednesday September 13, 2023 @03:11AM (#37493216)
It's actually not technically possible for a faulty USB-C cable to function as a (> 5V) charging cable without data, because the power delivery negotiation happens over the data connection.
Re:iPhone 15 and iPhone 15 Plus by terom on Wednesday September 13, 2023 @05:16AM (#37494241)
For USB C-C cables PD and passive 5V (5K1 pulldown) is negotiated over a separate CC pin from the USB2 D+/- pins, so it's theoretically possible if the D+/- lines are not connected/damaged.

USB A-C cables are entirely separate, there is no CC line, only a fixed always-on Vcc pin at 5V.

Re:iPhone 15 and iPhone 15 Plus by coldtea on Wednesday September 13, 2023 @01:31AM (#37492572)
Not even close to true. Remove it from the charger and use it as a data cable, works fine.
Re:iPhone 15 and iPhone 15 Plus by lloeki on Wednesday September 13, 2023 @04:59AM (#37494084)
They absolutely do. I have three and use them all the time. Use case (beyond charging) to have them right in the box is that they can be used to transfer data from a previous Mac to a new one upon setup (heir to the good old "target mode" that used to turn a Mac into a USB mass storage device), or for T2/Apple Silicon to debrick the device by entering DFU mode.

Just got a fourth (shorter, different from MacBooks) one with my new iPad, it has data too, which I just used yesterday to restore the encrypted local backup from my previous iPad and perform a new local backup. I bet the cable shipped with these new iPhones is the same as with the USB-C iPad ones.

Re:iPhone 15 and iPhone 15 Plus by rjzzleep on Tuesday September 12, 2023 @09:36PM (#37491115)
I'm always puzzled when people say that. When you buy small electric gadgets that come with USB-C, almost all of those bundled are actually without data transfer support.
Re:iPhone 15 and iPhone 15 Plus by MilaM on Wednesday September 13, 2023 @04:03AM (#37493608)
I think this is only true for charging cables that are USB-A to USB-C. I have some of those lying around, also from cheap gadgets. But I would not recommend using them for data transfers anyway.