-
Notifications
You must be signed in to change notification settings - Fork 47
[SITE-4575] Update SimpleSAMLphp security requirements to 2.3.7. #402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
203 commits
Select commit
Hold shift + click to select a range
6b8907c
add CVE note to installation notes for simplesamlphp config
jazzsequence f74d5ec
bump composer dependencies
jazzsequence 57ff884
update changelog
jazzsequence 8e68274
Update SimpleSAMLphp security requirements to 2.3.7.
lcatlett 43733ea
Merge branch 'develop' into cve-2025-27773
jazzsequence 62ff8a0
Merge branch '400-cve-2025-27773' into cve-2025-27773
jazzsequence b57b645
check the class for simple saml version before other methods
jazzsequence 8c7a98f
remove old wp test installer
jazzsequence 7107ce7
use wpunit helpers
jazzsequence b38564e
ignore phpunit dotfiles
jazzsequence 21193fd
fix link to 2.0+ simplesaml version file
jazzsequence 371d6ee
allow ci to bypass user input
jazzsequence b74bdf5
update unit tests and run simplesaml tests
jazzsequence 0a74f50
update behat tests to use 2.4.0
jazzsequence 4e8e8ac
ignore locally installed simplesaml
jazzsequence 465f9d5
linting fixes
jazzsequence a75d008
test on 8.3
jazzsequence de3c922
run chmod +x for helpers
jazzsequence db6ab10
remove php 8.3 tests
jazzsequence 585c0e5
fix readme.md
jazzsequence fc7dc23
install wp-cli
jazzsequence b44f4d1
remove chmod
jazzsequence 80e1e9e
bump tested-up-to version to match fixture
jazzsequence 77cce91
try modifying the (new in 2.x) twig file
jazzsequence 96a5b4c
cleanup composer cache for behat tests
jazzsequence bcca5ef
add new behat bootstrap
jazzsequence 375f004
maybe fix gherkin i18n error in behat.yml
jazzsequence 8f72676
change the path to the gherkin extension
jazzsequence fe24b52
remove the gherkin config
jazzsequence 4c92a77
turn xdebug off
jazzsequence 1c69211
use cachedarraykeywords hack
jazzsequence f59ca92
patch cachedarraykeywords
jazzsequence 3e98ae0
put the gherkin config at the root
jazzsequence 977d235
remove hack and restore test params
jazzsequence 7d20221
require specific versions of behat and gherkin
jazzsequence 31f6ff4
add ids to the saml login form
jazzsequence df208da
composer install saml dependencies
jazzsequence f5399ae
copy simplesamlphp into /simplesaml public dir
jazzsequence 68ec4e5
remove cd
jazzsequence 492da75
make the directory before copying stuff into it
jazzsequence 550b7e3
only cleanup if the tests passed
jazzsequence 85dcbb2
combine tests and cleanup
jazzsequence 4cff697
output a url to the pantheon multidev
jazzsequence 7df1875
update the cleanup to delete the 5 oldest ci- environments
jazzsequence a39e7cf
use ! {command} syntax
jazzsequence 0792e4d
rewrite the dirname in the include
jazzsequence d62cf45
fix failing bash
jazzsequence b919fc4
fix the url
jazzsequence 26d7c41
generate a valid config.php
jazzsequence ec3e55b
copy the templates directory over, too
jazzsequence 3560947
fix the fixture idp file
jazzsequence a8aa12f
replace .additions files with actual configuration files we copy
jazzsequence 2889481
refactor prepare script to use copied configuration files
jazzsequence 7c267cc
restore dynamic idp connection type
jazzsequence 6c9d4c9
run the temp dir setup after wp is installed
jazzsequence f3d1c44
copy the certs directory
jazzsequence 590e38a
remove redundant tempdir config
jazzsequence 3506425
break out the login url in logging
jazzsequence 3c7ed1c
change DYNAMIC:1 to DEFAULT for idp metadata
jazzsequence 74ad343
use a full url for the baseurlpath to simplesaml
jazzsequence 3456629
update scripts to copy the full php files
jazzsequence de89c45
we need to copy the metadata over
jazzsequence 0340ee1
explicit config for modules
jazzsequence 3e5ee78
clear cache after install
jazzsequence c70f011
point to the correct location of the cert
jazzsequence 19725bd
set the simplesamlphp config dir
jazzsequence 1b132f9
set the environment variable in a mu-plugin rather than in the theme
jazzsequence f2fe84d
config updates
jazzsequence 87352d2
fix filename typo
jazzsequence 19328dd
rename the file to match the copy
jazzsequence 76bc43c
create the authsources.php file on the fly
jazzsequence 694895a
rename the base authsources file for phpunit
jazzsequence bf70df3
don't copy the file into simplesamlphp/ because that's where we're cr…
jazzsequence 729c0fe
saml expects strings not arrays
jazzsequence a69f3d8
sanitize incoming auth attributes
jazzsequence 66f2983
filter out any weird injected array attributes
jazzsequence 1c03450
add metadata.sources
jazzsequence 0dfd782
dynamically create a 2.x saml20-sp-remote.php file instead of the 1.1…
jazzsequence 21448f6
remove the sed for the authsources
jazzsequence 96bc832
use /files as the location for the tmp directory
jazzsequence b675165
set example-userpass as the default authentication
jazzsequence fc8db1a
add more config stuff
jazzsequence 03c4896
add a debug file to try to debug the auth state
jazzsequence e9d11ee
fix filename typo
jazzsequence f5e7aee
fix path to include file
jazzsequence 1fc3d40
fix the path to the sqlite store
jazzsequence ae775f0
use phpsession instead of sqlite
jazzsequence 049a0f1
add some debugging and new config
jazzsequence 996a301
debug is not a boolean
jazzsequence 6e280b8
move auth.admin source and fix baseurlpath & update debugging
jazzsequence 59228ef
undo that thing
jazzsequence 7d8fbdd
support 1.x or 2.x autoload files
jazzsequence ec56c4c
define a constant instead of using putenv
jazzsequence 106c53b
remove authstate debugging
jazzsequence c049ae8
restore sqlite data store
jazzsequence b8b329f
re-add sp-remote
jazzsequence 23b5a5e
add default-sp to authsources.php dynamic file creation
jazzsequence 970c9e1
dopy sp-remote (and don't copy debug_authstate)
jazzsequence f76d13b
copy routing, attributemap and lib
jazzsequence b2e56cc
remove default-sp definition
jazzsequence 7d799b5
update functions.php
jazzsequence a0b044b
update the path to the loginuserpass twig file
jazzsequence b05e5ef
just sed the login button
jazzsequence 56deb3d
the submit button is a button, not an input
jazzsequence 620b117
replace Login with Submit
jazzsequence ed53913
remove the second submit
jazzsequence 7bc7c69
modify the loginuserpass javascript file so behat can log in
jazzsequence 9821e5a
also remove the button.disabled line
jazzsequence 1543f5d
hack admin login behat helpers
jazzsequence 5dc4afe
fix the behat tests actually
jazzsequence 271bc02
add debugging
jazzsequence ff1752a
debug the else
jazzsequence 1bf9dfd
try to simulate what the js does without js
jazzsequence b21a6dc
submit the postback form
jazzsequence f7563aa
be less restrictive about inputs
jazzsequence 50eea19
use dom crawler
jazzsequence 1ea3b21
bump version
jazzsequence 535e546
add simplesamlphp note to upgrade notice
jazzsequence befdfd8
clean up linting for bash scripts
jazzsequence 14cb653
run shellcheck linting
jazzsequence 1217df4
update changelog
jazzsequence 085c032
default to false
jazzsequence 00aadfd
remove unnecessary else
jazzsequence 043b046
don't run test-all-versions in ci
jazzsequence 9064f76
Apply suggestions from code review
jazzsequence 2006dee
Apply suggestions from code review
jazzsequence 3ee5756
use exit, not return
jazzsequence edd2ffc
remove the test all versions scripts
jazzsequence aeeef9a
test all versions of simplesamlphp
jazzsequence 32629f0
fix unclosed <<
jazzsequence a76c26e
fix the nightly job
jazzsequence 8d02b29
send that export to the bash environment actually
jazzsequence a788ebb
put the conditional in the right place
jazzsequence b23a82b
remove stray `
jazzsequence 748d61b
revert restore cache changes
jazzsequence 2d20425
re-add files for 1.18 version of simplesaml
jazzsequence 1dd866b
final shellcheck fixes for 1.18 script
jazzsequence 69e67c4
temporarily disable cleanup so we can manually evaluate the update
jazzsequence 1cdd1f3
also output what simplesaml version we're testing
jazzsequence 0f78516
make the bars longer
jazzsequence 87f3e23
copy required files/folders
jazzsequence e277331
set the download url as a variable
jazzsequence d490110
restore the link
jazzsequence f6bc1d6
remove the workflow wait after upgrading php version
jazzsequence 500ab26
we need 1.18 versions of idp and sp files, too
jazzsequence 5a83a58
BASH_DIR includes the 1.18 subdir
jazzsequence 3482229
move the style.css up a dir
jazzsequence ceade3f
get the parent directory of bashdir
jazzsequence bbcab71
style.css is in /fixtures
jazzsequence 9871a35
move the authsources.php.additions into the 1.18 subdir
jazzsequence a14ccd3
use a FIXTURES_DIR variable for non-1.18-specific things
jazzsequence 6efe156
cd into fixture dir before copying wp-saml-auth plugin
jazzsequence b77e091
fix the typo in FIXTURES_DIR creating an infinite loop
jazzsequence 75f92aa
go one directory higher
jazzsequence e3444a5
actually, using fixtures_dir here is confusing
jazzsequence 74c16ea
just push dangit
jazzsequence 83fd715
cleans up the logic for the admin notice
jazzsequence 5dfcb98
bump required wp version
jazzsequence 0b8b8ba
rename behat tests
jazzsequence 704411d
test for 1.18 admin notice
jazzsequence cf0b237
PHPCBF: Fix coding standards
de3828c
change the paths and destination
jazzsequence 6870faf
remove travis ci badge
jazzsequence 00d5f82
/home/tester is the correct one
jazzsequence 776018d
use CIRCLE_WORKING_DIRECTORY
jazzsequence 1e9a5a8
remove tests for 2.3.7 simplesaml
jazzsequence 5f008b9
add a lot more error handling
jazzsequence 1207c43
okay fine DON'T use CIRCLE_WORKING_DIRECTORY
jazzsequence b2178af
update the behat syntax
jazzsequence fe20568
add behat test for 2.0.0
jazzsequence df88354
fix version identification
jazzsequence 932f1df
update the comment
jazzsequence 130004a
for 2.0.0, add additional tests
jazzsequence aa3b4e4
fix the path to the behat file
jazzsequence e97ef27
it's not security alert, it's security recommendation
jazzsequence ef11baf
do the cleanup
jazzsequence d13228f
delete 10 at a time
jazzsequence b9583e7
change error to warning
jazzsequence cb51fec
re-add the possible base paths to simplesaml
jazzsequence eb1194f
don't number the comments
jazzsequence c516244
catch exceptions and output to debug logs
jazzsequence b20974d
linting fixes
jazzsequence 4fbd596
allow cleanup to fail without failing the workflow entirely
jazzsequence 4c2de9b
refactor to use a get_simplesamlphp_autoloader method
jazzsequence 2299bdd
refactor and update error handling
jazzsequence 9c5e7fe
set_provider should use get_simplesamlphp_autoloader
jazzsequence ad23d5a
only run cleanup once if all three sets of behat tests pass
jazzsequence 857a51a
use the filter first
jazzsequence 121ff38
add documentation for new filters
jazzsequence 6a88a5e
fix ci stuff
jazzsequence 14c7f99
make sure to attach the workspace
jazzsequence 9570312
(possibly) correctly attach workspace
jazzsequence 113e1ea
name individual files correctly
jazzsequence 146adfd
fix shellcheck warnings
jazzsequence f35a70c
flip upgrade notice so newer is higher
jazzsequence 1ab4afd
use the variable we define earlier
jazzsequence 72d1ef1
switch get_simplesamlphp_autoloader to a static method
jazzsequence 75a03c4
use WP_SAML_Auth::get_simplesamlphp_autoloader for autoload path
jazzsequence a32be8a
refactor to use bootstrap process for WP SAML Auth plugin
jazzsequence a651de9
add recursion guard for autoloader option resolution and improve auto…
jazzsequence 47bcecf
PHPCBF: Fix coding standards
b3ca1d7
add period
jazzsequence 08b9c13
bump minimum supported wp version
jazzsequence File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| Feature: Admin Notice for SimpleSAMLphp 1.18 Vulnerability | ||
| In order to ensure administrators are aware of critical security issues | ||
| As a site administrator | ||
| I need to see an admin notice regarding the SimpleSAMLphp vulnerability | ||
|
|
||
| Scenario: Admin user sees the SimpleSAMLphp vulnerability notice | ||
| Given I log in as an admin | ||
| Then I should be on "/wp-admin/" | ||
| And I should see "Security Alert:" in the "div.notice.notice-error[data-slug='wp-saml-auth'][data-type='simplesamlphp-critical-vulnerability']" element | ||
| And I should see "The SimpleSAMLphp version used by the WP SAML Auth plugin (1.18.4) has a critical security vulnerability (CVE-2023-26881). Please update to version 2.0.0 or later. Learn more." in the "div.notice.notice-error[data-slug='wp-saml-auth'][data-type='simplesamlphp-critical-vulnerability'] p" element | ||
| And I go to "/wp-admin/options-general.php" | ||
| Then I should see "Security Alert:" in the "div.notice.notice-error[data-slug='wp-saml-auth'][data-type='simplesamlphp-critical-vulnerability']" element | ||
| And I should see "The SimpleSAMLphp version used by the WP SAML Auth plugin (1.18.4) has a critical security vulnerability (CVE-2023-26881)" in the "div.notice.notice-error[data-slug='wp-saml-auth'] p" element |
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These ignores come from adding
wpunit-helpersas a dependency.