Outline: Per-IP Share-Subscription Creation Limit Can Be Bypassed Indefinitely via the Stale-Unconfirmed Resend Path
Summary
POST /api/shares.subscribe lets an anonymous visitor to a public share subscribe an arbitrary email address to update notifications for that document. To prevent abuse, ShareSubscription enforces a limit of 3 distinct subscriber emails per IP address per share via a Sequelize @BeforeCreate hoo...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| otherOutline |
< 1.10.0→ 1.10.0 |
1.10.0 |
Original description The description as published by the source.
POST /api/shares.subscribe lets an anonymous visitor to a public share subscribe an arbitrary email address to update notifications for that document. To prevent abuse, ShareSubscription enforces a limit of 3 distinct subscriber emails per IP address per share via a Sequelize @BeforeCreate hook (checkIPLimit). This hook only runs on ShareSubscription.create(). The same route handler has a second code path, used when a matching unconfirmed subscription already exists and is more than 60 minutes old, that regenerates the confirmation secret and resends the confirmation email via existing.save() instead of .create(). Because .save() does not trigger @BeforeCreate, this resend path is completely exempt from the per-IP limit, live-verified below: while already at the 3/3 cap for an IP, a resend to one of the three already-subscribed addresses still succeeds and sends a fresh confirmation email.
Practical impact is bounded and low: this does not let an attacker exceed the cap for new, distinct victim addresses (those still require .create() and are correctly blocked), so it cannot be used to spam arbitrary new inboxes. What it does allow is indefinite, repeated (roughly hourly, gated by the 60-minute staleness window) unwanted confirmation emails to addresses that are already in the 3-per-IP set, which is a nuisance/harassment vector against those specific addresses rather than a data-disclosure or account-compromise issue.
Affected Product
- **Product:*…
Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV
References
- GITHUB_REPO_ADVISORY outline/outline