Skip to content
DoS Audit finding Beginner

Any account can exhaust the email-verification rate limit for an address it does not own, blocking that address's verification for an hour

The email-verification rate limiter was keyed on the email address being verified rather than on the requesting account, so any logged-in user could spend another person's send budget by naming their address. The address owner was then refused verification for an hour, and the attacker could renew the block indefinitely with three requests per hour.

crypt0n1337 Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

92792 w a low any account can exhaust the email verification rate limit for an address it does not own blocking that address s verification for an hour

Submitted on Sep 12th 2026 at 10:32:20 UTC by @crypt0n1337 for Audit Competition | ENS

Description

Brief/Intro

The API worker's email-verification rate limiter is keyed on the address being verified, not on the account making the request:

workers/api-worker/src/services/notifications/email-verification-rate-limit.ts:29-30
KV_KEY.NOTIFICATIONS.EMAIL_VERIFICATION(normalizeEmailForRateLimit(email))
  ->  notifications:email-verification:<email>

with EMAIL_VERIFICATION_RATE_LIMIT_MAX_SENDS = 3 per window. The counter is consumed by the two routes that send verification mail (app/routes/notifications/channels/email.ts:126 and app/routes/notifications/channels/$id.ts:173) and neither the key nor the consumption carries the requesting user_id. Any account — a free SIWE login — can therefore spend another person's budget by naming their address, and the person whose address it is is then refused.

Executed evidence

The real worker routes were driven in process (real Hono app, real rate limiter, real KV binding substituted only at the binding boundary, real SendGrid mail builder replaced by a counting stub). Verbatim from the run:

[B1] key written = ["notifications:email-verification:[email protected]" ×3, …someone.else…]
[B1] victim-facing string = Too many verification emails sent to this address. Try again in 60 minutes.

[B2] attacker request 1 -> 200, one verification mail addressed to [email protected]
[B2] attacker request 2 -> 200, one verification mail addressed to [email protected]
[B2] attacker request 3 -> 200, one verification mail addressed to [email protected]
[B2] victim request    -> 429 {"error":"Too many verification emails sent to this address. Try again in 60 minutes."}
[B2] mails actually sent to the victim's address on the victim's own request: 0

The window is clock-driven KV state, so the attacker can renew it: three requests per hour keep the victim's address permanently refused. The victim has no way to distinguish this from a transient error, and the refusal is identical in shape to the refusal the address owner would legitimately see.

Why this is not the previously-closed email root

An earlier submission on this account concerned a different decision in a neighbouring file — an unauthenticated verification route resolving a channel by token (the "pre-claim" root). This report is about the limiter's key: the counter is bound to the address instead of the requester, so the defect lives in email-verification-rate-limit.ts, and its consequence is a lockout, not a channel claim. The files, the decision and the effect are all different, and fixing the pre-claim root would not fix this one.

Impact Details

  • A victim is temporarily denied a feature of the target application by anyone who knows their email address: their own verification request is refused for at least an hour, renewable without limit, so a determined attacker can keep it refused indefinitely.
  • No mail reaches the victim during the window, so the victim cannot complete verification by retrying.
  • The attacker needs nothing beyond an ordinary account: no wallet interaction by the victim, no cooperation, no access to their inbox.
  • Side effect visible in the same run: the attacker's requests each cause a real verification email to be sent to the victim's address, so the victim also receives unsolicited mail authored by the attacker's actions.

Selected impact: Temporarily disabling user to access target site, such as: Locking up the victim's funds, cookies or browser storage, or temporarily blocking the victim's IP address.

Honest limits

  • The refusal is a delay, not damage: once the window lapses the victim verifies normally, and the state is not corrupted. A triager may therefore treat this as repairable rather than as the impact wording above, and may also argue that the limiter is intentionally shared as anti-spam protection. Those are the two arguments this report has to survive, and they are stated here rather than hidden.
  • The harness drives the real route modules in process with the KV, database handle, RPC client and outbound mail boundaries substituted; the substitution is documented in the run log.

Suggested fix

