15 points · by ProZsolt · 11y ago · 13 comments
It's not surprising that it works to me -- I think it's the intended behaviour.
The article suggests the fact that barcodes can contain arbitrary (non-printable) ascii characters is the discovery of a new vulnerability which can be used to attack a large number of real-world POS/airport check-in systems, but doesn't give a single example or proof for that. This seems like complete speculation on the presence of input handling bugs in systems connected to barcode scanners presented as a fact.
However, if some specific vendor was susceptible to this attack, it would just be a stupid, obvious and easily fixable input handling bug in their product.
But the linked article doesn't even demonstrate such an attack against an actual application ("BadBarcode is not a vulnerability of a certain product"). Just a trivial "demo" where they use a virtual keyboard device to enter commands directly into a windows shell and then get excited that it works...
Also, just because it's trivial doesn't mean it'll get patched quickly (wasn't it France's airports that were still running Windows 3.11?) or even be acknowledged by the vendor.
I'd try this on my local self-serve supermarket checkout if I were feeling brave...
The only thing "new" might be the recognition of being able to pass "alt-?" key combos through PDF-417 barcodes, which are becoming more and more ubiquitous, while the scanners still just pretend to be keyboards.
At a guess, they encoded Win+R cmd <enter> into a barcode. It's a neat trick with big potential.
In these sorts of situations, as with the Y2K bug, the problem is more often the product of social circumstances than technical circumstances.
Nonetheless, this doesn't prevent technical adversaries from preying upon the flaw, and taking advantage of social patterns of behavior, such as the casual tendency to presume barcodes are intrinsically safe.