Implementing Google Safe Browsing server-side to sanitize untrusted input
codeascraft.etsy.com
Implementing Google Safe Browsing server-side to sanitize untrusted input
1–10 of 11 posts
Re: Implementing Google Safe Browsing server-side to sanitize untrusted input
#2Re: Implementing Google Safe Browsing server-side to sanitize untrusted input
#3Privacy implications?
Re: Implementing Google Safe Browsing server-side to sanitize untrusted input
#4Does Etsy accept url shorteners? Including some that allow editing? Is it feasible to rewrite the content to have the redirected URLs?
Re: Implementing Google Safe Browsing server-side to sanitize untrusted input
#5Privacy implications?
Re: Implementing Google Safe Browsing server-side to sanitize untrusted input
#6Interesting idea. There are some extra challenges when the scanning is not done live. Does Etsy accept url shorteners? Including some that allow editing? Is it feasible to rewrite the content to have the redirected URLs?
Re: Implementing Google Safe Browsing server-side to sanitize untrusted input
#7Interesting idea. There are some extra challenges when the scanning is not done live. Does Etsy accept url shorteners? Including some that allow editing? Is it feasible to rewrite the content to have the redirected URLs?
We "unroll" redirects as much as possible so that we can check the URL at the end.
Re: Implementing Google Safe Browsing server-side to sanitize untrusted input
#8Earlier quoted context omitted.
We "unroll" redirects as much as possible so that we can check the URL at the end.
In the sense of following them, or rewriting them as well?
Re: Implementing Google Safe Browsing server-side to sanitize untrusted input
#9Earlier quoted context omitted.
In the sense of following them, or rewriting them as well?
We follow them on the server side and check the final URL we get to against the GSB database. We don't modify the user-generated content.
if (is_etsy_ip()) header('Location: http://www.google.com/') && die();Re: Implementing Google Safe Browsing server-side to sanitize untrusted input
#10Earlier quoted context omitted.
We follow them on the server side and check the final URL we get to against the GSB database. We don't modify the user-generated content.
I assume you check each step of the unrolling? Otherwise a malicious site could easily do: if (is_etsy_ip()) header('Location: http://www.google.com/') && die();
Customising attacks for a given site specifically adds complexity and cost to the attack, which is really the aim for all of this sort of work. Everything you can do to drive up the cost of the attack makes you a less inviting target.
It would be a mistake to think that usb4ugc (or tools like it) would protect everyone all the time. It's never a replacement for vigilance and education on the user-side, just a useful extra line of defense.