News for hackers. Stuff that matters.
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!