CURL-CVE-2022-30115

Source
https://curl.se/docs/CVE-2022-30115.html
Import Source
https://curl.se/docs/CURL-CVE-2022-30115.json
JSON Data
https://api.osv.dev/v1/vulns/CURL-CVE-2022-30115
Aliases
Published
2022-05-11T08:00:00Z
Modified
2024-06-07T13:53:51Z
Summary
HSTS bypass via trailing dot
Details

curl's HSTS check could be bypassed to trick it to keep using HTTP.

Using its HSTS support, curl can be instructed to use HTTPS directly instead of using an insecure clear-text HTTP step even when HTTP is provided in the URL. This mechanism could be bypassed if the hostname in the given URL used a trailing dot while not using one when it built the HSTS cache. Or the other way around - by having the trailing dot in the HSTS cache and not using the trailing dot in the URL.

Since trailing dots in hostnames are somewhat special, many sites work equally fine with or without a trailing dot present.

References
Credits
    • Axel Chong - FINDER
    • Daniel Stenberg - REMEDIATION_DEVELOPER

Affected packages

Git / github.com/curl/curl.git

Affected ranges

Type
SEMVER
Events
Introduced
7.82.0
Fixed
7.83.1
Type
GIT
Repo
https://github.com/curl/curl.git
Events

Affected versions

7.*

7.82.0
7.83.0