Skip to content

security(api): Core API routes are missing authentication middleware#4273

Open
Ajithkelangath wants to merge 1 commit into
SecureBananaLabs:mainfrom
Ajithkelangath:fix-core-api-auth
Open

security(api): Core API routes are missing authentication middleware#4273
Ajithkelangath wants to merge 1 commit into
SecureBananaLabs:mainfrom
Ajithkelangath:fix-core-api-auth

Conversation

@Ajithkelangath

Copy link
Copy Markdown

Vulnerability: Core API routes are missing authentication middleware

Almost all of the core API routes (/api/users, /api/messages, /api/payments, /api/proposals) and \POST /api/jobs\ are completely missing the \�uthMiddleware. This allows unauthenticated, anonymous visitors to list all users, create jobs, submit proposals, read all messages, and create payments, leading to severe Mass Data Disclosure and complete Broken Access Control.

Fix:
Applied \�uthMiddleware\ to all affected router instances, ensuring these endpoints require a valid JWT bearer token.

Resolves #4272

Added authMiddleware to all sensitive API routes to prevent unauthenticated access to user data, payments, and messaging.

Resolves SecureBananaLabs#4272
github-actions Bot added a commit that referenced this pull request Jun 4, 2026
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.

security(api): Core API routes are missing authentication middleware

1 participant