about summary refs log tree commit homepage
path: root/lib/zbatery.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-04-19 14:14:46 -0700
committerEric Wong <normalperson@yhbt.net>2010-04-19 14:14:46 -0700
commit5764336aa3785af8a08be7ec7b40846ec139eb6c (patch)
tree88bd73288d7c0b980ad81a47d984c98a979bc21c /lib/zbatery.rb
parentbf277616bf1a13385150260c8bccb1d97b830bec (diff)
downloadzbatery-5764336aa3785af8a08be7ec7b40846ec139eb6c.tar.gz
Zbatery 0.2.1 - use a less-broken parser from Unicorn v0.2.1
This release fixes a denial-of-service vector for deployments
exposed directly to untrusted clients.

The HTTP parser in Unicorn <= 0.97.0 would trip an assertion
(killing the associated worker process) on invalid
Content-Length headers instead of raising an exception.  Since
Rainbows! and Zbatery supports multiple clients per worker
process, all clients connected to the worker process that hit
the assertion would be aborted.

Deployments behind nginx are _not_ affected by this bug, as
nginx will reject clients that send invalid Content-Length
headers.

The status of deployments behind other HTTP-aware proxies is
unknown.  Deployments behind a non-HTTP-aware proxy (or no proxy
at all) are certainly affected by this DoS.

Users are strongly encouraged to upgrade as soon as possible,
there are no other changes besides this bug fix from Rainbows!
0.91.0 nor Unicorn 0.97.0

This bug affects all previously released versions of Rainbows!
and Zbatery.
Diffstat (limited to 'lib/zbatery.rb')
-rw-r--r--lib/zbatery.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zbatery.rb b/lib/zbatery.rb
index 0b41906..75b03ba 100644
--- a/lib/zbatery.rb
+++ b/lib/zbatery.rb
@@ -4,7 +4,7 @@ require 'rainbows'
 module Zbatery
 
   # current version of Zbatery
-  VERSION = "0.2.0"
+  VERSION = "0.2.1"
 
   class << self