4.3medium
HSTS bypass via trailing dot
- Severity
- 4.3medium CVSS:3.1 by NVD
- Exploit likelihood
- 1.04% (higher than 63% of CVEs)
- Published
- Last changed
- Assigned by
- hackerone
- Also known as
- CURL-CVE-2022-30115
Description
Using its HSTS support, curl can be instructed to use HTTPS directly insteadof using an insecure clear-text HTTP step even when HTTP is provided in theURL. This mechanism could be bypassed if the host name in the given URL used atrailing dot while not using one when it built the HSTS cache. Or the otherway around - by having the trailing dot in the HSTS cache and *not* using thetrailing dot in the URL.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| https://github.com/curl/curl | Fixed in 7.83.1 | CVE List |
| https://github.com/curl/curl.git | from 7.82.0 before 7.83.1, from b27ad8e1d3e68eb3214fcbb398ca436873aa7c67 before fae6fea209a2d4db1582f608bd8cc8000721733a | curl |
| haxx curl | from 7.82.0 before 7.83.1 | NVD |
| netapp hci_bootstrap_os | Not specified | NVD |
| netapp clustered_data_ontap | Not specified | NVD |
| netapp solidfire,_enterprise_sds_&_hci_storage_node | Not specified | NVD |
| netapp solidfire_&_hci_management_node | Not specified | NVD |
| netapp h300s_firmware | Not specified | NVD |
| netapp h500s_firmware | Not specified | NVD |
| netapp h700s_firmware | Not specified | NVD |
| netapp h410s_firmware | Not specified | NVD |
| splunk universal_forwarder | from 8.2.0 before 8.2.12, from 9.0.0 before 9.0.6, 9.1.0 | NVD |
All scores
| curl | medium rating | |
| NVD | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| NVD | 4.0medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:N/A:N |
Classification
What each source says
CVE List
Using its HSTS support, curl can be instructed to use HTTPS directly insteadof using an insecure clear-text HTTP step even when HTTP is provided in theURL. This mechanism could be bypassed if the host name in the given URL used atrailing dot while not using one when it built the HSTS cache. Or the otherway around - by having the trailing dot in the HSTS cache and *not* using thetrailing dot in the URL.
curl
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.
NVD (es)
usando su soporte HSTS, curl puede ser instruido para usar HTTPS directamente en lugar de usar un paso no seguro de texto sin cifrar HTTP incluso cuando HTTP es proporcionado en la URL. Este mecanismo podría ser omitido si el nombre de host en la URL dada usara un endpoint mientras no es usado uno cuando es construida la caché HSTS. O al revés, si el endpoint estuviera en la caché HSTS y *no* es usado el punto al final en la URL
References
| https://hackerone.com/reports/1557449 | exploit, third-party-advisory | |
| https://security.netapp.com/advisory/ntap-20220609-0009/ | third-party-advisory | |
| http://www.openwall.com/lists/oss-security/2022/10/26/4 | mailing-list, patch, third-party-advisory | |
| https://security.gentoo.org/glsa/202212-01 | third-party-advisory, vendor-advisory | |
| http://www.openwall.com/lists/oss-security/2022/12/21/1 | mailing-list, third-party-advisory | |
| https://cert-portal.siemens.com/productcert/html/ssa-398330.html | ||
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-30115 changed 2026-10-14 | CVE Terms of Use |
| curl | CURL-CVE-2022-30115 changed 2026-10-25 | MIT |
| NVD | CVE-2022-30115 changed 2026-10-14 | Public domain |