MediumGHSA-ppm4-r2vc-pg74

SimpleSAMLphp Information Disclosure vulnerability

Published 28 May 2024 · Updated 3 Dec 2024

Is your project on an affected simplesamlphp/simplesamlphp?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
>=1.17.0 <1.17.8
Fixed in
1.17.8
Update to the fixed version for your release line, for example:composer require simplesamlphp/simplesamlphp:^1.17.8

Details

Background

SimpleSAMLphp 1.17 includes a preview of the new user interface to be included in the future version 2.0. This new user interface can be enabled by setting the usenewui configuration option to true, and it includes a new admin interface in a module called admin, which can be disabled.

Description

The new admin interface includes a way to view information about the host where SimpleSAMLphp is installed, by means of the phpinfo() PHP function. An endpoint that exposes the output of that function is included in the admin module for easier debugging.

The aforementioned endpoint had no checks for administrator privileges. This would allow any individual to access the given endpoint without authenticating, gathering information about the affected system.

Affected versions

All SimpleSAMLphp 1.17 versions up to 1.17.7 are affected, provided that the new, experimental use interface is enabled, together with the new admin module.

Impact

An attacker could leverage this issue by accessing the unprotected endpoint and gather intelligence about the host where SimpleSAMLphp is deployed, using it later for their own advantage in case other issues arise.

However, the impact of this issue is deemed as low, given that the new user interface must be explicitly enabled by means of the usenewui configuration option, and the new admin module must also be enabled.

Resolution

Upgrade to SimpleSAMLphp 1.17.8 or 1.18. This can be done by downloading the package, or by running composer update. Refer to the documentation for instructions on how to run composer.

Alternatively, the issue can be mitigated by either disabling the new user interface by setting the usenewui configuration option to false, or by disabling the admin module in the configuration:

    'module.enable' => [
        ...
        'admin' => false,
        ...
    ],

Is GHSA-ppm4-r2vc-pg74 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected simplesamlphp/simplesamlphp, and gives you the command that fixes it.

More advisories for simplesamlphp/simplesamlphp

  • HighCVE-2026-49284SimpleSAMLphp SP accepts a response from an unexpected IdP when unsigned `Response/InResponseTo` is combined with a signed assertion lacking `SubjectConfirmationData/InResponseTo` · 2 Jul 2026
  • MediumGHSA-vpr3-cw3h-prw8SimpleSAMLphp Reflected Cross-site Scripting vulnerability · 28 May 2024
  • MediumGHSA-7wh8-jrq7-p27fSimpleSAMLphp exposes credentials in session storage · 28 May 2024
  • MediumGHSA-v858-922f-fj9vSimpleSAMLphp Link Injection vulnerability · 28 May 2024
  • MediumCVE-2017-12870SimpleSAMLphp Unauthenticated encryption in CBC mode · 17 May 2022
  • MediumCVE-2017-12871SimpleSAMLphp Incorrect IV generation for encryption · 17 May 2022
All 23 advisories for simplesamlphp/simplesamlphp

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.