S3 object keys can escape above the bucket root during path normalization Reject keys…
- User
S3 object keys can escape above the bucket root during path normalization
Reject keys whose normalized path escapes above the bucket root with HTTP 400 and the S3 error code
InvalidKey, without creating, deleting, or modifying object storage.Interface
No new interfaces are introduced.
- Assistant
I’ll trace S3 key parsing and storage mutation paths, then add a focused regression test proving traversal keys return
InvalidKeybefore any storage change. - Assistant
rgisn’t installed in this workspace, so I’m switching to repository-local file discovery and targetedgrepsearches. - Assistant
The current guard is applied only while resolving disk files, after metadata may already have been changed, and appending
.s3dataalso misses keys such as... I’m moving validation ahead of every object/multipart mutation and testing both persistent and in-memory modes. - Assistant
The focused service and HTTP regressions now pass. The raw-path case is also covered: a request normalized by Vert.x can no longer fall through to a bucket operation and create or delete storage outside the intended bucket.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.