You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been finding various places that are using io.netty.handler.codec.http.DefaultHttpHeaders with validation turned off, thus exposing those libraries to HTTP Response splitting.
Btw. you can remove the new.getArgument(0).getProperExpr() instanceof BooleanLiteral line to simplify the query a bit, as the cast to BooleanLiteral in the line below implies this. Unlike other languages, casts in QL won't fail with an exception; failing a cast simply means that the proposition doesn't hold.
Activity
aschackmull commentedon Oct 24, 2019
I think that looks like a fine contribution. Would you mind submitting it as a PR? You can place it in a new file, say
NettyResponseSplitting.ql, in https://github.com/Semmle/ql/tree/master/java/ql/src/Security/CWE/CWE-113.aschackmull commentedon Oct 24, 2019
Btw. you can remove the
new.getArgument(0).getProperExpr() instanceof BooleanLiteralline to simplify the query a bit, as the cast toBooleanLiteralin the line below implies this. Unlike other languages, casts in QL won't fail with an exception; failing a cast simply means that the proposition doesn't hold.Add CWE-113 check for io.netty.handler.codec.http.DefaultHttpHeaders
Add io.netty.handler.codec.http.DefaultHttpResponse to Netty Response…
Add io.netty.handler.codec.http.DefaultHttpResponse to Netty Response…