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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d02bac8c935c4d507958fe156c40594db905fe48
4
- data.tar.gz: 46e0b658bb92f769a0a4f10df098ebd912be9ec8
3
+ metadata.gz: d57c5f439e27b14820e79e77ce791f2011100a90
4
+ data.tar.gz: bf3028731541299c9d3553cbc5b613a5be435020
5
5
  SHA512:
6
- metadata.gz: afef8cf1ea14e68263dded8a98ef44bb1bca63c94322386e23ffe67eb60d64bd07f98dae75d15d72b6b3a1fd1fea144da84fc6ea75ee5ce719e7a2abbeba19f0
7
- data.tar.gz: e350bcbfba23e2ca8facac0dcba29a3b0373865461007c2a316b07a0bd01b584b6fa0e1fa1ce49ca6462e55198a38e1f3cab3c7d441392b2e0befd56be2470be
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 = "eJztwTEBAAAAwqD1T20MH6AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
69
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
70
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
71
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
72
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
73
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
74
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
75
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAL4G
76
+ BOMB
30
77
  expect { Onelogin::Saml::LogoutResponse.parse(bomb) }.to raise_error("SAML assertion too large")
31
78
  end
32
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.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-23 00:00:00.000000000 Z
17
+ date: 2017-03-27 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: nokogiri