fix: apply 11 Shipwell audit findings#58
Open
shipwellhq[bot] wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Hi @ShipwellHQ[bot]! 👋 Thanks for contributing to layr! 🎉 ⭐ Please star the repo if you like it! |
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.
🛠️ Shipwell Auto-Fix: audit
Automated fixes generated by Shipwell analysis.
✅ Applied Fixes (11)
src/templates/templateBrowser.ts,src/templates/templateManager.ts,src/version-control/HistoryView.tsapi-proxy/vercel.json,api-proxy/api/chat.js,src/planner/providers/groq.tsapi-proxy/api/chat.jssrc/version-control/VersionManager.ts,src/version-control/HistoryView.ts,src/version-control/diffProvider.tssrc/extension.ts,src/planner/index.ts,src/utils/logger.tssrc/planner/providers/groq.ts,src/planner/providers/gemini.ts,src/planner/providers/ollama.tssrc/extension.tssrc/planner/ai.ts,src/planner/providers/gemini.tssrc/planner/providers/ollama.ts,src/planner/providers/factory.tssrc/templates/templateManager.tssrc/planner/providers/groq.tsFinding details
⚪ XSS via Template Injection in Template Browser Webview
Category: security
Files:
src/templates/templateBrowser.ts,src/templates/templateManager.ts,src/version-control/HistoryView.ts⚪ Wildcard CORS on API Proxy Allows Abuse from Any Origin
Category: security
Files:
api-proxy/vercel.json,api-proxy/api/chat.js,src/planner/providers/groq.ts⚪ Information Disclosure: Internal Error Details Leaked to Client in API Proxy
Category: security
Files:
api-proxy/api/chat.js⚪ Path Traversal in VersionManager.getVersion and deleteVersion
Category: security
Files:
src/version-control/VersionManager.ts,src/version-control/HistoryView.ts,src/version-control/diffProvider.ts⚪ Sensitive Environment Variable Loading with Debug Logging of API Key Presence
Category: security
Files:
src/extension.ts,src/planner/index.ts,src/utils/logger.ts⚪ Unvalidated User Input in AI Prompts Enables Prompt Injection
Category: security
Files:
src/planner/providers/groq.ts,src/planner/providers/gemini.ts,src/planner/providers/ollama.ts⚪ HTML Export Vulnerable to Stored XSS via Markdown Content
Category: security
Files:
src/extension.ts⚪ Gemini Safety Settings Disabled (BLOCK_NONE for All Harm Categories)
Category: security
Files:
src/planner/ai.ts,src/planner/providers/gemini.ts⚪ SSRF Risk via Configurable Ollama Base URL
Category: security
Files:
src/planner/providers/ollama.ts,src/planner/providers/factory.ts⚪ Template ID Generation Allows File System Manipulation
Category: security
Files:
src/templates/templateManager.ts⚪ Proxy URL Configurable via Environment Variable Without Validation
Category: security
Files:
src/planner/providers/groq.ts❌ Failed (1)
Generated by Shipwell 🚢