fix : reject path traversal patterns in isValidGitScope#2475
fix : reject path traversal patterns in isValidGitScope#2475tmdeveloper007 wants to merge 3 commits into
Conversation
|
@tmdeveloper007 is attempting to deploy a commit to the Nisshchaya's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Warning Review limit reached
More reviews will be available in 35 minutes and 38 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses rolling per-developer review limits. Reviews become available again as older review attempts age out of the rolling limit window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🎉 Thanks for your contribution, @tmdeveloper007!Your PR has passed our automated GSSoC quality checks. Here's a quick summary:
A maintainer will review your PR soon. Please be patient and available for feedback. 💪 GSSoC'26 automation · Maintainer: @nisshchayarathi |
|
CI Status: CodeQL PASSED, Prisma Schema Check PASSED, GSSoC spam check PASSED. Playwright Tests in progress. Test Platform failures are pre-existing upstream TypeScript errors (CodeDependencyGraph.tsx, gitlabService.ts, bitbucketService.ts). Worker Consistency failures are pre-existing upstream issues. |
Summary
The
isValidGitScopefunction inlib/utils/validators.tsuses the regex/^[a-zA-Z0-9_.\//\-]+$/which allows..patterns. An attacker could potentially pass a scope containing path traversal sequences.Changes
lib/utils/validators.ts: Added checkif (value.includes("..")) return false;before the regex testCloses #2471