Re:No one, not even the Secret Service, should randomly plug...
by YjSe2GMQ on Monday April 08, 2019 @07:41PM
(#19610257)
Barcode-as-a-keyboard was one of the vectors that researchers at last CCC used to hack ATMs. End result: show two barcodes, cash gets out.
https://media.ccc.de/v/35c3-9761-truly_cardless_jackpotting_...
USB is trash for security.
Re:No one, not even the Secret Service, should randomly plug...
by Gaelan on Monday April 08, 2019 @10:24PM
(#19611181)
Don’t think that’s a vector per se. The ATM accepts untrusted USB keyboard input (THAT is the bug)—the barcode reader is just a product that happens to make it easy to type in the right series of characters. You could have done the same thing with a normal keyboard (or an Arduino, if you wanted the convenience)
Re:No one, not even the Secret Service, should randomly plug...
by tyingq on Tuesday April 09, 2019 @12:28AM
(#19611800)
I wouldn't be terribly surprised if you could create a barcode that caused a barcode reader to send <windows key>+r and run some arbitrary command. So perhaps it wasn't a vector for an ATM, but maybe some other barcode reader where workers scan in arbitrary things they are handed...TSA maybe?
Re:No one, not even the Secret Service, should randomly plug...
by YjSe2GMQ on Tuesday April 09, 2019 @01:00AM
(#19611922)
As far as I remember that's roughly how that exploit against an ATM worked:
https://xlab.tencent.com/badbarcode/
Also, perhaps folks working in data centers can and confirm/deny, but from what I know it's usually strictly forbidden to bring any USB devices into a data center area.
Re:No one, not even the Secret Service, should randomly plug...
by sokoloff on Tuesday April 09, 2019 @06:26AM
(#19613246)
We use USB drives as installers and, in some cases, as boot volumes. (And of course keyboards and mice on crash carts and USB serial ports for laptops.)
We’re not a cloud provider, but I’ve been in lots of DCs and seen plenty of USB devices.
Re:No one, not even the Secret Service, should randomly plug...
by HocusLocus on Tuesday April 09, 2019 @08:07AM
(#19613753)
I'd love to have a crash cart. I'd spend all day crashing it into other carts.
Re:No one, not even the Secret Service, should randomly plug...
by daigoba66 on Monday April 08, 2019 @07:29PM
(#19610180)
Before chip embedded credit/debit cards were prevalent, most magnetic strip reader (MSR) peripherals would often operate as a USB keyboard. It allows them to work with web app based POS systems without requiring things like ActiveX.
Re:No one, not even the Secret Service, should randomly plug...
by mleo on Monday April 08, 2019 @09:29PM
(#19610852)
Same but different... I was working to get a Hotel property management web application running on iPad so host could check in people away from desk. The web application supported MSR swipe keyboard entry, but you can’t plug in a generic USB MSR device into iPad.
I wrote a custom iOS keyboard that interfaces with lightning MSR and its API and the “typed” the characters into Safari.
It was nice to be able to use generic Safari and not some App wrapper. And it wasn’t too difficult on host to change keyboards to swipe.
Re:No one, not even the Secret Service, should randomly plug...
by gbrown on Monday April 08, 2019 @07:58PM
(#19610363)
In high school we messed around with this in the crappy P.O.S. system at the place I worked (windowed app, running on Windows) to see what data was recorded on all our various student ID cards, gift certificates etc.
Re:No one, not even the Secret Service, should randomly plug...
by himlion on Monday April 08, 2019 @07:42PM
(#19610263)
I was delighted about this when a client wanted a barcode scanner integrated with a web app. I envisioned major difficulties but instead it only took 5 minutes to implement.
Re:No one, not even the Secret Service, should randomly plug...
by photojosh on Monday April 08, 2019 @09:36PM
(#19610906)
Yep! I have a webapp that's been handling physical print-based photography awards for 7 years now. It generates a PDF label with barcode that the entrant sticks on the back of their print, and then they're shipped to the judging location and the award staff scan 4000+ entries over a couple of days. The barcode scanning was the easiest part of the whole project.
Re:No one, not even the Secret Service, should randomly plug...
by the8472 on Monday April 08, 2019 @06:56PM
(#19609938)
Emulate a MTP device (often used by cameras) and mount with a fuse driver. Since the content on the remote device can change the driver shouldn't be caching it.
Re:No one, not even the Secret Service, should randomly plug...
by geofft on Monday April 08, 2019 @07:58PM
(#19610366)
Or emulate a network, generate a DHCP response for your favorite /31 and don't send a router, and point a public domain name at the other address in that /31.
Re:No one, not even the Secret Service, should randomly plug...
by the8472 on Tuesday April 09, 2019 @03:02PM
(#19617898)
I'm not sure if you are serious. My goal was to use an USB device standard for which open source drivers exist and which doesn't open security holes by allowing it into your system.
MTP devices are ~mostly harmless~ and relatively easy to trust. Network devices are not.
Re:No one, not even the Secret Service, should randomly plug...
by voltagex_ on Monday April 08, 2019 @11:52PM
(#19611627)
Can you elaborate? I understand the concept of RNDIS or CDC devices, but if you've sent an IP address only without a router, how is any traffic going to make it back to the other IP in that subnet? I figure it will go back over the default route, but how are you in control of the traffic itself?
Re:No one, not even the Secret Service, should randomly plug...
by oarsinsync on Tuesday April 09, 2019 @03:23AM
(#19612512)
The subnet mask determines the size of the connected network, which is in itself a route in your routing table.
It's the same mechanism used to reach your router. Subnet-local / connected routes are routes in themselves. Routers let you leave your subnet.
Re:No one, not even the Secret Service, should randomly plug...
by evan_ on Monday April 08, 2019 @07:12PM
(#19610069)
at that point you might as well just use the real drivers.
Re:No one, not even the Secret Service, should randomly plug...
by liveoneggs on Monday April 08, 2019 @09:22PM
(#19610809)
this is how they've always worked. How else should a barcode be entered by a scanner?
I can't see how the filesystem hack would work, if the OS has the drive mounted, it would cache files in memory, and not notice the file contents changing. You can't even modify the metadata, because most of that might also be in memory.