Files
floci/src/test/java/io/github/hectorvent
iam-ssrivastav 65063144c9 security(s3): harden path traversal defenses in S3Service and S3Controller (#508)
- 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
2026-04-18 11:24:35 -05:00
..