Conversation

FWIW: It's *very* entertaining to read the nginx source code (full of state machines that try to do minimal work during parsing) and look at what hilarious variants nginx will still recognize as valid HTTP. Often only one letter of a keyword will be checked.
Quote Tweet
Anyone chiding other developers for not using state machines should be first forced to read the nginx source code followed by writing an HTML parser in verilog.
6
137
Replying to
last time i looked at it, it seemed stricter in places than i (as a security engineer trying to write an exploit) would like, which was comforting to me (as a security engineer trying to make sure things are less exploitable)
1
14
without length constraints, etc. it'll probably be immediate XSS too plus (though this probably won't be an issue if the injection is in nginx), there's the reverse proxies that'll do privileged things based on application response headers, which is frankly terrifying
1
1
This reminds me that I need to check if Firefox and Safari finally implement github.com/w3c/webappsec- so I can switch to hash-source + SRI for scripts. I checked a couple years ago and they still hadn't implemented it literally YEARS after standardization.