News for hackers. Stuff that matters.
Re:Remember QR Codes? They’re More Powerful Than You Think by dirktheman on Friday November 01, 2019 @06:20AM (#21417433)
I like the functionality of QR codes, but the fact that they're not human readeable makes them unsafe. It would'nt be unthinkable to make a QR-code, paste it over an existing one (for instance: the QR code in the bar to pay for a tip) and redirect the user to a spoof website where they can tip me instead of the bar/musician.
Re:Remember QR Codes? They’re More Powerful Than You Think by wccrawford on Friday November 01, 2019 @06:23AM (#21417445)
My QR reader on Android (ZXing's Barcode Reader) shows you the information on the screen before you decide what you want to do with it. That's as "Human Readable" as it needs to be, for me.
Re:Remember QR Codes? They’re More Powerful Than You Think by TeMPOraL on Friday November 01, 2019 @06:36AM (#21417503)
It's only helpful if you know what to expect.

A side effect of adtech and surveillance mania infecting everything, URLs in QR codes are likely to be either semirandom strings with tracking IDs, or links to URL shorteners that expand to such semirandom strings with tracking IDs. Either is very trivial to spoof with a similar-looking malicious URL.

Re:Remember QR Codes? They’re More Powerful Than You Think by jakub_g on Friday November 01, 2019 @06:55AM (#21417576)
It's the same with or without the QR code.

Say you're on the bus stop and want to check upcoming buses (real stuff in the place where I live).

The bus company could either slap a QR code, or a "bit.ly/bus-stop-1234" URL. And someone could paste over it a "evil.com/bus-stop-1234".

Hint: use Firefox Focus as your default handler for URLs on mobile phone. It clears all history and cookies after each usage, which is perfect for opening unknown URLs.

Re:Remember QR Codes? They’re More Powerful Than You Think by jschwartzi on Friday November 01, 2019 @03:50PM (#21422999)
I'm looking forward to 20 years from now when all QR codes have to be digitally signed to be valid, and the digital signature must be authorized by a certificate authority in your phone.
Re:Remember QR Codes? They’re More Powerful Than You Think by zulln on Friday November 01, 2019 @04:05PM (#21423141)
And what would the benefit be from that?

That is how HTTPS works today, and does not protect you against phishing at all.

Re:Remember QR Codes? They’re More Powerful Than You Think by jandrese on Friday November 01, 2019 @04:17PM (#21423257)
Maybe if the QR reader gave you the CN and domain of the certificate so you at least knew who signed it.

You scan your bust stop and it says "Verified Signed by City, County Bus service" instead of "anonymous asshole".

Not perfect, but it at least gives the users a chance unlike the blind redirect situation we have now.

Re:Remember QR Codes? They’re More Powerful Than You Think by dwiel on Friday November 01, 2019 @04:34PM (#21423416)
Signed by "Mobile Transportation Services inc."
Re:Remember QR Codes? They’re More Powerful Than You Think by Normal_gaussian on Friday November 01, 2019 @10:33PM (#21425536)
Having just navigated through a bunch of forms on my councils website I can verify that the following people are all on certificates at different points:

* a freelance web dev * two design agencies * nobody (plain lets encryot) * a payments middle man company (stylised like "EZ pay") * the council themselves (on the confirmation pages...)

So I would hazard a guess that "Mobile Transportation Services inc." ie a little too sensible to be trustworthy...

Re:Remember QR Codes? They’re More Powerful Than You Think by theamk on Friday November 01, 2019 @11:44PM (#21425765)
This sounds just like EV certificates, and they have not been shown to work very well.

(There have been many articles explaining why, here is one: https://www.troyhunt.com/extended-validation-certificates-ar... )

Re:Remember QR Codes? They’re More Powerful Than You Think by big_chungus on Saturday November 02, 2019 @12:26AM (#21425889)
"Vеrifiеd Signеd Ву Citу, сountу Вus sеrviсе"

Paste that string into google, and tell me if you get the results you expect. You'll get a lot of Russian. Think people might go for that? There was an attack a while back where bad guys registered "adoḅe.com" and distributed malware. EV doesn't work.

Re:Remember QR Codes? They’re More Powerful Than You Think by oxygenoxy on Friday November 01, 2019 @11:20PM (#21425677)
Then you'll get "Verified Signed by Citÿ, County Bus service"
Re:Remember QR Codes? They’re More Powerful Than You Think by kazinator on Saturday November 02, 2019 @01:22AM (#21426032)
> And what would the benefit be from that?

Some assholes operating a digital signing authority get rich; good for you if you're one of them.

Re:Remember QR Codes? They’re More Powerful Than You Think by jschwartzi on Friday November 01, 2019 @05:42PM (#21424004)
Sorry, I was being sarcastic.
Re:Remember QR Codes? They’re More Powerful Than You Think by swiley on Friday November 01, 2019 @07:02PM (#21424614)
EV would but that’s being killed off.
Re:Remember QR Codes? They’re More Powerful Than You Think by freeone3000 on Friday November 01, 2019 @11:29PM (#21425705)
'cause EV didn't actually validate that, while claiming to. It was false security.
Re:Remember QR Codes? They’re More Powerful Than You Think by theamk on Friday November 01, 2019 @11:37PM (#21425741)
I don't. I like to be able to transfer data from my PC to my phone via QR codes; print out QR codes pointing to the latest photo album and and give them to friends; finding QR links on "garage sale" signs (real thing that happened today).

Requiring signatures will likely kill those applications.

Re:Remember QR Codes? They’re More Powerful Than You Think by wh0knows on Saturday November 02, 2019 @12:18PM (#21428468)
It's incorrect to assume that the existence of signature validation would kill this use-case.

Similar to how the existence of HTTPS does not kill the ability to transmit data over HTTP and visit sites with no certificate or a non-trusted certificate.

It could be as simple as a pop-up saying, "this QR code is not validated, continue anyway"?

Re:Remember QR Codes? They’re More Powerful Than You Think by pmoriarty on Friday November 01, 2019 @03:31PM (#21422801)
I've also heard of QR-reader software being exploitable through QR codes that they're supposed to read.

So any time I see a QR code, I hesitate to point a reader app at it because I'm concerned that my phone could get hacked through it.

Re:Remember QR Codes? They’re More Powerful Than You Think by jandrese on Friday November 01, 2019 @04:20PM (#21423281)
It would be really hard for a QR app to take over your phone, even if it is poorly written and gets owned. There are layers of protection below the aps on an OS like iOS. I'm not saying it's absolutely impossible, but if someone figured it out they could sell the technique for literally millions of dollars to a huge assortment of potential buyers. They probably aren't going to waste it on you.
Re:Remember QR Codes? They’re More Powerful Than You Think by pmoriarty on Friday November 01, 2019 @04:26PM (#21423343)
My phone is a rooted Android phone, though.
Re:Remember QR Codes? They’re More Powerful Than You Think by Dylan16807 on Friday November 01, 2019 @09:51PM (#21425380)
Then don't give the QR app root.
Re:Remember QR Codes? They’re More Powerful Than You Think by 0b0001 on Friday November 01, 2019 @04:38PM (#21423459)
That's the case for any software that accepts any kind of input.

Your browser, your PDF viewer, your messenger are just more popular, but not fundamentally different from a QR reader application.

Re:Remember QR Codes? They’re More Powerful Than You Think by kazinator on Saturday November 02, 2019 @01:24AM (#21426038)
Years ago, WinAmp on Windows was exploitable through a maliciously prepared .m3u playlist: a simple plain text file expected to be filled with pathnames of songs, one per line.

If you're so scared, don't browse anything with your mobile device; browsers are exploitable through pages they land on.

Re:Remember QR Codes? They’re More Powerful Than You Think by kazinator on Saturday November 02, 2019 @01:21AM (#21426025)
I don't see how it can be made less dangerous. The QR code is read and decoded to a URL. The QR code is now gone, and it is the URL that is dangrous. The URL is dangerous no matter how you got it.

On mobile devices, you can't hover the mouse pointer over a link to see where you're going. That's subtantially more dangerous than a URL reader which shows you the URL.

Re:Remember QR Codes? They’re More Powerful Than You Think by m-p-3 on Friday November 01, 2019 @05:58PM (#21424134)
Imagine if someone discovers a flaw in the qrcode library and manage to execute an arbitrary command once read? It's already too late, the device already read the code.

It's the same kind of issue that's possible with any kind of viewer (Adobe Reader, Flash Player, etc)

Once the file or data string is read, it's already game over, and both the QR code and PDF, SWF, etc aren't human-readable.

Re:Remember QR Codes? They’re More Powerful Than You Think by Groxx on Friday November 01, 2019 @06:48PM (#21424496)
sure, but visiting any website or launching any app has those vulnerabilities too, except they're many times more complicated. even if it's a legit site, they could have been hacked, best to just not touch external data ever if that's your threat model.
Re:Remember QR Codes? They’re More Powerful Than You Think by shakna on Friday November 01, 2019 @07:51PM (#21424908)
This has actually happened before. [0]

> An exploitable code execution vulnerability exists in the QR code scanning functionality of Yi Home Camera 27US 1.8.7.0D. A specially crafted QR Code can cause a buffer overflow, resulting in code execution.

[0] https://talosintelligence.com/vulnerability_reports/TALOS-20...

Re:Remember QR Codes? They’re More Powerful Than You Think by theamk on Friday November 01, 2019 @11:53PM (#21425793)
Note that it was not in the QR scanner itself -- the parsing part was fine, the image was always decoded safely. It is the network setup script which parsed the extracted text which was vulnerable.

And this is not unique to QR codes -- the correct setup string looked like "b=USmtPf6GnLZYDuR9&s=PCheX14pPg==&p=AbCD123465". This already looks like gibberish to most people; if this was replaced with evil string, I am not sure user would realize that.

Re:Remember QR Codes? They’re More Powerful Than You Think by theamk on Friday November 01, 2019 @11:48PM (#21425775)
Uh, no? At least in mobile OS's, the applications are isolated very strongly. And QR reader app is likely to have minimal permissions, and does not declare "backgroup daemon" one -- so even if app is entirely taken over, the worst it can do is to show scary messages and redirect you to nasty URL.

The former is easily ignorable, while the latter is no worse than typing random link shortener URL you found on paper.

Re:Remember QR Codes? They’re More Powerful Than You Think by kazinator on Saturday November 02, 2019 @01:25AM (#21426039)
Imagine if someone discovers a flaw in any library that your web browser uses, or the browser itself or is JS engine ... oh no!
Re:Remember QR Codes? They’re More Powerful Than You Think by Jemm on Friday November 01, 2019 @08:55AM (#21418177)
I think the app is Barcode Scanner, Not Barcode Reader.
Re:Remember QR Codes? They’re More Powerful Than You Think by wccrawford on Friday November 01, 2019 @09:22AM (#21418442)
You're right. The dumbest part is that I actually went to my phone to find the company name and still thought it said "Reader" for the app name.

Thanks!

Re:Remember QR Codes? They’re More Powerful Than You Think by tzs on Friday November 01, 2019 @09:56PM (#21425401)
If that became widespread, I could see places that display QR codes like the bar in your example take steps to make the QR codes physically inaccessible.

For example, they could put the QR code behind glass, and have a sign telling people to only scan the code if they can see it behind the glass. Someone could still paste a QR code of their own outside the glass, but it would be pretty obvious.

Or instead of printing them on paper, they could have a small LCD screen dedicated to displaying the code. This could be designed to make it obvious if someone tries pasting a code over the screen. For instance, the screen could be a bit bigger than the QR code, which could move around the screen, like the bouncing ball or logo in many screen savers.

Re:Remember QR Codes? They’re More Powerful Than You Think by tobr on Friday November 01, 2019 @06:43AM (#21417536)
I agree that QR codes are a bad idea because they’re not human readable. But wouldn’t that particular hack be possible with a URL as well? It might be detected faster I suppose.
Re:Remember QR Codes? They’re More Powerful Than You Think by dirktheman on Friday November 01, 2019 @07:01AM (#21417602)
Sure, but not many people would knowingly and willingly enter a long URL in their browser. The ease of use and simplicity of QR codes (just point your camera!) is what makes them a potential risk, IMHO.
Re:Remember QR Codes? They’re More Powerful Than You Think by jobigoud on Friday November 01, 2019 @07:10AM (#21417646)
We most certainly have the computer vision tech to detect URLs from images of the camera stream. That could be an extra feature of QR code readers app if it's not already.
Re:Remember QR Codes? They’re More Powerful Than You Think by shpx on Friday November 01, 2019 @09:48PM (#21425367)
If you have a Pixel phone, open the camera, scroll right to More, open Lens and point your phone at a (human readable) URL.

https://en.wikipedia.org/wiki/Google_Lens

Re:Remember QR Codes? They’re More Powerful Than You Think by tobr on Friday November 01, 2019 @08:12AM (#21417907)
Then we have very different ideas of why QR codes are bad. I think they’re bad because they waste space with something that is completely useless to human senses. They should be replaced with good OCR, not with manual typing.

Teach machines to make use of human language instead of teaching humans to make use of machine language.

Re:Remember QR Codes? They’re More Powerful Than You Think by papln on Friday November 01, 2019 @04:27PM (#21423346)
99.9% of the information in your computing life is not human readable; it's encoded in radio waves and electrical pulses that your senses can't interpret.
Re:Remember QR Codes? They’re More Powerful Than You Think by tobr on Saturday November 02, 2019 @05:25AM (#21426696)
You can’t experience them with your senses at all, which is completely different. You can see a QR code, and in fact you have to see it to be able to use it, so it takes up space on signs, in magazines, billboards, etc.
Re:Remember QR Codes? They’re More Powerful Than You Think by theamk on Saturday November 02, 2019 @12:00AM (#21425820)
but they'd enter bit.ly URL with no problem, and it can redirect to such URL
Re:Remember QR Codes? They’re More Powerful Than You Think by jensv on Friday November 01, 2019 @06:42PM (#21424444)
Check out HR codes, an alternative to QR codes which encode all valid URL characters to images. https://github.com/hantuzun/hr-code Human Response Codes are designed to be recognized by humans and OCR.
Re:Remember QR Codes? They’re More Powerful Than You Think by sniperjzp on Friday November 01, 2019 @07:26PM (#21424764)
Great idea, thanks for sharing this! But how could we prove what's behind the image is exactly what is shown? Could someone still hack it, pretend to be a normal link but actually is a phishing link?
Re:Remember QR Codes? They’re More Powerful Than You Think by jagged-chisel on Saturday November 02, 2019 @04:27PM (#21429852)
How can you know the URL doesn't redirect to something malicious?
Re:Remember QR Codes? They’re More Powerful Than You Think by theamk on Friday November 01, 2019 @11:59PM (#21425816)
The big downside of this is lack of redundancy. QR codes are incredibly redundant. check out images 6 ("lose an edge") and 10 ("blob of paint") in the page: http://datagenetics.com/blog/november12013/index.html

Both of these scan perfectly fine with QR. And in HR, those (and most of other damaged examples) would be unreadable.

Re:Remember QR Codes? They’re More Powerful Than You Think by ouid on Friday November 01, 2019 @08:01PM (#21424949)
you can also use cash.
Re:Remember QR Codes? They’re More Powerful Than You Think by sfifs on Friday November 01, 2019 @10:57PM (#21425607)
If it's sticker based QR normally you just show your screen to the person behind the counter before you pay to verify recipient and amount.

Many payment QRs are actually dynamically generally on a POS machine LCD so you get amount and recipient on your device - so that fake sticker problem doesn't exist in these cases

Re:Remember QR Codes? They’re More Powerful Than You Think by theamk on Friday November 01, 2019 @11:34PM (#21425725)
I don't think making codes human-readable would help -- human-readable URLs are spoofable too.

For example, if you replace "tipme.com/some_bar" with "tipme.cz/some_bar", most people would have no idea the latter is the wrong URL; and even waiters/cleaners may not notice the change

Re:Remember QR Codes? They’re More Powerful Than You Think by snarf21 on Friday November 01, 2019 @03:49PM (#21422980)
Isn't this easily solvable by the URL based codes have to have a signature and other verification that the browser can enforce? So instead of a link to paypal to pay me, it is a link to the bar's website and that site has a paypal popup originated from the bar's website.
Re:Remember QR Codes? They’re More Powerful Than You Think by kazinator on Saturday November 02, 2019 @01:19AM (#21426023)
Well, the fact that they are not human readable and that some badly designed software takes dangerous actions with them without confirming with the user makes them unsafe.

They are readable when decoded; a lot of them just contain URL's.

There is a bit of an analogy here to shortened URL's.

Re:Remember QR Codes? They’re More Powerful Than You Think by samstave on Saturday November 02, 2019 @12:44AM (#21425938)
You can add the "human readable tag" as 'VISIBLE' underneath any QR code you create in Bartender. (the only caveat is if the item the QR points to is a really long string it becomes unwieldy.. hang on lemme give you some examples -- I.. make a QR that points here.

https://i.imgur.com/uv09CuL.png

and without the tag

https://i.imgur.com/tOwHANb.png

Takes two seconds

Re:Remember QR Codes? They’re More Powerful Than You Think by Kalium on Friday November 01, 2019 @06:49PM (#21424513)
I've seen this done in the wild. It's possible to defeat, but only if users are vigilant. Which not all are.
Re:Remember QR Codes? They’re More Powerful Than You Think by kevinlou on Friday November 01, 2019 @07:05PM (#21424635)
This unfortunately happens a lot in Asia - not sure what the best solution would be.