News for hackers. Stuff that matters.
Re:ATtention Spanned: Comprehensive Android Vulnerability An... by on_and_off on Friday August 24, 2018 @03:27PM (#17837261)
>We found that in some cases the "charge-only" USB mode may also fail to block AT commands.

wow that is embarrassing. This needs to be added to CTS like 5 years ago ..

Re:ATtention Spanned: Comprehensive Android Vulnerability An... by blattimwind on Friday August 24, 2018 @03:54PM (#17837450)
You can never trust software to block data flows. There is no such thing as "charge-only" as long as the cable still has data wires in it.

> We found that in some cases the "charge-only" USB mode may also fail to block AT commands.

Re:ATtention Spanned: Comprehensive Android Vulnerability An... by ForHackernews on Friday August 24, 2018 @04:20PM (#17837624)
This is a good point. I wonder if there's a market for "power-only" USB cables without data? Or would those fail to negotiate the right wattage?
Re:ATtention Spanned: Comprehensive Android Vulnerability An... by joezydeco on Friday August 24, 2018 @04:27PM (#17837665)
Re:ATtention Spanned: Comprehensive Android Vulnerability An... by digi_owl on Friday August 24, 2018 @04:42PM (#17837756)
While not at guaranteed, killing the data wires (or shorting them) makes the device think it is dealing with a charge only port.

Thus various companies have made devices that conditionally apply said short.

Here is one example: https://www.startech.com/Cables/USB-2.0/USB-Adapters/USB-2-F...

Re:ATtention Spanned: Comprehensive Android Vulnerability An... by joezydeco on Friday August 24, 2018 @04:51PM (#17837803)
The USB condom is more for situations where you are in public and wish to charge your device from an unknown and possibly hostile USB-A receptacle.
Re:ATtention Spanned: Comprehensive Android Vulnerability An... by DarkStar851 on Saturday August 25, 2018 @02:04AM (#17839780)
That Startech device still isolates the data line, it just has the added bonus of adding fast charging support. It'd be effective as a "USB condom" alternative.
Re:ATtention Spanned: Comprehensive Android Vulnerability An... by kageurufu on Friday August 24, 2018 @04:27PM (#17837664)
USB-C has separate lines for the "Configuration Channel", that is used to negotiate voltage and amperage. I'm unaware if the specification allows for cables without data lines, but I don't believe they would be required.

It would only work on USB-C host devices as well though, USB-A would still revert to either 500mA as long as the data lines are tied with a resistor

Re:ATtention Spanned: Comprehensive Android Vulnerability An... by c22 on Friday August 24, 2018 @06:06PM (#17838170)
I have several cables like this. It's always briefly mystifying when I accidentally grab one to sync some data. No negotiation, my fancy devices just charge at 500mA using these cables.
Re:ATtention Spanned: Comprehensive Android Vulnerability An... by Avamander on Friday August 24, 2018 @03:47PM (#17837394)
This allows KDE/modemmanager to unlock the SIM card of my phone by just plugging it in though. I like it. I know my phone isn't top-notch on security but thankfully I know it isn't and take precautions outside.
Re:ATtention Spanned: Comprehensive Android Vulnerability An... by p4bl0 on Friday August 24, 2018 @03:55PM (#17837457)
Yep, when using an untrusted USB power source, you can use what is called a "USB condom": either an adapter or a USB cable with the data wires cut letting only power go through. You can search the web for tutorial on which wires to cut in your USB cable, or for already made USB condoms to buy for less than $10 a piece.
Re:ATtention Spanned: Comprehensive Android Vulnerability An... by noja on Friday August 24, 2018 @04:01PM (#17837497)
You need to buy good ones otherwise the power negotiation doesn't happen and you get a slow charge.
Re:ATtention Spanned: Comprehensive Android Vulnerability An... by Immortalin on Friday August 24, 2018 @04:37PM (#17837727)
Any way to sandbox or proxy the power negotiation through the sheath? Laptop's USB controller chip could be vulnerable.
Re:ATtention Spanned: Comprehensive Android Vulnerability An... by simcop2387 on Friday August 24, 2018 @05:58PM (#17838130)
Not sure of any that do that, but I've seen quite a few that support most of the charging standards and negotiate the highest current available (still at 5V) so that the phone can usually charge reasonably fast.
Re:ATtention Spanned: Comprehensive Android Vulnerability An... by Avamander on Monday August 27, 2018 @06:02AM (#17850474)
There are chips you can buy that do power negotiation. You could design your own PCB that does the job.
Re:ATtention Spanned: Comprehensive Android Vulnerability An... by driverdan on Friday August 24, 2018 @06:01PM (#17838147)
> when using an untrusted USB power source...

Don't do that. Ever. Always use your own charger and cable, preferably the ones that came with the phone. If not make sure you're sourcing them from a reputable company and not an anonymous Chinese importer.