Skip to content

Commit 300833d

Browse files
committed
Release 3.1.0
1 parent 69957ca commit 300833d

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

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 3.1.0, this version includes a security patch related to XEE attacks.
14+
1315
This version is compatible with PHP 7.X and does not include xmlseclibs (you will need to install it via composer, dependency described in composer.json)
1416

1517
Security Guidelines

src/Saml2/version.json

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

tests/src/OneLogin/Saml2/UtilsTest.php

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

93-
$attackXEEutf16 = mb_convert_encoding('<?xml version="1.0" encoding="UTF-16"?>
93+
$attackXEEutf16 = mb_convert_encoding(
94+
'<?xml version="1.0" encoding="UTF-16"?>
9495
<!DOCTYPE results [<!ENTITY harmless "completely harmless">]>
9596
<results>
9697
<result>This result is &harmless;</result>
97-
</results>', 'UTF-16');
98+
</results>',
99+
'UTF-16'
100+
);
98101
try {
99102
$res4 = Utils::loadXML($dom, $attackXEEutf16);
100103
$this->assertFalse($res4);

0 commit comments

Comments
 (0)