News for hackers. Stuff that matters.
Re:The .zip TLD sucks and it needs to be immediately revoked by eganist on Friday May 12, 2023 @03:16PM (#35920904)
For those having a hard time fathoming it, here's a rather simple attack case:

someone types "product.zip" into the address bar thinking the browser will automatically google it because of course it's not a valid domain name

but it turns out product.zip is a valid domain name, and it masquerades either as the product's webpage or as a delivery vector for other payloads.

---

I've mistyped search terms with periods in them and seen the browser try to route me to an invalid domain, so this isn't beyond the realm of reason.

---

edit: xsmasher below came up with a much more obvious attack case that deserves a read.

Re:The .zip TLD sucks and it needs to be immediately revoked by Taywee on Friday May 12, 2023 @03:26PM (#35921037)
I get it, but I don't agree that the defense is having a smaller number of tldns. I think the problem is with an omnibar in the first place, because it has to heuristically guess what you want. I preferred having a separate search bar from address bar.

For a technical professional, I fight with the behavior of my web browser's address bar far more often than I really think I should. Maybe the average person would be far better served if the browser only assumed you meant a URL if you explicitly included a scheme, and otherwise just did a search.

Re:The .zip TLD sucks and it needs to be immediately revoked by dkarl on Friday May 12, 2023 @03:40PM (#35921260)
The omnibar is a mixed bag from a usability standpoint. It favors the bold and confuses the meek. For some non-expert users, they eagerly mash in whatever they want, without understanding that the browser treats "hot women near me" differently from "amazon.com". For other non-expert users, they see domain names and big scary URLs in the omnibar and are scared to type anything into it that isn't an "official" web site address.
Re:The .zip TLD sucks and it needs to be immediately revoked by munk-a on Friday May 12, 2023 @04:03PM (#35921565)
I'm pretty certain that's why my slightly dyslexic grandfather accidentally ordered two dozen hot grills from amazon.
Re:The .zip TLD sucks and it needs to be immediately revoked by lupire on Friday May 12, 2023 @03:33PM (#35921157)
Computers should serve humans, not vice versa.
Re:The .zip TLD sucks and it needs to be immediately revoked by xsmasher on Friday May 12, 2023 @03:36PM (#35921194)
I assume the attack case case was sending a mail that says "I have attached product.zip to this email" but product.zip becomes a link to the web because the email client is too smart.

What you think is an attachment from a trusted source is actually a link to the web.

Re:The .zip TLD sucks and it needs to be immediately revoked by eganist on Friday May 12, 2023 @03:39PM (#35921250)
Wow, I love/hate this attack case far more.
Re:The .zip TLD sucks and it needs to be immediately revoked by eli on Friday May 12, 2023 @04:07PM (#35921625)
But can't you already hyperlink product.zip to any URL?
Re:The .zip TLD sucks and it needs to be immediately revoked by yonatan8070 on Friday May 12, 2023 @04:42PM (#35922102)
This is my primary gripe with this whole thread, in most cases where abc.zip would become a link, you could just as well hyperlink it to anything, like in an email, a web page, or a markdown document
Re:The .zip TLD sucks and it needs to be immediately revoked by kpw94 on Friday May 12, 2023 @05:52PM (#35922949)
The difference is the malicious actor and the email sender don't have to be the same person.

A malicious user can craft an email "this is [abc.zip](http://very-bad-website)". Ok nothing new here.

But a non-malicious, who's emailing their mom: "I've attached abc.zip" (and put a abc.zip as attachment).

Here the problem here is a malicious other user has registered abc.zip to download a virus, and the mom's email client highlight abc.zip, and she clicks on it instead of the abc.zip attachment.

Re:The .zip TLD sucks and it needs to be immediately revoked by reqrbHVPetKGE57 on Tuesday May 23, 2023 @04:41PM (#36050583)
Yes, auto-vivification of links is bad.
Re:The .zip TLD sucks and it needs to be immediately revoked by eganist on Friday May 12, 2023 @04:33PM (#35921981)
there's a certain plausibility to the idea that some folks were trained to hover over a link and see where it goes as part of anti-phishing training, but that a fraction of them may hover over the link, see product.zip anyway, and just click it because they don't have the context to understand why that would be a terrible link.
Re:The .zip TLD sucks and it needs to be immediately revoked by reqrbHVPetKGE57 on Tuesday May 23, 2023 @04:42PM (#36050590)
They can't understand that product.zip is a terrible link, but they can understand that perfectlysafewebsite.com/product.zip is a terrible link???
Re:The .zip TLD sucks and it needs to be immediately revoked by meindnoch on Friday May 12, 2023 @04:45PM (#35922138)
You're misunderstanding GP.

Your boss sends you this plaintext email:

  Hi!
  Please upload the photos as photos.zip to the company GDrive!
  Thanks,
  Boss
Your email client "helpfully" recognizes that "photos.zip" can be a TLD, so turns it automatically into a hyperlink. You click it because you think it's a link your boss intended to share with you, but you actually land on a site that pwns your browser with an exploit.
Re:The .zip TLD sucks and it needs to be immediately revoked by benatkin on Friday May 12, 2023 @05:05PM (#35922394)
That isn't GP's example. That's a separate one.

There are 3 - yours, GP's, and GGP's.

None of the three seem like serious attack vectors to me.

I'm still having trouble coming up with a legitimate attack vector so I think there must not be one. I am ready to change my mind when I see one though.

Re:The .zip TLD sucks and it needs to be immediately revoked by eganist on Saturday May 13, 2023 @12:12PM (#35929787)
> None of the three seem like serious attack vectors to me.

Why not?

Re:The .zip TLD sucks and it needs to be immediately revoked by reqrbHVPetKGE57 on Tuesday May 23, 2023 @04:41PM (#36050575)
Or, they could just send you this HTML email:

Hi! Please upload the photos as <a href="http://example.com/photos.zip">photos.zip</a> to the company GDrive!

So... what's new in your scenario?

Re:The .zip TLD sucks and it needs to be immediately revoked by zerocrates on Friday May 12, 2023 @05:10PM (#35922458)
I recognize that if the TLD doesn't exist in the first place then we aren't even asking the question, but if your email client auto-creates a confusing link isn't it the email client's fault?
Re:The .zip TLD sucks and it needs to be immediately revoked by 8organicbits on Friday May 12, 2023 @03:33PM (#35921150)
Or similarly, the domain doesn't exist and the user sees an error page. They may assume their search engine is down.
Re:The .zip TLD sucks and it needs to be immediately revoked by whalesalad on Friday May 12, 2023 @03:24PM (#35921017)
ok, giving you props on coming up with a valid scenario here but in what world is someone trying to search for product.zip? Maybe my tech-illiterate boomer mom who would ask google to find a file on her desktop called product.zip but is that a case we want to optimize our TLDs for?
Re:The .zip TLD sucks and it needs to be immediately revoked by xboxnolifes on Friday May 12, 2023 @03:41PM (#35921275)
I don't search for zips, but searching like this is pretty good for finding pdfs.

If you were looking for a zip and knew with good chance it's on the internet, why not?

Re:The .zip TLD sucks and it needs to be immediately revoked by pphysch on Friday May 12, 2023 @04:00PM (#35921526)
PDF is special for a dozen reasons.

Googling for "product.zip" makes no sense. Unless it's an actual website.

Re:The .zip TLD sucks and it needs to be immediately revoked by recursive on Friday May 12, 2023 @04:45PM (#35922148)
zip is special for a dozen other reasons.

It makes sense to me if you're looking for a portable deployment without an installer.

Re:The .zip TLD sucks and it needs to be immediately revoked by pphysch on Friday May 12, 2023 @07:24PM (#35923773)
Can you give an example of where you would want to ask the internet for opaque zip files to execute instead of using official downloads?

E.g. why would you prefer "zoom.zip" over "install zoom" query?

Re:The .zip TLD sucks and it needs to be immediately revoked by recursive on Friday May 12, 2023 @08:09PM (#35924065)
Official downloads are generally opaque files. These aren't different things.

> why would you prefer "zoom.zip" over "install zoom" query?

Why shouldn't I? This isn't a question about figuring out the optimal search terms. But anyway. The mainline installer probably... installs it. In this scenario, I want a portable deployment, maybe because I lack permissions on this machine.

Re:The .zip TLD sucks and it needs to be immediately revoked by eganist on Friday May 12, 2023 @03:26PM (#35921038)
> Maybe my tech-illiterate boomer mom who would ask google to find a file on her desktop called product.zip but is that a case we want to optimize our TLDs for?

What percentage of the population is tech-illiterate?

maybe a single-digit percentage of HN, but the vast majority of the world even today can't find the control panel on Windows. And anecdata from school systems suggests that consumption-focused devices are regressing the next generation of users such that millenials and early gen-z are probably the peak of tech-literacy.