ruby-saml-mod 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/onelogin/saml/base_assertion.rb +1 -1
- data/spec/logout_response_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: d57c5f439e27b14820e79e77ce791f2011100a90
|
4
|
+
data.tar.gz: bf3028731541299c9d3553cbc5b613a5be435020
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09cccef0a51735915597d450b258b7bf41abb686d1e5a4f40df5a17a62df192cf7b86c1663ff27ef482ac6ca1544fa53f13d49fd51930f3e9fff4a5b8d8881ca'
|
7
|
+
data.tar.gz: 45db1ce0200c6d08e776caa3321498d672475570530e89113195c55680f2ce9c662a308220be32395385b509e87b134513b7bd5c0e62e6786635ecbf08efcd45
|
@@ -63,7 +63,7 @@ module Onelogin::Saml
|
|
63
63
|
assertion.base64_assertion = raw_assertion
|
64
64
|
|
65
65
|
decoded_xml = Base64.decode64(raw_assertion)
|
66
|
-
zlib = Zlib::Inflate.new
|
66
|
+
zlib = Zlib::Inflate.new(-Zlib::MAX_WBITS)
|
67
67
|
|
68
68
|
xml = ''
|
69
69
|
# do it in 1K slices, so we can protect against bombs
|
@@ -26,7 +26,54 @@ describe Onelogin::Saml::LogoutResponse do
|
|
26
26
|
|
27
27
|
it "protects against deflate bombs" do
|
28
28
|
# this decompresses to 2MB of NULLs
|
29
|
-
bomb =
|
29
|
+
bomb = <<BOMB
|
30
|
+
7cExAQAAAMKg9U9tDB+gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
31
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
32
|
+
AAAAAAAAA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79
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-saml-mod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OneLogin LLC
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2017-03-
|
17
|
+
date: 2017-03-27 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: nokogiri
|