mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
- Add normalize() + startsWith(bucketDir) guards to resolveObjectPath and resolveVersionedPath in S3Service (primary defense) - Add controller-level validateKeyNoTraversal mirroring the service pattern with try/catch for InvalidPathException (null bytes → 400) - Add validateRawUri to catch percent-encoded traversal (%2e%2e) before Vert.x normalization strips it - Strip leading slashes from keys before filesystem resolution to allow legitimate S3 keys like /file.txt without escaping the bucket - Add integration tests for %2e%2e, %00, and %2E%2E vectors asserting 400 InvalidKey - Add unit tests for service-layer traversal rejection