Key the limiter on the requesting principal together with the address — for example notifications:email-verification:<user_id>:<email> — or require the caller to prove control of the address before the counter is consumed.

Link to Proof of Concept

https://gist.github.com/crypt0b0y/6309c88665f894e374479fd2582834bb

Proof of Concept

Environment

  • Frozen repository revision: cda79acaad59711b943fc68207ebb3f1d0ff8596
  • Local only. The worker is driven in process — no deployed host is contacted, and no mail is sent to a real address (the SendGrid send path is replaced by a counting stub and the recipient is a reserved example address).
  • No existing repository file was modified; everything is additive under apps/portal/audit-artifacts/medium-low-hunt-20260912/.

How to reproduce

PowerShell
cd D:\Pentest\bb\ens-competition\workers\api-worker
.\node_modules\.bin\vitest.CMD run ..\..\apps\portal\audit-artifacts\medium-low-hunt-20260912\faucet-and-rate-limit.probe.test.ts

Suite result: 8 of 8 cases pass. Raw log: run-worker-probes.log in the same directory.

What is real and what is substituted

Real: the frozen worker's Hono application with its real routes, middleware, error handler and requireJWT/SIWE chain; the real rate-limiter module (services/notifications/email-verification-rate-limit.ts) with its real key construction and window logic; the real KV interface; the real channel-creation and verification handlers; the real Drizzle predicate trees (the fake store prints the SQL it would run).

Substituted, at the binding boundary only: the KV namespace implementation, the database handle, the RPC client, and the outbound SendGrid call (replaced by a stub that records the recipient and increments a counter). No route handler, limiter function, key constructor or predicate is re-implemented.

The defect, in code

TS
// workers/api-worker/src/services/notifications/email-verification-rate-limit.ts:29-30
const key = KV_KEY.NOTIFICATIONS.EMAIL_VERIFICATION(normalizeEmailForRateLimit(email))
// -> notifications:email-verification:<email>

// consumed by the two mail-sending routes, neither of which passes a user id:
// app/routes/notifications/channels/email.ts:126
// app/routes/notifications/channels/$id.ts:173

EMAIL_VERIFICATION_RATE_LIMIT_MAX_SENDS = 3 per window; the window is one hour.

Observed output (verbatim excerpts)

[B1] key written = ["notifications:email-verification:[email protected]" ×3, …someone.else…]
[B1] victim-facing string = Too many verification emails sent to this address. Try again in 60 minutes.

[B2] attacker request 1 -> 200  mail -> [email protected]  (send count 1)
[B2] attacker request 2 -> 200  mail -> [email protected]  (send count 2)
[B2] attacker request 3 -> 200  mail -> [email protected]  (send count 3)
[B2] victim   request   -> 429  {"error":"Too many verification emails sent to this address. Try again in 60 minutes."}
[B2] send count after the victim's own request: 3  (i.e. 0 mails for the victim)

[B3] after the hour window lapses (clock advanced in KV state):
     victim request -> 200, one mail to [email protected]

So the refusal is bound to the address, is renewable by the attacker at three requests per hour, and lapses only with the clock.

Controls in the same suite

  • A request from a different address under the same account is unaffected while the victim's key is exhausted (the limiter is per address, not per account), which is what shows the key is the address.
  • The SQL the store would run for the channel queries is printed and carries the JWT user_id (user_channels.user_id = $1 and …), so the route itself is correctly scoped — the defect is the limiter key, not an authorisation gap.

Limitations, stated plainly

  • The refusal is temporary and self-healing after the window; the attacker can renew it, but nothing is corrupted and nothing is stolen.
  • KV state is modelled at the binding boundary, so the exact expiry semantics depend on the binding's implementation (expirationTtl), which the harness reproduces from the worker's own call arguments.
  • No real email is sent anywhere in the reproduction.

The original report as published on Immunefi, by crypt0n1337. Images and videos are our own copies; raw HTML is shown as text. View it on Immunefi.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 7 min read.

Context

