Skip to content

[Bug] Playground sandbox file outputs auto-download without any user gesture #1053

@chronoai-shining

Description

@chronoai-shining

Summary

Found during fine-grained code-quality review (second pass) at commit 14fbf3e (develop). Severity: medium — security.

ornn-web/src/hooks/usePlaygroundChat.ts:49-64,145-148 — every file-output SSE event triggers an immediate programmatic <a download> click.

Why it matters

A malicious or compromised skill executing in the playground can drop arbitrary files (.html, .bat, .lnk) into the user's Downloads folder with zero user gesture — a drive-by-download primitive handed to whatever code runs in the sandbox.

Suggested fix

Render files in the existing fileOutputs state with an explicit per-file download button instead of auto-clicking.

Metadata

Metadata

Labels

auto:eligible/auto MAY pick this issue for autonomous work. Required to claim.securitySecurity & trustsize:SSmall: < ~1h, single file/concern. Size is informational.type:bugDefect: behavior diverges from intent/spec.webornn-web frontend SPA

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions