- Dec 29, 2017
-
-
Tim van Dijen authored
-
- Dec 14, 2017
-
-
Luke Leber authored
Added 'no-store' to the cache-control header to prevent Google Chrome from serving the 302 redirect from disk cache
-
- Dec 05, 2017
-
-
Jaime Pérez Crespo authored
The last version of psalm breaks with array_key_exists(), so we use isset() instead.
-
- Nov 14, 2017
-
-
Kristof Bajnok authored
Don't bail out if the MDQ cache is broken or the query fails, because later other metadata sources might provide the metadata for the entity.
-
- Oct 25, 2017
-
-
Jaime Pérez Crespo authored
-
- Oct 19, 2017
-
-
fentie authored
-
- Oct 16, 2017
-
-
Jaime Pérez Crespo authored
-
Jaime Pérez Crespo authored
-
Jaime Pérez Crespo authored
This reverts commit 1218f38a.
-
Jaime Pérez Crespo authored
When we are invoked from an outside application, SimpleSAMLphp cannot use 'baseurlpath' and in that case it tries to guess the current URL. The port was always added, even if the default port was used, leading to possible issues when comparing URLs that should actually be equivalent. This resolves #696.
-
- Oct 10, 2017
-
-
Jaime Pérez Crespo authored
In order to fix this, we first sanitize any URL given to SimpleSAML\Utils\HTTP::checkURLAllowed() so that we make sure we have a true URL without spurious characters. Secondly, we stop using an "onload" event in the body of the redirect page to trigger the redirect automatically. Instead, we use a "meta refresh" redirection. This double remediation is because there were two issues here: one, we were printing user input inside a chunk of javascript code. The other exploits the fact that the header() function silently breaks when a null character is part of the URL given to a "Location" header. In that case, the HTTP 302 Redirection doesn't happen, and then the browser loads the HTML and goes through it, running the injected javascript. This fixes #699.
-
- Sep 07, 2017
-
-
Jaime Pérez Crespo authored
Fix build as a side effect. When vimeo/psalm tries to resolve dependencies, it now fails with this.
-
Jaime Pérez Crespo authored
This method allows us to parse a URL and "rebase" it based on the $config['application']['baseURL'] configuration option. Thanks to this, applications will be able to configure a canonical base URL for the application, effectively translating any URL that might be built incorrectly (e.g. not using HTTPS because that is offloaded to a reverse proxy).
-
- Sep 01, 2017
-
-
Jaime Pérez Crespo authored
-
Jaime Pérez Crespo authored
-
Jaime Pérez Crespo authored
-
Jaime Pérez Crespo authored
Also make the default namespace parameter mandatory, so that the function is not ADFS-specific.
-
Tim van Dijen authored
-
- Jul 20, 2017
-
-
Scato Eggen authored
When opcache.validate_timestamps is disabled, then the new metadata will not be read after a metarefresh. This can be solved by adding the metadata file to an opcache blacklist, but calling opcache_invalidate() after writing a file is a nice out-of-the-box solution. Hopefully, this will enable everybody that is using simplesamlphp to disable opcache.validate_timestamps without running into problems.
-
- Jul 05, 2017
-
-
Patrick Radtke authored
A PHPUnit listener unsets SSP environmental variables and attempts to restore globals.
-
- May 05, 2017
-
-
Matt Schwager authored
This also required adding an additional argument to SimpleSAML\Utils\Crypto::loadPrivateKey to ease in testing. Without this additional argument, SimpleSAML_Configuration::getBaseDir eventually gets called to determine the private key location. This doesn't work well with vfsstream. This argument shouldn't cause too much trouble, and seems cohesive enough with the function's purpose.
-
Jaime Pérez Crespo authored
The reason was the lack of conversion to integer for each character of the strings before applying the XOR operator to them. The operator returns always an empty string when applied to two characters, and applying a binary-wise OR between 0 and an empty string, yields 0. Therefore, $diff is always 0, and the function returns true for every two strings with same length, regardless of their contents.
-
- Apr 26, 2017
-
-
Jaime Pérez Crespo authored
-
Jaime Pérez Crespo authored
-
Jaime Pérez Crespo authored
This reverts commit b1b0d0ef.
-
Jaime Pérez Crespo authored
This reverts commit c441f9c9.
-
Jaime Pérez Crespo authored
It looks like mb_substr() doesn’t cope well with NULL as the third parameter in PHP 5.3.
-
Jaime Pérez Crespo authored
-
Jaime Pérez Crespo authored
-
Jaime Pérez Crespo authored
-
- Mar 30, 2017
-
-
Jaime Pérez Crespo authored
IVs must be random and one-time (never reused). Additionally, by deriving it from the key, the key length was effectively reduced to 128 bits.
-
Jaime Pérez Crespo authored
It actually needs a DOMNode, so it has been renamed to isDOMNodeOfType(). Additionally, some superfluous asserts() have been removed, and SimpleSAML\Utils\XML::getDOMChildren() has also changed its signature, as it should also receive a DOMNode, not a DOMElement.
-
Jaime Pérez Crespo authored
-
- Mar 27, 2017
-
-
Sergio Gomez authored
-
- Mar 17, 2017
-
-
Jaime Pérez Crespo authored
Use it when constant-time comparisons are needed to avoid side-channel attacks.
-
- Feb 22, 2017
-
-
Jaime Pérez Crespo authored
To put it differently, to avoid OSX machines being identified as windows boxes, “darwin” should be evaluated *before* “win”.
-
- Jan 20, 2017
-
-
Tyler Antonio authored
-
- Jan 19, 2017
-
-
dev authored
-
- Jan 16, 2017
-
-
Jaime Pérez Crespo authored
If a standard port is specified, then ignore it. Otherwise, include the port in the check so that non-standard ports must be whitelisted explicitly.
-
- Jan 10, 2017
-
-
Jaime Pérez authored
This resolves #476.
-