webhookr 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 2167961 Ontario Inc., Zoocasa <code@zoocasa.com>
1
+ Copyright (c) 2013 2167961 Ontario Inc., Zoocasa <code@zoocasa.com>
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person
4
4
  obtaining a copy of this software and associated documentation
@@ -19,4 +19,4 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
19
  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
20
  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
21
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
- OTHER DEALINGS IN THE SOFTWARE.
22
+ OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -99,6 +99,13 @@ rake webhookr:services
99
99
 
100
100
  ## <a name="security"></a>Webhookr Security
101
101
 
102
+ ### Important security note
103
+
104
+ A timing attack vulnerability was discovered in versions of webhookr prior to 0.2.0.
105
+ It is recommended that you upgrade to as soon as possible to at least version 0.2.0.
106
+
107
+ Please see revision ccafc8248559a09e090cf824c8454c9824555a06 for details.
108
+
102
109
  ### General security issues with webhooks
103
110
 
104
111
  A webhook is by design, a http post to your application that results in code execution.
@@ -130,7 +137,7 @@ If you are sending sensitive data via webhooks, it is recommended you use HTTPS.
130
137
 
131
138
  ## <a name="works_with"></a>Works with:
132
139
 
133
- webhookr works with Rails 4.0 and 3.1, and has been tested on the following Ruby
140
+ webhookr works with Rails 4.0 and 3.1+, and has been tested on the following Ruby
134
141
  implementations:
135
142
 
136
143
  * JRuby 1.7.4
@@ -165,5 +172,5 @@ webhookr is released under the [MIT license](http://www.opensource.org/licenses/
165
172
  ## Author
166
173
 
167
174
  * [Gerry Power](https://github.com/gerrypower)
175
+ * [J Smith](https://github.com/dark-panda)
168
176
 
169
- ## <a name="Version History"></a>Version History
data/lib/webhookr.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require "securecompare"
1
2
  require "webhookr/engine"
2
3
 
3
4
  module Webhookr
@@ -37,7 +37,7 @@ module Webhookr
37
37
  end
38
38
 
39
39
  def validate_security_token(token)
40
- raise Webhookr::InvalidSecurityTokenError if token.nil? || token != configured_security_token
40
+ raise Webhookr::InvalidSecurityTokenError if token.nil? || !SecureCompare.compare(token, configured_security_token)
41
41
  end
42
42
 
43
43
  def service_adapter
@@ -1,3 +1,3 @@
1
1
  module Webhookr
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
data/webhookr.gemspec CHANGED
@@ -19,4 +19,5 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = ["lib"]
20
20
 
21
21
  s.add_dependency "rails", [">= 3.1"]
22
+ s.add_dependency "securecompare"
22
23
  end
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: webhookr
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.2.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Gerry Power
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-29 00:00:00.000000000 Z
12
+ date: 2013-08-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -27,6 +27,22 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '3.1'
30
+ - !ruby/object:Gem::Dependency
31
+ name: securecompare
32
+ type: :runtime
33
+ requirement: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
30
46
  description: Webhookr - easily and securely add webhooks to your Rails app.
31
47
  email:
32
48
  - code@zoocasa.com