HexBrain

curl · Report #1334763

CVE-2021-22947: STARTTLS protocol injection via MITM

Validstatus
mediumseverity
7upvotes
24 Sept 2021disclosed

How it was found

Summary:

A man-in-the-middle can inject cleartext forged responses to future encrypted commands by pipelining them to the STARTTLS response.

Steps To Reproduce:

Use the attached test case within the curl test system. It is based on IMAP FETCH with explicit TLS. Upon test failure, the downloaded file contains "You've been hacked!" rather than the requested mail.

Impact

Mailbox content forgery (IMAP, POP3). Sent mail content forgery (SMTP).

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original