Skip to content

Fix idle play squatting connection-slot exhaustion DoS - #207

Merged
AlexanderWagnerDev merged 1 commit into
mainfrom
cursor/application-security-review-bf86
Aug 10, 2026
Merged

Fix idle play squatting connection-slot exhaustion DoS#207
AlexanderWagnerDev merged 1 commit into
mainfrom
cursor/application-security-review-bf86

Conversation

@cursor

@cursor cursor Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Security fix

Severity: Medium
Location: src/session/conn.rs

Idle unpaused play sessions never reaped (connection-slot exhaustion DoS)

CI should run cargo test (especially session_setup_timed_out and server poll reaper tests).

Open in Web View Automation 

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

After the setup grace window, unpaused play sessions that never received
any outbound relay (no publisher, no cache replay) are now closed like
paused squatters. Players actively receiving relay remain protected.

Co-authored-by: Alexander Wagner <info@alexanderwagnerdev.com>
AlexanderWagnerDev added a commit that referenced this pull request Aug 10, 2026
…#208)

Unpaused players with zero outbound relay are reaped after the setup
grace window (PR #207). The deleteStream regression test must set
media_bytes_sent so it exercises a legitimate viewer, not a squatter.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Alexander Wagner <info@alexanderwagnerdev.com>
@AlexanderWagnerDev
AlexanderWagnerDev marked this pull request as ready for review August 10, 2026 10:00
@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing

@AlexanderWagnerDev
AlexanderWagnerDev merged commit 2f40c6d into main Aug 10, 2026
28 of 34 checks passed
@AlexanderWagnerDev
AlexanderWagnerDev deleted the cursor/application-security-review-bf86 branch August 10, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants