Repository navigation
fix(supervisor-network): preserve percent-encoded semicolon in L7 request path (closes #3902) - #3986
Closed
AmeerAliAnwar wants to merge 1 commit into
Closed
AmeerAliAnwar wants to merge 1 commit into
AmeerAliAnwar wants to merge 1 commit into
Conversation
AmeerAliAnwar
requested review from
a team,
derekwaynecarr,
mrunalp and
sjenning
as code owners
September 30, 2026 19:00
|
Thank you for your interest in contributing to OpenShell, @AmeerAliAnwar. This project uses a vouch system for first-time contributors. Before submitting a pull request, you need to be vouched by a maintainer. To get vouched:
See CONTRIBUTING.md for details. |
|
All contributors have signed the DCO ✍️ ✅ |
Author
|
I have read the DCO document and I hereby sign the DCO. |
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #3902
canonicalize_request_targetwas percent-decoding the request path before stripping path parameters. This caused percent-encoded semicolons (%3B) to decode directly to literal;(0x3B), making them indistinguishable from parameter delimiters. Consequently,strip_path_parameterstruncated the path segment at%3Band discarded the remainder before forwarding the path upstream.For example:
DELETE /objects/backup%3Boldwas forwarded asDELETE /objects/backup/a/%3Bxwas forwarded as/a/Changes
ENCODED_SEMICOLON_SENTINEL(0x02), mirroringENCODED_SLASH_SENTINEL.percent_decode_with_sentinelto decode%3Bto the sentinel rather than literal;.build_canonical_pathto re-emit the sentinel as%3B.dot_segment_viewso traversal detection (..%3B) still treats the encoded semicolon as ending the segment, preserving the path traversal security guard.%3Bpreservation, trailing segment handling, uppercase normalization, literal;parameter stripping, and dot-segment traversal resistance.Testing
rustfmt --edition 2021 --checkclean.