Skip to content

Commit db784e0

Browse files
committed
Release 2.15.0
1 parent c6ca992 commit db784e0

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ and supported by OneLogin Inc.
1010
Warning
1111
-------
1212

13+
Update php-saml to 2.15.0, this version includes a security patch related to XEE attacks
14+
1315
php-saml is not affected by [201803-01](https://simplesamlphp.org/security/201803-01)
1416

1517
Update php-saml to 2.10.4, this version includes a security patch related to

lib/Saml2/version.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"php-saml": {
3-
"version": "2.14.0",
4-
"released": "07/06/2018"
3+
"version": "2.15.0",
4+
"released": "28/01/2019"
55
}
66
}

tests/src/OneLogin/Saml2/UtilsTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,14 @@ public function testXMLAttacks()
102102
$this->assertEquals('Detected use of DOCTYPE/ENTITY in XML, disabled to prevent XXE/XEE attacks', $e->getMessage());
103103
}
104104

105-
$attackXEEutf16 = mb_convert_encoding('<?xml version="1.0" encoding="UTF-16"?>
105+
$attackXEEutf16 = mb_convert_encoding(
106+
'<?xml version="1.0" encoding="UTF-16"?>
106107
<!DOCTYPE results [<!ENTITY harmless "completely harmless">]>
107108
<results>
108109
<result>This result is &harmless;</result>
109-
</results>', 'UTF-16');
110+
</results>',
111+
'UTF-16'
112+
);
110113
try {
111114
$res4 = OneLogin_Saml2_Utils::loadXML($dom, $attackXEEutf16);
112115
$this->assertFalse($res4);

0 commit comments

Comments
 (0)