<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>rate-limiting on krtffl.dev</title>
    <link>https://krtffl.dev/tags/rate-limiting/</link>
    <description>Recent content in rate-limiting on krtffl.dev</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <copyright>© [krtffl](https://krtffl.dev)</copyright>
    <lastBuildDate>Mon, 22 Dec 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://krtffl.dev/tags/rate-limiting/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>your rate limiter trusts x-forwarded-for. mine did too, until it was measured.</title>
      <link>https://krtffl.dev/posts/x-forwarded-for-rate-limit-bypass/</link>
      <pubDate>Mon, 22 Dec 2025 00:00:00 +0000</pubDate>
      
      <guid>https://krtffl.dev/posts/x-forwarded-for-rate-limit-bypass/</guid>
      <description>&lt;p&gt;last time i told you about &lt;a href=&#34;https://krtffl.dev/posts/elo-lost-update-postgres&#34;&gt;the elo race that ate 79% of every vote&lt;/a&gt;
 — the anchor finding from a pre-launch hardening pass on a little pairwise-voting side project. i promised, at the bottom of that post, that the &lt;em&gt;other&lt;/em&gt; critical finding was a vote rate-limiter that a rotated header walked straight through. this is that post.&lt;/p&gt;
&lt;p&gt;here&amp;rsquo;s the setup. the side project is a nougat-ranking toy: you get shown two flavours, you pick one, an elo rating moves, a leaderboard falls out. because the leaderboard is the entire point, the interesting attack is obvious — cast a pile of votes for your favourite and bend the ranking. so i&amp;rsquo;d put a rate limiter in front of it. two, actually. i felt responsible.&lt;/p&gt;
&lt;p&gt;then, during the audit, i sat down and &lt;em&gt;attacked&lt;/em&gt; them instead of admiring them. both fell over. one to a header i let the open internet write. one to a cookie i simply didn&amp;rsquo;t send. neither took more than a few lines of &lt;code&gt;curl&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;a limiter you have never fired a spoofed header at is not a limiter. it&amp;rsquo;s a comment.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
