saml2 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/saml2/authn_request.rb +1 -1
- data/lib/saml2/version.rb +1 -1
- data/spec/lib/authn_request_spec.rb +48 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c19f162d8dcc43d0a264bc4c1b1f1f0e497b476
|
4
|
+
data.tar.gz: e0d34ccb811ce49f36449d7ec843f2f58516a733
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70083ff8f78e8eaf3302c548babff43b54478d7bc5dc45346612e18b378695570dbcae619c1776150d80bee59f60dcf658b7848fd78fe0e9e3b592f7e6c7468a
|
7
|
+
data.tar.gz: 863e91a34172a34526f20935b092160185e2189edf3881d98e7cb82d577c89d16ff1d5a4c21ad0b08eee602348523b74326409161b5d0aa59e84191f6baaef1d
|
data/lib/saml2/authn_request.rb
CHANGED
@@ -17,7 +17,7 @@ module SAML2
|
|
17
17
|
begin
|
18
18
|
raise MessageTooLarge if authnrequest.bytesize > SAML2.config[:max_message_size]
|
19
19
|
authnrequest = Base64.decode64(authnrequest)
|
20
|
-
zstream = Zlib::Inflate.new
|
20
|
+
zstream = Zlib::Inflate.new(-Zlib::MAX_WBITS)
|
21
21
|
xml = ''
|
22
22
|
# do it in 1K slices, so we can protect against bombs
|
23
23
|
(0..authnrequest.bytesize / 1024).each do |i|
|
data/lib/saml2/version.rb
CHANGED
@@ -17,7 +17,54 @@ module SAML2
|
|
17
17
|
end
|
18
18
|
|
19
19
|
it "doesn't allow deflate bombs" do
|
20
|
-
bomb =
|
20
|
+
bomb = <<-BOMB
|
21
|
+
7cExAQAAAMKg9U9tDB+gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
22
|
+
AA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
+
BOMB
|
21
68
|
-> { AuthnRequest.decode(bomb) }.must_raise MessageTooLarge
|
22
69
|
end
|
23
70
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saml2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|