GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — url: restrict option copying in urlToHttpOptions to URL instances by mcollina · Pull Request #67454 · nodejs/node Conversation
Member
The spread is only meaningful for a genuine WHATWG Adds a unit test in
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
mcollina
force-pushed
the
fix-urltohttpoptions-options-injection
branch
from
38881e3 to
75bfa0e
Compare
|
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #67454 +/- ## ========================================== - Coverage 92.62% 90.70% -1.92% ========================================== Files 430 802 +372 Lines 196333 282114 +85781 Branches 29897 54349 +24452 ========================================== + Hits 181849 255886 +74037 - Misses 14159 16369 +2210 - Partials 325 9859 +9534
🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
75bfa0e to
19b7a66
Compare
Only spread own enumerable properties for URL instances created by this realm's URL constructor. Duck-typed objects accepted by isURL() can no longer smuggle connection options (socketPath, method, headers, agent) into a request. This fixes a footgun where a hostname-validated http.request() could be redirected to a Unix socket (e.g. the Docker daemon) via a URL-shaped object, bypassing hostname-based SSRF checks. Extending a genuine URL object with extra options is preserved. PR-URL: nodejs#67454 Refs: nodejs#46989 Signed-off-by: Matteo Collina <[email protected]>
19b7a66 to
edbd599
Compare
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in c47b8d8 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Only spread own enumerable properties for URL instances created by this realm's URL constructor. Duck-typed objects accepted by isURL() can no longer smuggle connection options (socketPath, method, headers, agent) into a request. This fixes a footgun where a hostname-validated http.request() could be redirected to a Unix socket (e.g. the Docker daemon) via a URL-shaped object, bypassing hostname-based SSRF checks. Extending a genuine URL object with extra options is preserved. Refs: #46989 Signed-off-by: Matteo Collina <[email protected]> PR-URL: #67454 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Paolo Insogna <[email protected]>
Only spread own enumerable properties for URL instances created by this realm's URL constructor. Duck-typed objects accepted by isURL() can no longer smuggle connection options (socketPath, method, headers, agent) into a request. This fixes a footgun where a hostname-validated http.request() could be redirected to a Unix socket (e.g. the Docker daemon) via a URL-shaped object, bypassing hostname-based SSRF checks. Extending a genuine URL object with extra options is preserved. Refs: nodejs#46989 Signed-off-by: Matteo Collina <[email protected]> PR-URL: nodejs#67454 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Paolo Insogna <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.