-
Notifications
You must be signed in to change notification settings - Fork 5
merge main #614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
merge main #614
Conversation
chore: Fix StyleSetting issue
feat: Refactor the workflow
feat: Add graphy into experimental tools
feat: Add Coodinator setting
feat: Add an illustration for portal
release: v0.1.7
fix bug of maintaining duplicate edges
feat: Supports drag-and-drop combos for layout adjustment
chore: disable encrypted
release: v0.1.8
chore: Update kuzu_wasm to v0.7.0
fix bug when chroma db is empty and prepare workflow for extraction
feat: Support kuzu wasm
fix: remove GloveEmbedding implementation in clustering
feat: Update deps version
| console.log('SLOTS', SLOTS); | ||
| }; | ||
| export const unInstallSlot = (slotType: SlotType, appId: string) => { | ||
| delete SLOTS[slotType][appId]; |
Check warning
Code scanning / CodeQL
Prototype-polluting assignment Medium
library input
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI about 1 year ago
To fix the problem, we need to ensure that appId cannot be used to modify Object.prototype. We can achieve this by checking if appId is one of the special property names (__proto__, constructor, prototype) and rejecting it if it is. This will prevent prototype pollution while maintaining the existing functionality.
-
Copy modified lines R23-R25 -
Copy modified lines R33-R35 -
Copy modified lines R48-R50 -
Copy modified lines R58-R60
| @@ -22,2 +22,5 @@ | ||
| export const installSlot = (slotType: SlotType, appId: string, slot: any) => { | ||
| if (appId === '__proto__' || appId === 'constructor' || appId === 'prototype') { | ||
| throw new Error('Invalid appId'); | ||
| } | ||
| SLOTS[slotType] = { | ||
| @@ -29,2 +32,5 @@ | ||
| export const unInstallSlot = (slotType: SlotType, appId: string) => { | ||
| if (appId === '__proto__' || appId === 'constructor' || appId === 'prototype') { | ||
| throw new Error('Invalid appId'); | ||
| } | ||
| delete SLOTS[slotType][appId]; | ||
| @@ -41,2 +47,5 @@ | ||
| export const registerSideMenuSlot = (appId: string, slot: MenuProps['items']) => { | ||
| if (appId === '__proto__' || appId === 'constructor' || appId === 'prototype') { | ||
| throw new Error('Invalid appId'); | ||
| } | ||
| SLOTS['SIDE_MEU'] = { | ||
| @@ -48,2 +57,5 @@ | ||
| export const registerRoutesSlot = (appId: string, slot: any) => { | ||
| if (appId === '__proto__' || appId === 'constructor' || appId === 'prototype') { | ||
| throw new Error('Invalid appId'); | ||
| } | ||
| SLOTS['ROUTES'] = { |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
No description provided.