3 ms·
I can see a security nightmare lurking around the corner.
by amelius 11y ago
I can see a security nightmare lurking around the corner.
- pcwalton 11y agoI don't know why this was downvoted. This vulnerability in Jetty was the result of sharing a buffer between requests: http://blog.gdssecurity.com/labs/2015/2/25/jetleak-vulnerability-remote-leakage-of-shared-buffers-in-je.html http://blog.gdssecurity.com/labs/2015/2/25/jetleak-vulnerabi...
- jaltekruse 11y agoThis is a reasonable concern, and as the other response mentions, it has happened, even to well-respected projects. I will however say that there are some ways to combat this if you are in a situation where security is an absolute must. While it removes some of the performance benefits, a simple defense is to include a call to clear the state of the object before letting it out of the pool, or upon returning it to the pool.