CVE-2020-5301 Information disclosure of source code in SimpleSAMLphp
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.
Which versions are affected by CVE-2020-5301?
2 open source packages ship an affected version, including simplesamlphp/simplesamlphp. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
simplesamlphp/simplesamlphp Packagist | All versions | 1.18.6 |
simplesamlphp/simplesamlphp Packagist | All versions | 1.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.
Other vulnerabilities in simplesamlphp
- CVE-2017-12868 SimpleSAMLphp Session fixation issue and authentication bypass in the authcrypt module
- CVE-2018-7644 SimpleSAMLphp Improper Verification of Cryptographic Signature
- CVE-2026-49284 SimpleSAMLphp SP accepts a response from an unexpected IdP when unsigned `Response/InResponseTo` is combined with a signed assertion lacking `SubjectConfirmationData/InResponseTo`
- CVE-2018-6520 SimpleSAMLphp Open redirection protection bypass
- CVE-2017-12870 SimpleSAMLphp Unauthenticated encryption in CBC mode
Sources
Also known as GHSA-24m3-w8g9-jwpq.