Google WebSub is DoSing Me
Tags: rss
Published: 2022-05-12 14:24:13

---
title: Google WebSub is DoSing Me
published: true
date: 2022-05-08 11:56:00 UTC
tags: RSS
canonical_url: https://kevincox.ca/2022/05/08/google-websub-dos/
---

<main><p>Running <a href="https://feedmail.org">a feed reader</a> is an interesting business. One of the more interesting problems I have seen is this “<abbr title="Denial of Service">DoS</abbr>” from <a href="https://pubsubhubbub.appspot.com/">Google’s WebSub Hub</a>.</p>
<p>This is a graph of <a href="https://www.w3.org/TR/websub/">WebSub</a> pings for a <a href="https://www.blogger.com/feeds/2471378914199150966/posts/default">single feed</a>, <a href="https://blog.chromium.org/">The Chromium Blog</a>. This blog appears to be powered by Blogger.</p>
<p><img src="https://cloudflare-ipfs.com/ipfs/QmUtC5douNjyVTGo2XTLaU6wY6t74MBUzNeDKi9vJxWrDe/websub-dos.svg" alt="graph of burst request traffic" crossorigin=""></p>
<p>This isn’t a ton of traffic, the peaks hover around one request every 10 s. However, it adds up when the bursts run for days.</p>
<p>The number of entries in the ping varies and is bimodal. It is usually around 20 (Blogger appears to keep 25 items in the feed) but often 1 or 2. Occasionally it is somewhere in the middle. In general <a href="https://www.w3.org/TR/websub/#x7-content-distribution">WebSub hubs will remove already-delivered entries from the feed</a>. However, in this case all the items are previously seen. (Maybe they are modified? I don’t have metrics for this yet.)</p>
<p>Most of the bursts start because a new entry is posted. Some bursts start with no clear trigger. I have yet to see a post that doesn’t have a burst associated. These bursts then continue until the WebSub subscription expires.</p>
<p>FeedMail is subscribed to hundreds of WebSub feeds via <a href="https://pubsubhubbub.appspot.com/">pubsubhubbub.appspot.com</a> and dozens of Blogger feeds. However only this one has this problem.</p>
<p>Looking at the <a href="https://pubsubhubbub.appspot.com/subscribe">subscription debugging page</a> I can see that there is often a 504 error in the past day. Even if this did happen, (which seems unlikely but is definitely possible) why would the retries continue constantly? Especially since the same page says that feedmail.org has 0% errors! According to our monitoring the slowest response to these pings in the last 60 days was less than 4 s and the P99.9 is under 350 ms. There is a chance that our CDN, or a bug, prevents the request from completing. But this seems unlikely seeing that every other feed works correctly.</p>
<p>Is someone just updating posts every couple of seconds for a week after posting? I think this is unlikely. If this was the case why would the pings stop when the subscription was refreshed? If it was actual updates I would expect that the new subscription immediately started seeing the same traffic.</p>
<p>The strangest part is that it is just this one feed. It has been going on for a long time and happens every new post (and sometimes between posts). I don’t know if this blog has some special handling in the hub (<a href="https://kevincox.ca/2021/12/16/youtube-websub/#implementation-curiosity">YouTube does</a>, so it isn’t out of the question).</p>
<p>Anyway, I don’t really have a point here, it is really just a curiosity. It does waste a bit of resources, but it isn’t going to take us down. (At least not until <em>every</em> Blogger feed starts doing this 😅).</p></main>