Skip to content

harden: add resource limit in app.ts (CWE-770) - #103

Open
anupamme wants to merge 1 commit into
CopilotKit:mainfrom
anupamme:fix-repo-openmuse-cwe-770-global-rate-limit
Open

anupamme wants to merge 1 commit into
CopilotKit:mainfrom
anupamme:fix-repo-openmuse-cwe-770-global-rate-limit

Conversation

@anupamme

Copy link
Copy Markdown

Rate limiting is implemented only for the /api/session login endpoint (30 attempts per minute). All other 58+ API endpoints including resource-intensive operations like /files/export, /commands, and computer automation endpoints lack any rate limiting controls. This is defence-in-depth at apps/server/src/app.ts:1 rather than a vulnerability I can show is exploitable here — it makes the failure mode explicit and bounded. Close it freely if the pattern is intentional.

Reference: CWE-770

What changed

  • apps/server/src/app.ts

Verification

No automated check could be run against this repository, so this change is unverified beyond review. Please treat it as a suggestion.


Automated security fix by OrbisAI Security

Automated security fix generated by OrbisAI Security

This branch has not been deployed

No deployments
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.

1 participant