Closed andres-torres-marroquin closed 3 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Passed #10701
•
6f332af830 ℹ️: Merge 8637ff8fb79c9871045f8a330775799aec9a1bf6 into 811a691d32bad392ff8287a690e4...
Project |
fides
|
Branch Review |
refs/pull/5438/merge
|
Run status |
Passed #10701
|
Run duration | 00m 39s |
Commit |
6f332af830 ℹ️: Merge 8637ff8fb79c9871045f8a330775799aec9a1bf6 into 811a691d32bad392ff8287a690e4...
|
Committer | Andres Torres |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
4
|
⚠️ You've recorded test results over your free plan limit. Upgrade your plan to view test results. | |
View all changes introduced in this branch ↗︎ |
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 85.47%. Comparing base (
811a691
) to head (8637ff8
). Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
If this is not helpful, tell me, but an alternative approach we could take here would be to side-step all the checking for ..
strings and fully resolve the path first using os.path.abspath
or possibly os.path.realpath
(instead of using os.path.normpath
to get a relative path), and only proceed if the resolved (canonical) path matches an allow-list.
This at least applies to files that can be served, not API or UI routes, as we only need path traversal protection when serving real files.
Passed #10702
•
8bc0425f43: HJ-127 - Fix API router sanitizer being too aggressive with NextJS Catch-all Seg...
Project |
fides
|
Branch Review |
main
|
Run status |
Passed #10702
|
Run duration | 00m 37s |
Commit |
8bc0425f43: HJ-127 - Fix API router sanitizer being too aggressive with NextJS Catch-all Seg...
|
Committer | Andres Torres |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
4
|
⚠️ You've recorded test results over your free plan limit. Upgrade your plan to view test results. | |
View all changes introduced in this branch ↗︎ |
Closes #HJ-127
Description Of Changes
Fix API router sanitizer being too aggressive with NextJS Catch-all Segments
Code Changes
sanitise_url_path
onsrc/fides/api/main.py
so it is more permissive with NextJS urls.Steps to Confirm
Pre-Merge Checklist
CHANGELOG.md
main
downgrade()
migration is correct and works