T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/ai_music_server.py:302- Finding
Arbitrary Server-Side File Read Through User-Controlled Voice Sample Path
- Content
View full analysis
Dict: """Train the voice-cloning model.""" async with self.session or aiohttp.ClientSession() as session: with open(audio_path, 'rb') as f: data = aiohttp.FormData() data.add_field('audio_file', f, filename='voice_sample.wav') data.add_field('model_name', model_name) async with session.post( f"{self.base_url}/train", data=data, timeout=aiohttp.ClientTimeout(total=900) ) as response: ``` ```python # scripts/generate_music.py:313-320 async def preprocess_audio(self, audio_path: str, target_sample_rate: int = 48000) -> str: """Preprocess audio.""" async with aiohttp.ClientSession() as session: with open(audio_path, 'rb') as f: data = aiohttp.FormData() data.add_field('audio_file', f) ...[truncated 2155 chars]- Remediation
View remediation
