[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M719Q21BWSV3R18VXV5PSD2V":3,"skill-same:01M719Q21BWSV3R18VXV5PSD2V":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M719Q21BWSV3R18VXV5PSD2V","sast-path-traversal",null,"Detect Path Traversal vulnerabilities in file handling code, API routes, and static file serving. Use when reviewing endpoints that read\u002Fwrite\u002Fdelete files using user-supplied paths or filenames. Covers ..\u002F sequences, null bytes, and encoding bypasses.","dahaliztupe-sketch\u002FKalmeron-Two","dahaliztupe-sketch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F271085317?v=4","01M719765Q83P08JCQ1SWNQR0N","01M719766HQBGF44W90MPJKTD2",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsast-path-traversal\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"sast path traversal","sast","path","path traversal","vulnerabilities","paths","sequences","write","read","detect","endpoints","delete","api","code","file","when","use","files","static","file handling","2026-11-10 10:12:30",false,"---\nname: sast-path-traversal\ndescription: Detect Path Traversal vulnerabilities in file handling code, API routes, and static file serving. Use when reviewing endpoints that read\u002Fwrite\u002Fdelete files using user-supplied paths or filenames. Covers ..\u002F sequences, null bytes, and encoding bypasses.\n---\n\n# SAST: Path Traversal Detection\n\nScan for Path Traversal (Directory Traversal) vulnerabilities — OWASP A01:2021.\n\n## What to Look For\n\n### High Risk Patterns\n```typescript\n\u002F\u002F ❌ VULNERABLE: user-controlled path in file operations\nimport { readFileSync } from 'fs';\nconst content = readFileSync(`.\u002Fuploads\u002F${req.params.filename}`);\n\n\u002F\u002F ❌ VULNERABLE: path.join doesn't prevent traversal alone\nconst filePath = path.join(__dirname, 'uploads', userFilename);\n\u002F\u002F If userFilename = '..\u002F..\u002Fetc\u002Fpasswd', path.join resolves it!\n\n\u002F\u002F ❌ VULNERABLE: directory listing with user input\nconst files = fs.readdirSync(`.\u002Fdata\u002F${req.query.folder}`);\n\n\u002F\u002F ❌ VULNERABLE: unvalidated file deletion\nfs.unlinkSync(`.\u002Fuploads\u002F${req.body.file}`);\n```\n\n### Safe Patterns\n```typescript\n\u002F\u002F ✅ SAFE: resolve and verify prefix\nimport path from 'path';\nconst UPLOAD_DIR = path.resolve('.\u002Fuploads');\nconst requested = path.resolve(UPLOAD_DIR, userFilename);\nif (!requested.startsWith(UPLOAD_DIR + path.sep)) {\n  throw new Error('Path traversal detected');\n}\nconst content = readFileSync(requested);\n\n\u002F\u002F ✅ SAFE: allowlist filenames\nconst ALLOWED_FILES = ['report.pdf', 'invoice.xlsx'];\nif (!ALLOWED_FILES.includes(userFilename)) throw new Error('Not allowed');\n\n\u002F\u002F ✅ SAFE: use database IDs instead of filenames\nconst file = await db.collection('files').doc(fileId).get();\nconst storagePath = file.data().path; \u002F\u002F trusted, from DB\n```\n\n## Kalmeron-Specific Checks\n- `app\u002Fapi\u002Fuser\u002Favatar\u002Froute.ts` — verify upload path is confined to Firebase Storage\n- `PDF Worker` (port 8000) — check FastAPI file handling endpoints\n- Any endpoint that accepts `filename`, `path`, `file`, `dir` parameters\n\n## Scan Checklist\n\n- [ ] All file paths resolved with `path.resolve()` + `startsWith(baseDir)` check\n- [ ] No raw user input used in `fs.*` calls\n- [ ] Upload directories are outside the application root\n- [ ] File extensions validated against allowlist\n- [ ] Null bytes (`\\0`) stripped from filenames\n- [ ] URL-encoded traversal sequences (`%2e%2e%2f`) decoded and checked\n\n## Severity Matrix\n| Pattern | Severity |\n|---|---|\n| Read arbitrary file with `..\u002F` | Critical |\n| Write to arbitrary path | Critical |\n| Delete arbitrary file | Critical |\n| List arbitrary directory | High |\n| Source code disclosure via traversal | Critical |\n\n## Remediation\n1. Resolve path + check it starts with expected base directory\n2. Use allowlists for filenames\u002Fextensions\n3. Store files with UUID names (not user-supplied names)\n4. Use cloud storage (Firebase Storage) — paths are managed by the service\n5. Chroot or containerize file serving processes\n","# SAST: Path Traversal Detection\n\nScan for Path Traversal (Directory Traversal) vulnerabilities — OWASP A01:2021.\n\n## What to Look For\n\n### High Risk Patterns\n```typescript\n\u002F\u002F ❌ VULNERABLE: user-controlled path in file operations\nimport { readFileSync } from 'fs';\nconst content = readFileSync(`.\u002Fuploads\u002F${req.params.filename}`);\n\n\u002F\u002F ❌ VULNERABLE: path.join doesn't prevent traversal alone\nconst filePath = path.join(__dirname, 'uploads', userFilename);\n\u002F\u002F If userFilename = '..\u002F..\u002Fetc\u002Fpasswd', path.join resolves it!\n\n\u002F\u002F ❌ VULNERABLE: directory listing with user input\nconst files = fs.readdirSync(`.\u002Fdata\u002F${req.query.folder}`);\n\n\u002F\u002F ❌ VULNERABLE: unvalidated file deletion\nfs.unlinkSync(`.\u002Fuploads\u002F${req.body.file}`);\n```\n\n### Safe Patterns\n```typescript\n\u002F\u002F ✅ SAFE: resolve and verify prefix\nimport path from 'path';\nconst UPLOAD_DIR = path.resolve('.\u002Fuploads');\nconst requested = path.resolve(UPLOAD_DIR, userFilename);\nif (!requested.startsWith(UPLOAD_DIR + path.sep)) {\n  throw new Error('Path traversal detected');\n}\nconst content = readFileSync(requested);\n\n\u002F\u002F ✅ SAFE: allowlist filenames\nconst ALLOWED_FILES = ['report.pdf', 'invoice.xlsx'];\nif (!ALLOWED_FILES.includes(userFilename)) throw new Error('Not allowed');\n\n\u002F\u002F ✅ SAFE: use database IDs instead of filenames\nconst file = await db.collection('files').doc(fileId).get();\nconst storagePath = file.data().path; \u002F\u002F trusted, from DB\n```\n\n## Kalmeron-Specific Checks\n- `app\u002Fapi\u002Fuser\u002Favatar\u002Froute.ts` — verify upload path is confined to Firebase Storage\n- `PDF Worker` (port 8000) — check FastAPI file handling endpoints\n- Any endpoint that accepts `filename`, `path`, `file`, `dir` parameters\n\n## Scan Checklist\n\n- [ ] All file paths resolved with `path.resolve()` + `startsWith(baseDir)` check\n- [ ] No raw user input used in `fs.*` calls\n- [ ] Upload directories are outside the application root\n- [ ] File extensions validated against allowlist\n- [ ] Null bytes (`\\0`) stripped from filenames\n- [ ] URL-encoded traversal sequences (`%2e%2e%2f`) decoded and checked\n\n## Severity Matrix\n| Pattern | Severity |\n|---|---|\n| Read arbitrary file with `..\u002F` | Critical |\n| Write to arbitrary path | Critical |\n| Delete arbitrary file | Critical |\n| List arbitrary directory | High |\n| Source code disclosure via traversal | Critical |\n\n## Remediation\n1. Resolve path + check it starts with expected base directory\n2. Use allowlists for filenames\u002Fextensions\n3. Store files with UUID names (not user-supplied names)\n4. Use cloud storage (Firebase Storage) — paths are managed by the service\n5. Chroot or containerize file serving processes\n",{"name":5,"description":7},"main","13d9afadbb6a87d6209fe4bd6ca2bbe4553119ac",".agents\u002Fskills\u002Fsast-path-traversal",0,"https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two","https:\u002F\u002Fkalmeron-two.vercel.app","https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch","2026-10-05 12:24:53",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add dahaliztupe-sketch\u002FKalmeron-Two --skill sast-path-traversal",{"tool":57,"command":58},"bunx","bunx skills add dahaliztupe-sketch\u002FKalmeron-Two --skill sast-path-traversal",{"tool":60,"command":61},"pnpm","pnpm dlx skills add dahaliztupe-sketch\u002FKalmeron-Two --skill sast-path-traversal","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsast-path-traversal\u002FSKILL.md",true,[],[66,75,82,94,107,123],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":70,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":74},"01M73HK3SBGDHWYP2ZTMJHSJ33","skill-creator","To create new CLI skills following Anthropic's official best practices with zero manual configuration. This skill automates brainstorming, template application, validation, and installation processes while maintaining progressive disclosure patterns and writing style standards.","https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fskill-creator\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fskill-creator\u002Fskill-creator\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":74},"01M73HA3PK4C7YS0D3VD9FQ8QA","business-investment-advisor","Business investment analysis and capital allocation advisor. Use when evaluating whether to invest in equipment, real estate, a new business, hiring, technology, or any capital expenditure. Also use for ROI calculations, IRR, NPV, payback period, build vs buy decisions, lease vs buy analysis, vendor evaluation, or deciding where to allocate limited budget for maximum return.","https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ffinance-skills\u002Fbusiness-investment-advisor\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":86,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":38},"01M719SWYD9RGS97HJ69PXWY62","add-new-agent","خطوات تفصيليّة لإضافة وكيل ذكاء اصطناعي جديد إلى منصّة Kalmeron من الفكرة إلى الإنتاج","https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two\u002Fblob\u002Fmain\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two\u002Fblob\u002Fmain\u002FSKILL.md",[],[90,91,92,93],"add","add new agent","new","new agent",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":38},"01M719SSKNBA7T5NS7V6DP0PX4","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[101,102,92,33,103,104,105,34,106],"writing skills","writing","work","editing","deployment","Existing",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":38},"01M719SRFDNKA3044QD3FYZ05R","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[114,102,115,116,31,117,118,119,120,34,33,121,122],"writing plans","plans","task","multi","spec","multi-step task","for","you","requirements",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":38},"01M719SPN5FM1JYJSR9DGJQPZ0","web-design-guidelines","Review UI code for Web Interface Guidelines compliance. Use when asked to \"review my UI\", \"check accessibility\", \"audit design\", \"review UX\", or \"check my site against best practices\".","https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-design-guidelines\u002FSKILL.md",[],[130,131,132,133,134,135,120,136,137,32,31,138,139,140,141,142,33,34,143,144],"design","guidelines","web","web design guidelines","web design","vercel","accessibility","best practices","review","check","compliance","audit","ux","web interface guidelines","interface"]