The curl URL parser wrongly accepts percent-encoded URL...
High severity
Unreviewed
Published
Jun 3, 2022
to the GitHub Advisory Database
•
Updated Apr 7, 2024
Description
Published by the National Vulnerability Database
Jun 2, 2022
Published to the GitHub Advisory Database
Jun 3, 2022
Last updated
Apr 7, 2024
The curl URL parser wrongly accepts percent-encoded URL separators like '/'when decoding the host name part of a URL, making it a different URL usingthe wrong host name when it is later retrieved.For example, a URL like
http://example.com%2F127.0.0.1/
, would be allowed bythe parser and get transposed intohttp://example.com/127.0.0.1/
. This flawcan be used to circumvent filters, checks and more.References