Drop QUIC packets with invalid flags

We recently noticed an amplification attack where a QUIC server was receiving non-QUIC packets and responding to them with stateless resets. Since the purpose of stateless reset packets is to notify clients of server state loss, there is no purpose to sending them when the received packet is invalid, as no client could have generated that.

Protected by FLAGS_quic_restart_flag_quic_drop_invalid_flags.

PiperOrigin-RevId: 391182458
4 files changed
tree: 8a270e490badd6f262df7532f56766b98b8fbefd
  1. common/
  2. epoll_server/
  3. http2/
  4. quic/
  5. spdy/
  6. CONTRIBUTING.md
  7. LICENSE
  8. README.md
README.md

QUICHE

QUICHE stands for QUIC, Http/2, Etc. It is Google‘s production-ready implementation of QUIC, HTTP/2, HTTP/3, and related protocols and tools. It powers Google’s servers, Chromium, Envoy, and other projects. It is actively developed and maintained.

There are two public QUICHE repositories. Either one may be used by embedders, as they are automatically kept in sync:

To embed QUICHE in your project, platform APIs need to be implemented and build files need to be created. Note that it is on the QUICHE team's roadmap to include default implementation for all platform APIs and to open-source build files. In the meanwhile, take a look at open source embedders like Chromium and Envoy to get started:

QUICHE is only supported on little-endian platforms.