This report (#92792) is a low-severity finding submitted to the Audit Competition | ENS on Immunefi, against the workers directory of the audit-comp-ens repository. The affected feature is email verification for notification channels: a logged-in user asks the API worker to send a verification email to an address, and the worker mails a link that proves control of that address.

Because that route sends mail to an arbitrary address, it is rate limited. The limiter lives in workers/api-worker/src/services/notifications/email-verification-rate-limit.ts and allows EMAIL_VERIFICATION_RATE_LIMIT_MAX_SENDS = 3 sends per window, where the window is one hour. The defect is what the counter is keyed on: the address being verified, not the account making the request.

Setup

The researcher worked against a frozen repository revision, [redacted], entirely locally. No deployed host was contacted and no real mail was sent: the SendGrid send path was replaced by a counting stub and the recipient is a reserved example address.

The harness drives the real worker in process. According to the report, the following are real:

  • the frozen worker's Hono application with its real routes, middleware, error handler and requireJWT/SIWE chain;
  • the real rate-limiter module with its real key construction and window logic;
  • the real KV interface;
  • the real channel-creation and verification handlers;
  • the real Drizzle predicate trees (the fake store prints the SQL it would run).

Substituted, at the binding boundary only: the KV namespace implementation, the database handle, the RPC client, and the outbound SendGrid call (a stub that records the recipient and increments a counter). No route handler, limiter function, key constructor or predicate was re-implemented.

The attacker precondition is an ordinary account; the report notes a free SIWE login is enough. Nothing else is needed: no wallet interaction by the victim, no cooperation, no access to their inbox.

Finding it

The limiter builds its KV key from the normalised email address alone:

TS
// workers/api-worker/src/services/notifications/email-verification-rate-limit.ts:29-30
const key = KV_KEY.NOTIFICATIONS.EMAIL_VERIFICATION(normalizeEmailForRateLimit(email))
// -> notifications:email-verification:<email>

// consumed by the two mail-sending routes, neither of which passes a user id:
// app/routes/notifications/channels/email.ts:126
// app/routes/notifications/channels/$id.ts:173

The two routes that send verification mail consume the counter, and neither the key nor the consumption carries the requesting user_id. That means the budget belongs to the address, not to the account. Any account can spend another person's budget simply by naming their address, and the person whose address it is is then refused.

Exploitation

Step 1: exhaust the victim's budget from an attacker account

The attacker sends three verification requests naming the victim's address. Each returns 200 and causes one verification mail to be sent to that address:

Text
[B2] attacker request 1 -> 200  mail -> [redacted]  (send count 1)
[B2] attacker request 2 -> 200  mail -> [redacted]  (send count 2)
[B2] attacker request 3 -> 200  mail -> [redacted]  (send count 3)

After these three requests the KV key for the victim's address has been written three times, which is the full allowance:

Text
[B1] key written = ["notifications:email-verification:[redacted]" ×3, …someone.else…]
[B1] victim-facing string = Too many verification emails sent to this address. Try again in 60 minutes.

Step 2: the victim's own request is refused

When the victim asks for their own verification mail, the limiter sees the exhausted key and returns 429:

Text
[B2] victim request    -> 429 {"error":"Too many verification emails sent to this address. Try again in 60 minutes."}
[B2] mails actually sent to the victim's address on the victim's own request: 0

No mail reaches the victim during the window, so retrying does not help. The refusal is identical in shape to the refusal the address owner would legitimately see, so the victim has no way to distinguish this from a transient error.

Step 3: renew the window

The window is clock-driven KV state, so the attacker can renew it: three requests per hour keep the victim's address permanently refused. The refusal lapses only with the clock:

Text
[B3] after the hour window lapses (clock advanced in KV state):
     victim request -> 200, one mail to [redacted]

Controls in the same suite

Two controls in the same run support the diagnosis:

  • A request from a different address under the same account is unaffected while the victim's key is exhausted. The limiter is per address, not per account, which is what shows the key is the address.
  • The SQL the store would run for the channel queries is printed and carries the JWT user_id (user_channels.user_id = $1 and …), so the route itself is correctly scoped. The defect is the limiter key, not an authorisation gap.

Reproducing it

The suite is run from the worker directory:

PowerShell
cd D:\Pentest\bb\ens-competition\workers\api-worker
.\node_modules\.bin\vitest.CMD run ..\..\apps\portal\audit-artifacts\medium-low-hunt-20260912\faucet-and-rate-limit.probe.test.ts

Suite result: 8 of 8 cases pass. The raw log is run-worker-probes.log in the same directory. No existing repository file was modified; everything is additive under apps/portal/audit-artifacts/medium-low-hunt-20260912/.

Root cause

The counter is bound to the address instead of the requester. The key constructor takes only the email, and the two consuming routes pass no user id, so the limiter cannot tell one account from another. The report notes that this is a different decision from an earlier, closed submission on the same account, which concerned an unauthenticated verification route resolving a channel by token (the "pre-claim" root). That defect lived in a neighbouring file and its consequence was a channel claim; this one lives in email-verification-rate-limit.ts and its consequence is a lockout. Fixing the pre-claim root would not fix this one.

The route-level authorisation is not at fault: the channel queries are scoped by the JWT user_id, as the printed SQL shows. The limiter simply does not share that scoping.

Impact

  • A victim is temporarily denied a feature of the target application by anyone who knows their email address: their own verification request is refused for at least an hour, renewable without limit, so a determined attacker can keep it refused indefinitely.
  • No mail reaches the victim during the window, so the victim cannot complete verification by retrying.
  • The attacker needs nothing beyond an ordinary account: no wallet interaction by the victim, no cooperation, no access to their inbox.
  • Side effect visible in the same run: the attacker's requests each cause a real verification email to be sent to the victim's address, so the victim also receives unsolicited mail authored by the attacker's actions.

The selected impact is Temporarily disabling user to access target site, such as: Locking up the victim's funds, cookies or browser storage, or temporarily blocking the victim's IP address.

The report states its own limits plainly. The refusal is a delay, not damage: once the window lapses the victim verifies normally, and the state is not corrupted. A triager may therefore treat this as repairable rather than as the impact wording above, and may also argue that the limiter is intentionally shared as anti-spam protection. Those are the two arguments the report has to survive. KV state is modelled at the binding boundary, so the exact expiry semantics depend on the binding's implementation (expirationTtl), which the harness reproduces from the worker's own call arguments.

Fix

No fix was applied in the report; the suggested fix is to key the limiter on the requesting principal together with the address, for example notifications:email-verification:<user_id>:<email>, or to require the caller to prove control of the address before the counter is consumed.

Variants to test

  • Per-address limits on any mail-sending route. Try exhausting the budget for an address you do not own from a second account. A positive result is a 429 for the owner's own request while your requests still return 200.
  • Per-address limits on password reset or magic-link flows. The same keying mistake would let one account block another's reset mail. A positive result is the owner's reset request being refused after your requests, with no mail delivered to them.
  • Renewal. Repeat the exhausting requests at the window boundary. A positive result is the owner's refusal persisting across windows while your requests keep succeeding.
  • Scope check. Send a request from a different address under the same account while the victim's key is exhausted. A positive result is that this request is unaffected, confirming the key is the address rather than the account.

Hunting notes

This kind of bug hides in rate limiters that key on a user-supplied identifier (email, phone number, username) rather than on the authenticated principal. During recon, look for mail-sending endpoints that accept an address in the body, then read the limiter code to see what goes into the key. The signal is a key constructor that takes only the target identifier and consuming routes that never pass a user id.

The report drove the real routes in process with only the binding boundaries substituted, printing the key that was written and the exact 429 the victim receives, and added controls that rule out an authorisation gap and confirm the key is the address. It also stated the limits of the finding up front, which is what a triager needs to weigh a low-severity lockout.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 13 min read.

What happened, in plain words

ENS is a naming system for crypto wallets and websites, and a public audit competition on a platform called Immunefi invited people to look through a copy of ENS's code. People were invited to look through a copy of ENS's code and report anything that looked wrong. This report, number #92792, is one of those findings. It was rated low severity, which means it is a real problem but not a catastrophic one.

The problem is in a small piece of code that sends verification emails. When you sign up to a service, it often sends you an email with a link you click to prove the email address really belongs to you. Because sending email costs money and can be abused, the code limits how many of these emails can go to one address: three per hour. The bug is that this limit is counted against the email address, not against the account asking for the email. So anyone with an ordinary account can ask for three verification emails to be sent to somebody else's address, use up that person's allowance, and then that person cannot get their own verification email for an hour. The attacker can repeat this every hour to keep them blocked.

The product and the feature

ENS's code here includes a "worker". A worker is a small program that runs on a server and answers requests from a website or app. The part we care about handles notifications: a logged-in user can add an email address as a notification channel, and the worker sends a verification email to that address. Clicking the link in the email proves the user controls the address.

Because this route sends mail to any address a user types in, it has a rate limit. A rate limit is a cap on how often something can happen in a period of time, like a bouncer who only lets three people into a club per hour. Here the cap is three sends per hour, set by a constant named EMAIL_VERIFICATION_RATE_LIMIT_MAX_SENDS = 3.

The rate limiter keeps its count in KV, short for key-value store. Think of it as a giant notebook: you write a label (the key) and a value next to it, and later you look the value up by the label. The label used here is built from the email address being verified.

What the researcher set up

The researcher worked on a frozen copy of the code, at revision [redacted], entirely on their own computer. No live ENS server was contacted and no real email was sent. The part of the code that would normally hand mail to SendGrid (an email delivery service) was replaced with a fake that just counts how many messages it was asked to send, and the address used is a reserved example address that cannot receive real mail.

The test program runs the real worker code in the same process, with only the outer connections swapped for fakes. According to the report, these parts were real:

  • the worker's web application with its real routes, middleware, error handler and login checks;
  • the real rate-limiter code, with its real key building and time window;
  • the real KV interface;
  • the real handlers for creating channels and verifying them;
  • the real database query builders (the fake database prints the SQL it would have run).

Swapped out, only at the boundary where the code talks to the outside world: the KV store itself, the database connection, a remote procedure call client, and the SendGrid send call. No route handler, limiter function, key builder or query was rewritten.

The attacker needs only an ordinary account; the report notes a free SIWE login is enough. SIWE stands for Sign-In With Ethereum: instead of a username and password, you prove who you are with a crypto wallet. The victim does not need to do anything, does not need to interact with their wallet, and does not need to give the attacker access to their inbox.

Finding it

The limiter builds its notebook label from the email address alone:

TS
// workers/api-worker/src/services/notifications/email-verification-rate-limit.ts:29-30
const key = KV_KEY.NOTIFICATIONS.EMAIL_VERIFICATION(normalizeEmailForRateLimit(email))
// -> notifications:email-verification:<email>

// consumed by the two mail-sending routes, neither of which passes a user id:
// app/routes/notifications/channels/email.ts:126
// app/routes/notifications/channels/$id.ts:173

Line by line:

  • The first line creates the label, called key, by taking the email address, tidying it up with normalizeEmailForRateLimit (for example lowercasing it so [redacted] and [redacted] count as the same), and passing it to a helper that produces a string.
  • The comment on the next line shows what that string looks like: notifications:email-verification: followed by the email address. That is the label written into the notebook.
  • The remaining comments point at the two places in the code that send verification mail and therefore use up the count. Neither of them passes along the id of the user making the request.

Because the label contains only the address, the three-send allowance belongs to the address, not to the account. Any account can spend somebody else's allowance just by typing their address, and then the owner of that address is turned away.

Exploitation

Step 1: use up the victim's allowance from the attacker's account

The attacker sends three verification requests naming the victim's address. Each one succeeds with status 200 (the standard web code for "OK") and causes one verification email to go to that address:

Text
[B2] attacker request 1 -> 200  mail -> [redacted]  (send count 1)
[B2] attacker request 2 -> 200  mail -> [redacted]  (send count 2)
[B2] attacker request 3 -> 200  mail -> [redacted]  (send count 3)

Each line records one request from the attacker, the response code, where the mail went, and a running count of messages sent. After three requests the notebook entry for the victim's address has been written three times, which is the whole allowance:

Text
[B1] key written = ["notifications:email-verification:[redacted]" ×3, …someone.else…]
[B1] victim-facing string = Too many verification emails sent to this address. Try again in 60 minutes.

The first line shows the label that was written, three times, plus an entry for another address. The second line shows the message the victim will be shown once the allowance is gone.

Step 2: the victim's own request is refused

When the victim asks for their own verification email, the limiter looks up the label, sees the allowance is used up, and answers with status 429, the standard web code for "too many requests":

Text
[B2] victim request    -> 429 {"error":"Too many verification emails sent to this address. Try again in 60 minutes."}
[B2] mails actually sent to the victim's address on the victim's own request: 0

The first line is the victim's request and the refusal, including the error message in JSON, a common text format for data exchanged between programs. The second line confirms that no mail went out for the victim's own request. Retrying does not help, and the refusal looks exactly like the one the address owner would see if they had genuinely sent too many, so the victim cannot tell this apart from a passing glitch.

Step 3: renew the window

The one-hour window is tracked in the KV store and driven by the clock. The attacker can therefore keep renewing it: three requests per hour keep the victim's address refused for as long as the attacker keeps going. The refusal only lifts when the clock runs out:

Text
[B3] after the hour window lapses (clock advanced in KV state):
     victim request -> 200, one mail to [redacted]

Here the test moved the clock forward past the hour. The victim's next request succeeded with 200 and one email was sent, which shows the block is temporary and tied to time, not permanent damage.

Controls in the same run

Two extra checks in the same test run back up the diagnosis:

  • A request from a different address under the same account still works while the victim's label is used up. That shows the limit is per address, not per account, which is exactly what proves the label is the address.
  • The database query the fake store would run for the channel lookups is printed and includes the logged-in user's id (user_channels.user_id = $1 and …). So the route itself correctly checks who is asking. The flaw is in the limiter's label, not in who is allowed to do what.

Reproducing it

The test suite is run from the worker folder:

PowerShell
cd D:\Pentest\bb\ens-competition\workers\api-worker
.\node_modules\.bin\vitest.CMD run ..\..\apps\portal\audit-artifacts\medium-low-hunt-20260912\faucet-and-rate-limit.probe.test.ts

The first line moves into the worker's folder. The second runs vitest, a testing tool, on a test file that lives in a separate folder of collected evidence. The result was 8 of 8 cases passing. The raw log is run-worker-probes.log in the same folder. No existing file in the repository was changed; everything was added under apps/portal/audit-artifacts/medium-low-hunt-20260912/.

Root cause

The count is tied to the address instead of the person asking. The label builder takes only the email, and the two routes that use up the count never pass a user id, so the limiter cannot tell one account from another.

The report also explains that this is a different issue from an earlier, closed submission on the same account. That one was about a verification route that looked up a channel by a token without requiring login (the "pre-claim" root). It lived in a neighbouring file and its result was that someone could claim a channel. This one lives in email-verification-rate-limit.ts and its result is a lockout. Fixing the earlier issue would not fix this one.

The route-level permission checks are not at fault: the channel queries are limited to the logged-in user's id, as the printed SQL shows. The limiter simply does not do the same.

Impact

  • Anyone who knows a person's email address can temporarily stop that person using a feature: their own verification request is refused for at least an hour, and the attacker can renew that without limit, so a determined attacker can keep it refused indefinitely.
  • No mail reaches the victim during the window, so the victim cannot finish verification by retrying.
  • The attacker needs nothing beyond an ordinary account: no action by the victim, no cooperation, no access to their inbox.
  • A side effect seen in the same run: each of the attacker's requests causes a real verification email to be sent to the victim's address, so the victim also gets unwanted mail caused by the attacker.

The impact category the report selected is Temporarily disabling user to access target site, such as: Locking up the victim's funds, cookies or browser storage, or temporarily blocking the victim's IP address.

The report is upfront about its own limits. The refusal is a delay, not damage: once the window passes the victim verifies normally, and nothing is corrupted. A triager (the person who reviews reports) may therefore treat it as a repairable nuisance rather than the impact wording above, and may also argue that the limiter is deliberately shared as anti-spam protection. Those are the two arguments the report has to survive. The KV store is faked at the boundary, so the exact expiry behaviour depends on how the real store implements it (expirationTtl), which the test copies from the worker's own call arguments.

Fix

No fix was applied in the report. The suggested fix is to build the limiter's label from the requesting user together with the address, for example notifications:email-verification:<user_id>:<email>, or to require the caller to prove they control the address before the count is used up.

Variants to test

  • Per-address limits on any mail-sending route. Try using up the allowance for an address you do not own from a second account. A positive result is a 429 for the owner's own request while your requests still return 200.
  • Per-address limits on password reset or magic-link flows. A magic link is a one-time login link sent by email. The same labelling mistake would let one account block another's reset mail. A positive result is the owner's reset request being refused after your requests, with no mail delivered to them.
  • Renewal. Repeat the exhausting requests at the edge of the window. A positive result is the owner's refusal continuing across windows while your requests keep succeeding.
  • Scope check. Send a request from a different address under the same account while the victim's label is used up. A positive result is that this request is unaffected, confirming the label is the address rather than the account.

Hunting notes

This kind of bug hides in rate limiters that count against something the user supplies (an email, a phone number, a username) rather than against the logged-in account. During recon, look for endpoints that send mail and accept an address in the request body, then read the limiter code to see what goes into the label. The signal is a label builder that takes only the target identifier and routes that never pass a user id.

The report ran the real routes in process with only the outer connections swapped, printing the label that was written and the exact 429 the victim receives, and added checks that rule out a permission gap and confirm the label is the address. It also stated the limits of the finding up front, which is what a triager needs to weigh a low-severity lockout.

Glossary

  • API: a way for one program to talk to another, like a waiter taking your order to the kitchen.
  • Worker: a small program running on a server that answers requests from a website or app.
  • Rate limit: a cap on how many times something can happen in a period of time.
  • KV (key-value store): a simple store that keeps a value under a label, like a notebook where you look things up by name.
  • Key: the label used to store and find a value in a key-value store.
  • Email verification: sending a link to an address so the person who controls it can prove it is theirs.
  • Notification channel: a destination, such as an email address, that a service sends messages to.
  • Route: one addressable action in a web application, such as "send a verification email".
  • Middleware: code that runs before or after a route, for example to check that the user is logged in.
  • Status 200: the standard web response meaning the request succeeded.
  • Status 429: the standard web response meaning too many requests were made.
  • JSON: a common text format for exchanging data between programs.
  • SIWE (Sign-In With Ethereum): logging in by proving ownership of a crypto wallet instead of using a password.
  • JWT: a signed token that carries information about a logged-in user, such as their user id.
  • user_id: the unique number or string that identifies one account.
  • SQL: the language used to ask a database for data.
  • Drizzle: a tool for building database queries in code.
  • Hono: a web framework, a toolkit for building web applications.
  • SendGrid: a service that delivers email on behalf of an application.
  • Stub: a fake stand-in for a real component, used in tests.
  • Harness: the test setup that runs code and records what happens.
  • In process: running the code inside the same program as the test, rather than on a separate server.
  • Binding: the connection point between a program and an outside service, such as a database or store.
  • expirationTtl: the setting that says how long a stored value lives before it expires.
  • Repository revision: a specific saved snapshot of a code project.
  • Vitest: a tool for running automated tests in JavaScript and TypeScript projects.
  • Triager: the person who reviews a security report and decides how serious it is.
  • Severity: how serious a security problem is judged to be, from low to critical.
  • Lockout: blocking a person from using a feature or logging in.
  • Magic link: a one-time login link sent by email.
  • Recon: the early stage of security testing where you look around to find where problems might be.
  • Endpoint: a specific address on a server that accepts requests, such as one that sends email.
  • Token: a piece of data used to prove identity or permission, like a temporary pass.
  • Cookie: a small piece of data a website stores in your browser to remember you between visits.

More by crypt0n1337

View all

23 more disclosed reports, best first.

More from ENS

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.