Now there is a five-attempt limit, but the server counts attempts by the IP in the X-Forwarded-For header, which the client sends. Change it each request and you get a fresh counter, so the limit never bites.
The same verify screen, but the server limits attempts by X-Forwarded-For. That header is client-controlled, so rotating it grants a fresh counter each time.
You rotated the header, bypassed the limit and guessed the code.
Why the solution worked
The limit key was a client-controlled header, so it is worthless because the attacker forges it. The rule is that the limit key must be something the client does not control, like the account or the server-trusted network address.
The root cause
The limit key is a client-controlled header. The root is trusting a client value to pick the rate bucket.
How the code is fixed
Key the limit on something the client cannot control: the account or the trusted peer address.
Vulnerable code
const key = req.headers['x-forwarded-for'] || 'default'; // client-controlled
Safe code
const key = req.user?.id ?? req.socket.remoteAddress; // account, or the real peer address
Impact in the real world
Forging the IP header bypasses rate limits in many systems and reopens guessing and flooding.
How defenders detect it
Defenders count by account or the server-trusted network address and alert on many IP-header values from one source.
Your workspace now has a Server logs tab: your own attack, as the defender saw it, with the alerting lines marked.
Solved with the walkthrough. Put it aside and solve again to earn the feather.