Vulnerability · Published Jan 24, 2020 · Assigned by GitHub_M
CVE-2020-5225Log injection in SimpleSAMLphp
Medium 4.4
In plain English
A medium-severity sensitive data in logs in SimpleSAMLphp from simplesamlphp. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Log injection in SimpleSAMLphp before version 1.18.4. The www/erroreport.php script, which receives error reports and sends them via email to the system administrator, did not properly sanitize the report identifier obtained from the request. This allows an attacker, under specific circumstances, to inject new log lines by manually crafting this report ID. When configured to use the file logging handler, SimpleSAMLphp will output all its logs by appending each log line to a given file. Since the reportID parameter received in a request sent to www/errorreport.php was not properly sanitized, it was possible to inject newline characters into it, effectively allowing a malicious user to inject new log lines with arbitrary content.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | simplesamlphp | 1.18.4-1 | DEBIAN-CVE-2020-5225 |
| Debian:14 | simplesamlphp | 1.18.4-1 | DEBIAN-CVE-2020-5225 |
| Packagist | simplesamlphp/simplesamlphp | 1.18.4 | GHSA-6gc6-m364-85ww |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| simplesamlphp | SimpleSAMLphp | < 1.18.4 |
Weakness: CWE-532 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
References
- https://github.com/simplesamlphp/simplesamlphp/security/advisories/GHSA-6gc6-m364-85ww x_refsource_CONFIRM
- https://simplesamlphp.org/security/202001-02 x_refsource_MISC