News for hackers. Stuff that matters.
Re:Gmail is opening and caching URLs within emails without u... by rrjanbiah on Friday August 20, 2021 @10:05AM (#28246118)
Here's a quick PoC:

  <link rel="prefetch" href="/actual_validate/email/1d00a5c2648c211befd33f5a8a7cbfab?prefetch=1">

  <script>
   location.href = "/actual_validate/email/1d00a5c2648c211befd33f5a8a7cbfab?js=1";
  </script>
  <noscript>
   <a href="/actual_validate/email/1d00a5c2648c211befd33f5a8a7cbfab?js=0" rel="nofollow" class="btn btn-primary" role="button">Click to confirm your account</a>
  </noscript>
Re:Gmail is opening and caching URLs within emails without u... by obuda on Friday August 20, 2021 @10:22AM (#28246354)
Why the prefetch though? Reason being bots don't open them? If so, this is a really good idea!
Re:Gmail is opening and caching URLs within emails without u... by eyelidlessness on Friday August 20, 2021 @11:05AM (#28246858)
It’s likely faster for the noscript case.
Re:Gmail is opening and caching URLs within emails without u... by obuda on Friday August 20, 2021 @11:21AM (#28247061)
Yeah, I don't know about that. Wouldn't it be that the query strings differentiate the two links?

I assume so, because of an old trick where query strings are used for ad-hoc cache control as in /style.css?1629472765

Re:Gmail is opening and caching URLs within emails without u... by eyelidlessness on Saturday August 21, 2021 @02:19AM (#28254699)
You’re right, I wasn’t paying close enough attention. That’s what I get for reading HN mostly on my phone!
Re:Gmail is opening and caching URLs within emails without u... by rrjanbiah on Friday August 20, 2021 @12:22PM (#28247824)
Query string is to differentiate the links (to understand which case is getting triggered)
Re:Gmail is opening and caching URLs within emails without u... by obuda on Friday August 20, 2021 @12:40PM (#28248084)
OK, but then the prefetch link as it stands is useless, no?