by ykat7 on 7/12/21, 10:56 AM with 98 comments
by jefftk on 7/12/21, 6:27 PM
For the people wondering what the motivation is, https://www.w3.org/TR/fetch-metadata/#intro has a good summary:
Interesting web applications generally end up with a large number of web-exposed endpoints that might reveal sensitive data about a user, or take action on a user’s behalf. Since users' browsers can be easily convinced to make requests to those endpoints, and to include the users' ambient credentials (cookies, privileged position on an intranet, etc), applications need to be very careful about the way those endpoints work in order to avoid abuse.
Being careful turns out to be hard in some cases ("simple" CSRF), and practically impossible in others (cross-site search, timing attacks, etc). The latter category includes timing attacks based on the server-side processing necessary to generate certain responses, and length measurements (both via web-facing timing attacks and passive network attackers).
It would be helpful if servers could make more intelligent decisions about whether or not to respond to a given request based on the way that it’s made in order to mitigate the latter category. For example, it seems pretty unlikely that a "Transfer all my money" endpoint on a bank’s server would expect to be referenced from an img tag, and likewise unlikely that evil.com is going to be making any legitimate requests whatsoever. Ideally, the server could reject these requests a priori rather than delivering them to the application backend.
Here, we describe a mechanism by which user agents can enable this kind of decision-making by adding additional context to outgoing requests. By delivering metadata to a server in a set of fetch metadata headers, we enable applications to quickly reject requests based on testing a set of preconditions. That work can even be lifted up above the application layer (to reverse proxies, CDNs, etc) if desired.
by anonymfus on 7/12/21, 12:54 PM
by wronex on 7/12/21, 11:57 AM
by ec109685 on 7/12/21, 4:06 PM
> Hence the banking server or generally web application servers will most likely simply execute any action received and allow the attack to launch.
While these are useful headers, there are protections today via XSRF tokens to prevent these attacks that all major sites implement, so it isn’t likely your bank is vulnerable.
by ajb on 7/12/21, 8:48 PM
by gentleman11 on 7/12/21, 4:32 PM
by amluto on 7/12/21, 3:02 PM
by mousepilot on 7/13/21, 3:03 PM
I went with the long term support releases and have had a better experience. Course, still no sound lol but I use Chrome when I want sound. I still like Firefox, just can't use recent releases.
by rob-olmos on 7/12/21, 7:51 PM
https://web.dev/fetch-metadata/#step-5:-reject-all-other-req...
by TazeTSchnitzel on 7/12/21, 3:16 PM
by barbazoo on 7/12/21, 3:45 PM
by AtNightWeCode on 7/12/21, 6:40 PM
by forgotmypw17 on 7/12/21, 9:39 PM
I've been following their work pretty closely, but I'm at a loss trying to think of anything...