Advisory

GHSA-cvrm-5hp6-h523

Also known as: CVE-2025-65954

Summary

SimpleSAMLphp casserver: Open Redirect in logout

Details

Summary

The logout endpoint accepts a url query parameter to redirect to. casserver treats that url as trusted, and either (depending on configuration) redirects the browser there, or shows a "you've been logged out" page with a link to continue to that url.

There are a number of other things broken with logout in 7 (cas v3 uses a different query parameters, etc)

Details

https://github.com/simplesamlphp/simplesamlphp-module-casserver/blob/21418f7efbea8c4f078fd4a7d1b9eacf94dd4941/src/Controller/LogoutController.php#L104

Previous module checked the url against the valid service urls.

PoC

The docker instructions from the README.md run an image with a vulnerable config.

Accessing https://localhost/cas/logout?url=https://google.com will redirect to Google

Impact

Impacted configs have

'enable_logout' => true,

and are most impacted if they also have

'skip_logout_page' -> true,

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-05-15 16:21 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

simplesamlphp/simplesamlphp-module-casserver

Packagist · All systems

Affected

  • introduced 7.0.0-rc1, fixed 7.0.0 (ecosystem)

Fixed versions

7.0.0

Fix

The export has no generic command for this ecosystem.

simplesamlphp/simplesamlphp-module-casserver

Packagist · All systems

Affected

  • introduced 0, fixed 6.3.1 (ecosystem)

Fixed versions

6.3.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences