Skip to content

fix: Reject URL path segments containing percent-encoded dots#4291

Open
alexandear wants to merge 1 commit into
google:masterfrom
alexandear-org:fix/check-url-path-traversal-percent-encoded
Open

fix: Reject URL path segments containing percent-encoded dots#4291
alexandear wants to merge 1 commit into
google:masterfrom
alexandear-org:fix/check-url-path-traversal-percent-encoded

Conversation

@alexandear

Copy link
Copy Markdown
Contributor

This PR improves the fix #4150 with the check for percent encoded dots - %2e%2e. Without the checkURLPathTraversal change, the newly added test cases in TestCheckURLPathTraversal fail.

@gmlewis gmlewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @alexandear!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.

cc: @stevehipwell - @zyfy29 - @Not-Dhananjay-Mishra

@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.46%. Comparing base (f53fbae) to head (9e81891).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4291      +/-   ##
==========================================
- Coverage   97.49%   97.46%   -0.04%     
==========================================
  Files         192      192              
  Lines       19256    19254       -2     
==========================================
- Hits        18774    18766       -8     
- Misses        267      270       +3     
- Partials      215      218       +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Jun 10, 2026

@Not-Dhananjay-Mishra Not-Dhananjay-Mishra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NeedsReview PR is awaiting a review before merging.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants