T05 · Unauthorized Access and Privilege Escalation
- Location
evez_daw.py:230- Finding
Unauthenticated Network Exposure of Local File Operations
- Content
View full analysis
0 else {} if p=="/api/render": audio=render_track(b.get("preset","breakcore_170"),b.get("bars",4), b.get("bass","wobble"),b.get("bass_freq",55),b.get("fx_chain"),b.get("bpm")) fn=b.get("filename",f"evez_{b.get('preset','track')}_{int(time.time())}.wav") path=BASE_DIR/"output"/fn; path.parent.mkdir(parents=True,exist_ok=True) sf.write(str(path),audio,SR) self.j({"filename":fn,"path":str(path),"duration":len(audio)/SR,"bpm":b.get("bpm",PRESETS.get(b.get("preset","breakcore_170"),{}).get("bpm",170))}) elif p=="/api/drumkit": m=gen_drumkit(b.get("name","evez_breakcore"),b.get("style","breakcore")) self.j(m) elif p=="/api/chop": sp=b.get("sample_path","") if sp and os.path.exists(sp): a,sr=sf.read(sp); sl=chop(a.astype(np.float32),b.get("slices",8),b.get("gate",0.5)) pat=b.get("rearrange"); r=rearrange(sl,pat) if pat else np.concatenate(sl) fn=b.get("filename",f"chopped_{int(time.time())}.wav") path=BASE_DIR/"output"/fn; sf.write(str(path),r,SR) self.j({"filename":fn,"path":str(path),"slices":len(sl)}) else: self.j({"error":"sample not found"},400) s=HTTP ...[truncated 2425 chars]- Remediation
View remediation
