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
Let me run the existing S3 tests to see the current state.
- Assistant
Now wire the validation into the entry points, before any mutation:
- Assistant
Now the batch delete error code and the controller fallback:
- Assistant
All 45 pass, including the 4 new tests. Now the integration tests (full HTTP stack, including the traversal cases):
- Assistant
There are failures in the full suite — I need to determine whether they're caused by my change or pre-existing. Let me see which tests failed:
- Assistant
None are S3-related. Let me verify these failures are pre-existing by checking their nature and confirming against the unmodified baseline:
- Assistant
All 547 tests in the S3 package pass — including the leading-slash-key, well-known-key, presigned, multipart, versioning, and copy suites that exercise key-handling edge cases. Let me review the final diff:
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.