うぴょりっくソフトUPYOLIC SOFT

COLUMN

Browsers and the “secret URL”

Based on an access log that was actually recorded on UPYOLIC SOFT’s server, here is what we learned about the risk of relying on a “unique URL that no one else can guess” for sharing files. We hope it is useful for web developers and for anyone who uses file-sending services.

What happened

Our circle used to share large files among staff with a small in-house web app (UPYOLIC File Express): we emailed a unique URL to the recipient, and opening that URL let them download the file. The URL was long and random, built on the assumption that only the recipient would ever know it.

While reviewing the logs, however, we found that about two and a half hours after the recipient downloaded the file, the very same URL — which no one but the recipient should have known — was accessed from a Microsoft IP address.

First, the recipient’s own access (partly masked for privacy):

softbankXXXXXXXXXXXX.bbtec.net - - [06/Aug/2009:00:02:12 +0900] "GET /fe/?ufeid=4bc1b2287e66fbd0ca80325cc9b74d91 HTTP/1.1" 200 3855 "http://XXXXXX/" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; YTB720; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; YJSG3)"
softbankXXXXXXXXXXXX.bbtec.net - - [06/Aug/2009:00:02:18 +0900] "GET /fe/?ufeid=4bc1b2287e66fbd0ca80325cc9b74d91 HTTP/1.1" 200 54605205 "https://mac.upyolic.com/fe/?ufeid=4bc1b2287e66fbd0ca80325cc9b74d91" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; YTB720; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; YJSG3)"

And the access about two and a half hours later (the source is public information, so the log is shown exactly as recorded):

207.46.164.16 - - [06/Aug/2009:02:29:08 +0900] "GET /fe?ufeid=4bc1b2287e66fbd0ca80325cc9b74d91 HTTP/1.1" 301 274 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)"
207.46.164.16 - - [06/Aug/2009:02:29:08 +0900] "GET /fe/?ufeid=4bc1b2287e66fbd0ca80325cc9b74d91 HTTP/1.1" 200 3855 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)"

A WHOIS lookup showed that the source, 207.46.164.16 (and 207.46.164.19), is an IP address used by Microsoft.

Why Microsoft knew the “secret” URL

The Internet Explorer of that era had a feature that sent the URLs you visited to Microsoft’s servers to check whether the page was safe (the Phishing Filter, later the SmartScreen Filter). This access was most likely the same mechanism: the URL opened by the recipient’s IE was sent to Microsoft, which then accessed it afterward to check it.

In other words, this was not necessarily a malicious “wiretap.” Rather, as a browser safety feature, the URL of a page you view can be sent to an outside server. Still, whatever the intent, the result remains: a URL that only the recipient should have known had also reached a third party — in this case, Microsoft.

What we can learn from this (practical takeaways)

  • Do not make an “unguessable URL” your only key. Depending on the recipient’s browser or extensions, the URL may be sent elsewhere. For anything you truly want kept private, do not rely on secrecy of the URL alone — combine it with a password or authentication, a short expiry, and invalidation after download.
  • Web developers: take care when opening “URLs you’d rather not be seen,” such as admin pages, in a browser. Avoid checking them in an unprotected hidden directory; protect them with Basic authentication or IP restrictions.
  • Check your browser settings. This kind of sending depends on browser settings. It is worth reviewing each browser’s options for “sending browsing data” and “Safe Browsing / SmartScreen.”

For these reasons, our circle designs file sharing so that it does not rely on the secrecy of a URL alone, and we configure features that may send browsing data to the outside with an eye on the balance between necessity and privacy.

Note: This article is based on the logs from that time and on our circle’s interpretation, and makes no definitive claim about any particular company’s current products or specifications.