News for hackers. Stuff that matters.
Re:Encoding your WiFi access point password into a QR code by matt-attack on Sunday December 29, 2019 @06:05AM (#21905310)
Are you not concerned that QR code’s are just completely opaque URLs asking to be clicked? Do you confidently click on URLs in spam emails? Of course not since we all know URLs can point to malicious payloads. So why should we love QR code’s that could just as easily do the same.

If I’m a spammer trying to get people to click on my bogus links in my email messages, why wouldn’t I also print those same URLs as QR codes and paste them around my city with creatively enticing titles.

Re:Encoding your WiFi access point password into a QR code by ctdonath on Sunday December 29, 2019 @10:49AM (#21906458)
Do you never click URLs in emails? Of course you do, when you're confident the sender is reputable.

Parent was referencing trusted contexts: the default password printed on your wifi router, the bill a cashier just handed you for what you just bought, the legal papers you just signed, etc. The QR code just links the trusted document with trustworthy digital versions & extended content.

I'm not worried a spammer is going to get a bogus QR printed on the grocery store receipt I just received. I'm not going to scan QR codes printed & posted on subway walls for no apparent reason.

Re:Encoding your WiFi access point password into a QR code by kohtatsu on Sunday December 29, 2019 @11:18AM (#21906619)
I can't imagine a qr code on a receipt being anything but tracker-infested spam.
Re:Encoding your WiFi access point password into a QR code by mk89 on Sunday December 29, 2019 @12:05PM (#21906975)
That's how it currently is in some shops. Amazing how marketers are always ahead on such technologies.
Re:Encoding your WiFi access point password into a QR code by jeremyvisser on Sunday December 29, 2019 @09:47PM (#21910381)
Can confirm.

I was visiting a nature reserve where the trail opened to a resting area with some seats. A tree had a woodcut QR code on it, so I thought I'd scan it to find out more about the area.

Turns out, the QR code linked to some tracking site with a short URL. Even worse, the short URL had since been deleted, so I have no way to know the original URL it went to.

Re:Encoding your WiFi access point password into a QR code by tripzilch on Tuesday December 31, 2019 @09:18AM (#21921125)
Yep, it'll definitely have a tracking code added to the URL.
Re:Encoding your WiFi access point password into a QR code by inetknght on Sunday December 29, 2019 @01:49PM (#21907633)
> Do you never click URLs in emails? Of course you do, when you're confident the sender is reputable.

Nope. I go to the sender's URL manually and look for what it is they sent an email about.

Re:Encoding your WiFi access point password into a QR code by TheGallopedHigh on Sunday December 29, 2019 @07:26PM (#21909713)
You’re the exception that proves the rule
Re:Encoding your WiFi access point password into a QR code by dordoka on Monday December 30, 2019 @08:10AM (#21913095)
Exactly.
Re:Encoding your WiFi access point password into a QR code by Phobophobia on Sunday December 29, 2019 @11:57AM (#21906920)
Don't most people within the HN demographic mouse over to see the link in emails?
Re:Encoding your WiFi access point password into a QR code by Spare_account on Sunday December 29, 2019 @12:09PM (#21906993)
For comparison, my phone shows me the URL that the QR code decoded to, and prompts me to confirm that I want to browse to it
Re:Encoding your WiFi access point password into a QR code by SlowRobotAhead on Sunday December 29, 2019 @12:34PM (#21907160)
Remember bitly, AMP, CDNs?

Also, as to something like a javascript exploit in a URL itself, QRs can hold a surprising amount of data, enough to max out most URL browser limits around 2,048 bytes.

Re:Encoding your WiFi access point password into a QR code by sp332 on Sunday December 29, 2019 @08:30PM (#21910014)
At least bitly lets you look before you keep. Add a + to the end of any bitly URL to see where it goes, when it was created, and how many peole clicked it.
Re:Encoding your WiFi access point password into a QR code by Spare_account on Monday December 30, 2019 @07:27AM (#21912867)
You've described some of the scenarios that would result in me not clicking the link. The feature works well, doesn't it.

This is functionally the same as hovering over links in emails, which is the context in which I made my comment.

Re:Encoding your WiFi access point password into a QR code by SlowRobotAhead on Monday December 30, 2019 @11:56AM (#21914730)
Ok, explain those to my mom.
Re:Encoding your WiFi access point password into a QR code by nkrisc on Sunday December 29, 2019 @02:44PM (#21907992)
Ok but if it's a bitly link then I'm still not clicking. Just like it an email includes an obviously shortened email.
Re:Encoding your WiFi access point password into a QR code by sylvanaar on Sunday December 29, 2019 @04:02PM (#21908445)
Bitly is so useful though for making usable QR links
Re:Encoding your WiFi access point password into a QR code by octorian on Sunday December 29, 2019 @01:05PM (#21907343)
On the desktop, especially if the Email is even slightly suspicious? Always. On mobile, it's somehow a lot more difficult and user unfriendly.
Re:Encoding your WiFi access point password into a QR code by m463 on Tuesday December 31, 2019 @06:11PM (#21925442)
hover text and/or copy and paste into browser before hitting go.
Re:Encoding your WiFi access point password into a QR code by gpvos on Sunday December 29, 2019 @07:02AM (#21905473)
The QR scanning app that I use displays the URL so I can check if it looks okay, but most of them are abbreviated using services like bit.ly, so that doesn't help much. You'd have to have a UI that lets the user step through several redirections, but that would probably confuse people.
Re:Encoding your WiFi access point password into a QR code by 91iejrj20310 on Sunday December 29, 2019 @07:56AM (#21905657)
You're shifting responsibility from developers to the users. If reading a QR code triggers a bank transaction, that's an issue with the QR scanner and the banking application.

Users cannot check if a domain is "ok" by looking at it. You visit websites to discover what's there. A few years ago it was common knowledge that ".to" is shady and ".com" looks more legit. Now we have more TLDs than I can count. How is someone supposed to check that with visual inspection?

The way it should go: you scan a QR code. It gets interpreted into something useful that doesn't cause harm.

"Hey this QR would cause a 5€ transaction to Jon Doe. OK?" That's something the user can decide upon. payment://jon-doe:5€ doesn't help much.

(Edit: reading your post again, I realize it might be exactly what you have in mind)

Re:Encoding your WiFi access point password into a QR code by gpvos on Sunday December 29, 2019 @11:51AM (#21906875)
I was mostly thinking about URLs in untrusted contexts, like maybe from an ad you see on the street, that you want to screen by hand against malicious intent; not so much about things like your banking app example, which should always have some kind of confirmation anyway.
Re:Encoding your WiFi access point password into a QR code by 91iejrj20310 on Sunday December 29, 2019 @04:43PM (#21908723)
It really shouldn't matter to the browser what URL you enter. Maybe it's not the page you're looking for. But opening a website itself should cause no harm.

Just compare with today's internet advertising. Legit websites are still full of somewhat malicious ads. And users click on it - of course, since that's what a website is for.

What I'm trying to make clear is that there is no such case where QR scanners, browsers or application may consider a safe context where the user implicitly consents with malicious actions by the QR/website/...

Re:Encoding your WiFi access point password into a QR code by Fnoord on Monday December 30, 2019 @04:30PM (#21916880)
> It really shouldn't matter to the browser what URL you enter.

In a world where browsers are vulnerable to remote code execution, and a world where users do not run the latest version of a browser, and in a world where zero days exist in browers, it absolutely does matter.

Re:Encoding your WiFi access point password into a QR code by ThePowerOfFuet on Sunday December 29, 2019 @08:46AM (#21905850)
Qrafter on iOS has exactly that UI, which is why I use it.
Re:Encoding your WiFi access point password into a QR code by gpvos on Sunday December 29, 2019 @11:41AM (#21906796)
If anyone knows of an equivalent on Android (preferably available on F-Droid), I'm all ears.
Re:Encoding your WiFi access point password into a QR code by 40four on Sunday December 29, 2019 @04:40PM (#21908708)
I recommend “Privacy Friendly QR Scanner” (https://github.com/SecUSo/privacy-friendly-qr-scanner) by the SECUSO group, who specialize in apps that respect user privacy.

Worked great for me on my last phone, and peace of mind knowing you aren’t being tracked.

Available to download on fdroid or the play store.

https://github.com/SecUSo

Re:Encoding your WiFi access point password into a QR code by mytdi on Monday December 30, 2019 @01:35PM (#21915571)
SecScanQR shows you the URL and lets you decide if you want to open it or not. It's on F-Droid. https://f-droid.org/en/packages/de.t_dankworth.secscanqr/
Re:Encoding your WiFi access point password into a QR code by BiteCode_dev on Sunday December 29, 2019 @06:23AM (#21905351)
No more than regular url written in a paper. People write them blindly anyway, they don't know what it means nor how to read it.

But QR code are not just for URL, they can contain up to 7k, which is a lot for text and numbers. And you can have several of them, use compression, etc.

Re:Encoding your WiFi access point password into a QR code by ryder9 on Sunday December 29, 2019 @08:30AM (#21905780)
Because urls have letters & words in english that I can read and determine if the website is authentic or not as opposed to QR code that no human can read?

Have you never come across phishing scams that looked eerily authentic only to be clued in by the fake url? I can read the URL before going to the website, and unless QR codes have a step where you have to manually confirm going to the url provided by the code (most don't) then that's a security risk

Re:Encoding your WiFi access point password into a QR code by BiteCode_dev on Sunday December 29, 2019 @08:44AM (#21905846)
Qr code readers show you the url, you have push a button to navigate to it. So it's no different than having it copied manually.

Not that it matters much for most users, as I said earlier, they blindly type url. They have no idea what it is.

You could put a warning saying "are you sure, this is going to kill your mother and steal all your money" and people would click on it if it's easy to do.

Re:Encoding your WiFi access point password into a QR code by tialaramex on Sunday December 29, 2019 @05:37PM (#21909094)
Microsoft did that research. Well, they didn't propose to kill anybody's mother but the test participants used their real bank credentials and Microsoft tested different behaviours in IE to see what would deter users from giving these credentials to a bogus site having accepted a task to log in and perform some basic operation.

Nothing.

Nothing deterred the users. Warning dialogs were clicked past, obvious problems or mismatched information was ignored. The only way to stop users from giving their credentials to bad guys was what I call Brick Wall UX. The browser has to stubbornly refuse to let you do it. Unable to complete their task the user at last gives up.

This is a teachable moment. Your users are probably not going to be smarter, better informed or more cautious at least on average than in this test.

Re:Encoding your WiFi access point password into a QR code by Arbalest on Sunday December 29, 2019 @06:56PM (#21909542)
This sounds like something which should be continuously tested, as a litmus test as to how careful people are. I don't suppose you have a link or pointed search terms for this instance?
Re:Encoding your WiFi access point password into a QR code by reaperducer on Sunday December 29, 2019 @10:57AM (#21906501)
Because urls have letters & words in english that I can read and determine if the website is authentic

You must have some super-human ability to read a computer's mind if you can grok the kind of urls that usually come in emails like https://tinyurl.com/uvc58uq

Re:Encoding your WiFi access point password into a QR code by hunter2_ on Sunday December 29, 2019 @11:46AM (#21906844)
You can see what the tinyurl redirect destination URL is (value of Location response header) without also requesting that URL. Not with a typical browser configuration, but with curl or some hosted solution delivering this functionality.

Of course, if the email actually has a unique URL per recipient, then doing this gives away the fact that you interacted with the email.

Re:Encoding your WiFi access point password into a QR code by lopmotr on Sunday December 29, 2019 @02:09PM (#21907769)
Clicking a link can't infect your computer with a virus anymore. As long as any vulnerabilities in QR scanner apps are reliably patched, it should be just as safe as clicking a link. There are zero-days, but that risk exists any time you're connected to the internet anyway.

The cost and risk of putting a sticker on a wall is much greater that that of sending a spam email. Legitimate advertisers already hire people for >$0 to do that. Illegitimate ones risk personal criminal prosecution because they have to be physically present.

Re:Encoding your WiFi access point password into a QR code by retpirato on Sunday December 29, 2019 @05:33PM (#21909065)
plenty of scanners allow you to decode a code & show the url or whatever is encoded in it without opening the link & give you options so I wouldn't be concerned at all.
Re:Encoding your WiFi access point password into a QR code by dnpp123 on Sunday December 29, 2019 @06:36AM (#21905393)
Use bit.ly it's quicker ;)