T09 · Insecure Skill Coding Practices
- Location
assets/examples/webhook_handler.py:63- Finding
Unauthenticated Webhook Ingestion and Public Disclosure of Webhook Payloads
- Content
View full analysis
100: webhook_history.pop(0) # Handle different events if step == 'complete': handle_video_complete(payload) elif 'failed' in step: handle_video_failed(payload) else: logger.info(f"Received status update: {step}") ``` ```python def save_video_record(payload): """Save video record to file (example implementation).""" filename = f"videos_{datetime.utcnow().strftime('%Y%m%d')}.jsonl" with open(filename, 'a') as f: record = { "timestamp": datetime.utcnow().isoformat(), **payload } f.write(json.dumps(record) + '\n') lo ...[truncated 2931 chars]- Remediation
View remediation
