fix: all three public api endpoints (send-review, co... in route.js - #74
Merged
Sohan-Rout merged 1 commit intoAug 3, 2026
Conversation
Automated security fix generated by OrbisAI Security
|
@anupamme is attempting to deploy a commit to the Ecma Projects Team on Vercel. A member of the Team first needs to authorize it. |
Sohan-Rout
approved these changes
Aug 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix high severity security issue in
app/api/send-review/route.js.Vulnerability
V-001app/api/send-review/route.js:1Description: All three public API endpoints (send-review, contact, auth) lack any server-side rate limiting. An attacker can send unlimited requests to these endpoints. The /api/send-review and /api/contact endpoints trigger outbound email sending on every request, making them particularly susceptible to email bombing/spam abuse. The /api/auth endpoint, while protected by Turnstile CAPTCHA, has no fallback rate limiting if the CAPTCHA is bypassed.
Evidence
Exploitation scenario: An attacker who has network access to the application can send high-frequency POST requests to /api/send-review or /api/contact to exhaust the Gmail SMTP quota and cause email flooding.
Scanner confirmation: multi_agent_ai rule
V-001flagged this pattern.Production code: This file is in the production codebase, not test-only code.
Threat Model Context
This API endpoint appears to be publicly accessible. This is a web application - XSS and injection vulnerabilities can affect end users.
Changes
app/api/send-review/route.jsBehavior Preservation
The change is scoped to 1 file on the vulnerable path; it only tightens handling of untrusted input and leaves valid inputs unaffected.
Automated security fix by OrbisAI Security