|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #77991 Expose cURL URL parsing functions
Submitted: 2019-05-08 11:23 UTC Modified: -
Avg. Score:4.3 ± 0.9
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: martijn at vanderven dot se Assigned:
Status: Open Package: cURL related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: martijn at vanderven dot se
New email:
PHP Version: OS:


 [2019-05-08 11:23 UTC] martijn at vanderven dot se
Since curl 7.62.0 [1] there has been a URL Parser [2] available from libcurl. It would be great if PHP could expose those through ext/curl.

Getting access to those functions would help in securing applications against a number of SSRF attacks [3] that depend on projects using a different URL parser for URL validation than used by the HTTP library for issuing the request.

See Orange Tsai’s amazing presentation about this at Black Hat USA 2017 [4][5].



Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Oct 04 20:05:53 2022 UTC