T09 · Insecure Skill Coding Practices
- Location
index.ts:321- Finding
Directory Traversal Through Unvalidated LLM-Generated Category Path
- Content
View full analysis
0; const prompt = hasExistingTranscripts ? `You are maintaining a knowledge library of audio/video transcripts. SOURCE INFORMATION: URL: ${videoUrl} Title: ${videoTitle} CURRENT LIBRARY STRUCTURE: ${folderTreeString || '(Empty - this will be the first transcript)'} NEW TRANSCRIPT TO ORGANIZE: ${processedTranscript} YOUR TASK: 1. Analyze the new transcript's content and main themes 2. Review the existing library structure 3. Decide the optimal SINGLE-LEVEL category folder for this transcript DECISION CRITERIA: - Use existing folders when semantically appropriate (similar content/theme) - Create new categories when the content doesn't fit existing ones - Use kebab-case for folder names - Keep categories broad enough to group related content but specific enough to be meaningful - IMPORTANT: Use only ONE level of categorization (e.g., "ai-podcasts" not "technology/ai/podcasts") Respond with a JSON object (no markdown code blocks): { "newTranscriptPath": "category-name", "reasoning": "Explain why this category fits the content", "confidence": "high/medium/low" }` : `You are creating a knowledge library of audio/video transcripts. SOURCE INFORMATION: URL: ${videoUrl} Title: ${videoTitle} TRANSCRIPT: ${processedTranscript} This is the FIRST transcript in the library. Create an initial folder structure that: - Uses a SINGLE level of categorization - Is specific enough to be useful but n ...[truncated 4334 chars]- Remediation
View remediation
