CVE-2020-5301 Information disclosure of source code in SimpleSAMLphp

Low 3.0 Published Updated

Attackers can view private source code of third-party modules by requesting uppercase .PHP paths on case-insensitive file systems.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-5301?

CVE-2020-5301 is a low-severity vulnerability in simplesamlphp, published on 21 Apr 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

SimpleSAMLphp versions before 1.18.6 contain an information disclosure vulnerability. The module controller in `SimpleSAML\Module` that processes requests for pages hosted by modules, has code to identify paths ending with `.php` and process those as PHP code. If no other suitable way of handling the given path exists it presents the file to the browser. The check to identify paths ending with `.php` does not account for uppercase letters. If someone requests a path ending with e.g. `.PHP` and the server is serving the code from a case-insensitive file system, such as on Windows, the processing of the PHP code does not occur, and the source code is instead presented to the browser. An attacker may use this issue to gain access to the source code in third-party modules that is meant to be private, or even sensitive. However, the attack surface is considered small, as the attack will only work when SimpleSAMLphp serves such content from a file system that is not case-sensitive, such as on Windows. This issue is fixed in version 1.18.6.

Weakness: CWE-178, CWE-200

Which versions are affected by CVE-2020-5301?

2 open source packages ship an affected version, including simplesamlphp/simplesamlphp. It affects 1 product.

PackageAffectedFixed in
simplesamlphp/simplesamlphp PackagistAll versions1.18.6
simplesamlphp/simplesamlphp PackagistAll versions1.18.6

Products include Simplesamlphp Simplesamlphp.

How do I fix CVE-2020-5301?

Upgrade simplesamlphp/simplesamlphp to 1.18.6 or later.

Is CVE-2020-5301 being exploited?

There is no known exploitation of CVE-2020-5301 in the wild and no public exploit code.

Sources

Also known as GHSA-24m3-w8g9-jwpq.

Is CVE-2020-5301 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free