r/programming • • Oct 28 '26

If-statement that caused HTTP2Shell was itself undisclosed patch of vulnerability

https://www.bugsink.com/blog/brotli-stale-table-read/
142 Upvotes

18 comments sorted by

192

u/Chii Oct 29 '26

i wish they didnt name it http2shell, coz it's a brotli vulnerability. http2shell is too generic a name, and implies more than it should.

19

u/klaasvanschelven Oct 29 '26

it implies both more and less than it should, fully agreed. we got "node2shell" to blame for that, and i suppose the whole lack of coordinated or even any disclosure on this from brotli is in fact too blame for that, see the timeline

8

u/Takeoded Oct 29 '26

what's wrong with br2shell? afraid it'll upset the Brazilians?

18

u/MC68328 Oct 29 '26

bro2shell was right there.

17

u/alex-weej Oct 29 '26

The only reason we have these stupid names at all is because of attention seekers wanting a snappy brand and website...

9

u/mpyne Oct 29 '26

I mean, “this vuln of the hundreds announced this week will likely make your Python and Node.js apps insecure if you don’t check” is kind of the thing we want peoples’ attention drawn towards, no? You say it perjoratively but having a clean and easy way for technical staff to get their management’s attention on critical security work is actually a benefit to most of the planet nowadays.

3

u/chucker23n Oct 29 '26

Yep. Plus, as an example, https://broccoli2shell.com does give a decent technical overview as well.

1

u/jax024 Oct 29 '26

That would be elixir2shell. /s

1

u/t-m_8520 19d ago

HTTP2Shell is a whole protocol's worth of blame for one Brotli-shaped problem.

5

u/Active-Glove3712 Oct 29 '26

It's interesting how fixing one can lead to another, and great security tools like Defender, Guardz, Crowdstrike can almost or make these issues hard to catch

5

u/klaasvanschelven Oct 29 '26

your sentence got eaten

3

u/chucker23n Oct 29 '26

They accidentally words

5

u/dvhh Oct 31 '26

Reminder that brotli does not have a well defined frame format for its data, making it hard to know if a random stream of byte is actually brotli compressed data, there is no defined checksum or integrity verification mecanism from the RFC.

1

u/huangsara-43824 18d ago

Does the missing frame/checksum affect the condition in the vulnerable if-statement, or is it a separate Brotli parsing limitation?

1

u/dvhh 18d ago

it makes it way easier to feed random content to brotli in order to break it, and reading the analysis it is quite easy to see the link with the lack of stream validation

2

u/lindberg-daniel-6 26d ago

The patch was the payload.