Skip to content

Commit 618b649

Browse files
committed
Prepare 7.0.6: changelog, upgrade notes, allow beste/clock ~3.0 and test-framework ~1.11.7
1 parent 6d9d916 commit 618b649

3 files changed

Lines changed: 34 additions & 3 deletions

File tree

‎README.md‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,22 @@ search for the `module.enable` key and set `casserver` to true:
3131

3232
See the `config-templates` folder for examples of configuring this module
3333

34+
## Upgrading to 7.0.6
35+
36+
Version 7.0.6 fixes GHSA-9g9q-j468-7fp4. The service, logout url and proxy target service are now validated
37+
exactly as received, so values whose host part contains userinfo (`user@`), percent-encoding, backslashes or
38+
whitespace are refused. Make sure every `legal_service_urls` and `legal_target_service_urls` prefix ends with
39+
`/` after the host (for example `https://app.example.com/`) and every regular expression is anchored with `^`.
40+
See [docs/ChangeLog.md](docs/ChangeLog.md) for details.
41+
3442
## Debug
3543

3644
To aid in debugging you can print out the CAS ticket xml rather then returning
3745
a ticket id. Enable `debugMode` in `module_casserver.php` and then add a query
3846
parameter `debugMode=true` to the CAS login url.
3947

4048
Logging in to
41-
`https://cas.example.com/cas/login?debugMode=true&service=http://localhost/`
49+
`https://cas.example.com/cas/login?debugMode=true&service=https://app.example.com/cas/`
4250
would now print the xml for that service.
4351

4452
```xml

‎composer.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"ext-SimpleXML": "*",
3838
"ext-session": "*",
3939

40-
"beste/clock": "~4.0",
40+
"beste/clock": "~3.0 || ~4.0",
4141
"simplesamlphp/assert": "~2.0",
4242
"simplesamlphp/composer-module-installer": "~1.7",
4343
"simplesamlphp/simplesamlphp": "~2.5",
@@ -49,7 +49,7 @@
4949
"simplesamlphp/saml11": "~2.3"
5050
},
5151
"require-dev": {
52-
"simplesamlphp/simplesamlphp-test-framework": "~2.0",
52+
"simplesamlphp/simplesamlphp-test-framework": "~1.11.7 || ~2.0",
5353
"php-parallel-lint/php-parallel-lint": "^1.4"
5454
},
5555
"support": {

‎docs/ChangeLog.md‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Changelog
22

3+
## [7.0.6] - 2026-11-10
4+
5+
### Security
6+
7+
- Validate the service (login), return url (logout) and target service (proxy) exactly as received.
8+
A service must start with scheme://host[:port], its scheme and authority must not change when sanitized,
9+
and the authority must not contain userinfo, percent-encoding, backslashes, whitespace or control
10+
characters (GHSA-9g9q-j468-7fp4) (Marko Ivančić)
11+
12+
### Changed
13+
14+
- Recommend prefixes that end after the host, and anchored regular expressions, in the example configuration (Marko Ivančić)
15+
- Allow beste/clock ~3.0 || ~4.0 (#84)
16+
- Allow simplesamlphp/simplesamlphp-test-framework ~2.0 (#85)
17+
18+
### Upgrade notes
19+
20+
- Services, logout urls and proxy target services whose host part contains `user@`, `%`-encoding,
21+
backslashes, whitespace or control characters, or that do not start with `scheme://`, are now refused.
22+
- Check `legal_service_urls` and `legal_target_service_urls`: each prefix should end with `/` after the host
23+
(e.g. `https://app.example.com/`) and each regular expression should be anchored with `^`
24+
(e.g. `|^https://app\.example\.com/|`). See `config/module_casserver.php.dist`.
25+
326
## [7.0.5] - 2026-08-11
427

528
### Changed

0 commit comments

Comments
 (0)