Lucene search

K
hackeroneNyymiH1:1874716
HistoryFeb 15, 2023 - 9:14 a.m.

Internet Bug Bounty: CVE-2023-23915: HSTS amnesia with --parallel

2023-02-1509:14:11
nyymi
hackerone.com
$480
197
internet bug bounty
hsts
cache overwrite
--parallel
security control
curl
https

0.001 Low

EPSS

Percentile

26.1%

curl’s HSTS cache saving behaves wrongly when multiple URLs are requested in parallel.

Using its HSTS support, curl can be instructed to use HTTPS instead of using an insecure clear-text HTTP step even when HTTP is provided in the URL. This HSTS mechanism would however surprisingly fail when multiple transfers are done in parallel as the HSTS cache file gets overwritten by the most recently completed transfer.

A later HTTP-only transfer to the earlier host name would then not get upgraded properly to HSTS.

Impact

Bypass intended security control.