ACME TLS-SNI-01/02 challenge vulnerable when combined with shared hosting providers
The ACME TLS-SNI-01 and TLS-SNI-02 domain validation methods assumed that only the true domain owner could answer a challenge on a given hostname, but shared hosting providers route many domains through the same infrastructure. An attacker who controls one domain on such a provider could therefore obtain a certificate for another customer's domain.
Originally disclosed on HackerOne
- Triaged in 2 months
- Fixed in 3 months
- Disclosed after 4 months
The ACME TLS-SNI-01 (and TLS-SNI-02) specification assumed wrong in terms of how current major cloud providers routed and validated domains. This was reported earlier this week to Let's Encrypt, and they decided to disable the method. Today Let's Encrypt decided to sunset both TLS-SNI-01 and TLS-SNI-02 due to the vulnerability I found.
A full writeup of the finding and my side of the timeline can be found here:
Here is Let's Encrypt first and second announcement about the reported issue:
- 2018.01.09 Issue with TLS-SNI-01 and Shared Hosting Infrastructure
- 2018.01.11 Update Regarding ACME TLS-SNI and Shared Hosting Infrastructure
Regards, Frans
Impact
The ability to issue SSL-certificates for domains not under the attacker's control but served using the same shared hosting provider.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could obtain a trusted certificate for a domain they do not own, provided it is served by the same shared hosting provider; Let's Encrypt responded by disabling and then sunsetting both challenge types.
What the attacker needed
Control of one domain on the shared host; victim domain on the same shared host
The fix
The TLS-SNI-01 and TLS-SNI-02 validation methods were disabled and sunset by Let's Encrypt.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a website wants a free certificate, a certificate authority checks that the requester really controls the domain. One old check, TLS-SNI, asked the requester to prove control by serving a special certificate on a shared server. On shared hosting many customers' domains sit on the same server, so one customer could answer the check for someone else's domain and get a certificate for it.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.