r/help • admin • Jan 14 '22

Admin Post Resolved: "Blocked" error when accessing reddit.com on Firefox

Hey all - we just reverted a change that resulted in reddit.com being blocked on Firefox for about 20 minutes.

All should be back to normal, but please let me know in this thread if you continue to see any errors.


Incident summary from u/PetGorignac:

Hi folks,

I was the incident commander for this one and came by to drop a bit of information about what happened here.

We were attempting to mitigate some problematic traffic that had been causing a low amount of site errors over the past few hours. In doing so, we identified some traffic characteristics that we believed correlated with the error rate and attempted to block it. It turns out this blocked Firefox traffic, which we noticed relatively quickly, leading us to revert the change.

Apologies for the disruption!

127 Upvotes

101 comments sorted by

View all comments

20

u/PetGorignac Jan 14 '22

Hi folks,

I was the incident commander for this one and came by to drop a bit of information about what happened here.

We were attempting to mitigate some problematic traffic that had been causing a low amount of site errors over the past few hours. In doing so, we identified some traffic characteristics that we believed correlated with the error rate and attempted to block it. It turns out this blocked Firefox traffic, which we noticed relatively quickly, leading us to revert the change.

Apologies for the disruption!

(Also kudos to the commentor who had a great RCA, but sadly the comment got deleted before I could respond)

15

u/Merari01 Jan 14 '22

Please post this to r/shittychangelog

4

u/[deleted] Jan 14 '22

Seriously.

→ More replies (1)

4

u/Eldermuerto Jan 14 '22

git commit -m “Site has error with browser. Blocking entire browser #Fixed”

git push origin master

2

u/PetGorignac Jan 14 '22

Tsk tsk you should be doing your local dev work on a different branch than master! Wouldn't want to accidentally push to prod before code review...

5

u/nicolas-siplis Jan 14 '22

OK honestly this just makes me even more curious. What traffic patterns are you noticing that would block Firefox requests exclusively, but not those made via cURL/Postman with the exact same headers? Can you go a bit more into detail here or is it too sensitive to discuss?

7

u/PetGorignac Jan 14 '22

Unfortunately, I think I can't really expand on this much more as traffic management techniques are too abuse-adjacent

6

u/nicolas-siplis Jan 14 '22 edited Jan 14 '22

Completely understandable! Sucks that security through obscurity is sometimes the most viable option, but glad to see you guys being quick on a fix.

3

u/haykam821 Jan 15 '22

Too much road rage nowadays.

3

u/fluffycritter Jan 14 '22

I'm very curious about this as well. My assumption was that it was something to do with the HTTP transport itself, like maybe there's one pervasive bot behavior that happens to exhibit the same timing or header ordering or something as Firefox.

Or maybe what they thought was an error rate due to bots was actually an error rate due to an HTTP spec violation/assumption on Reddit's side that was causing increased issues with Firefox.

3

u/nicolas-siplis Jan 14 '22

My assumption was that it was something to do with the HTTP transport itself, like maybe there's one pervasive bot behavior that happens to exhibit the same timing or header ordering or something as Firefox.

But in that case wouldn't cURL requests copied from Firefox itself not work as well? I really hope the devs can chime in with some more info, otherwise I'm gonna spend the next few hours scratching my head trying to play digital Sherlock Holmes D:

3

u/fluffycritter Jan 14 '22 edited Jan 14 '22

Nah, "copy as cURL" would still be using cURL's HTTP transport stuff. There's more to HTTP packet analysis than just the headers.

(Edited for clarity and better phrasing)

5

u/connasse-en-viarge Jan 14 '22

This right here is the only thing on Reddit that has inspired me to reply to it. Ever. In the entire history of my use of Reddit. Somebody get this being a Bitcoin. I'd give it to you myself, but mine all fell down the back of the couch.

3

u/nicolas-siplis Jan 14 '22 edited Jan 14 '22

I tried to think of what other differences could lie between cURL's and Firefox's request and the only thing that seemed relevant was the CA store used by each: https://old.reddit.com/r/help/comments/s4095g/resolved_blocked_error_when_accessing_redditcom/hso1jpo/

→ More replies (4)

2

u/6pointzen Jan 14 '22

When I was checking on my end I could see that some of the fields in the request header were different between Chrome and Firefox I couldn't check them all as I refreshed the page and it was working again.

2

u/nicolas-siplis Jan 14 '22 edited Jan 14 '22

But that's actually expected. The simplest example would be the User-Agent header, which tells Reddit's backend which browser is making the request so barring spoofing it will obviously be different between Firefox and Chrome. The super weird thing is that the same exact request sent through Firefox and cURL failed in the former but not in the latter!

→ More replies (2)

2

u/Pristine-Woodpecker Jan 14 '22

From the analysis in the Firefox bug tracker, it was related to cipersuite selection, which differs between the browsers (including Edge/Chrome) and curl/openSSL.

→ More replies (5)

3

u/TaraBaraBoo Jan 14 '22

You're awesome, and I'm so impressed that you are open about this, it just makes me love Reddit even more!

2

u/Acclocit Jan 14 '22

Thanks, still curious about what the characteristics you blocked were though.

2

u/[deleted] Jan 14 '22

Thanks for the update.

2

u/flash357 Jan 14 '22

LOL

WHOOPSIE!

cant pull the plug on us like that jefe!

we were in panic mode!

🤣🤣🤣

→ More replies (6)