Niedrig

Log injection in SimpleSAMLphp

  • Veröffentlicht: 24.01.2020
  • Aktualisiert: 11.10.2026 10:22

Background

SimpleSAMLphp has a logging functionality that allows system administrators to keep track of the activity, errors, and statistics. Additionally, it allows users to report errors, shall they happen. An error report contains a report identifier, which is logged once submitted.

Description

The www/erroreport.php script, which receives error reports and sends them via email to the system administrator, didn't 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 versions

SimpleSAMLphp versions up to 1.18.3.

Impact

An attacker may use this issue to inject logs messages into a SimpleSAMLphp log file, trying to trick or confuse system administrators. However, the attack surface is considered small, as the attack will only work with the file logging handler, which opens the log file in append-only mode. This means an attacker cannot edit or remove existing log messages, and even if non-ascii characters are written to the log, the file will always be readable with a simple text editor.

Resolution

Upgrade the SimpleSAMLphp installation to version 1.18.4.

Credit

This vulnerability was discovered and reported by Frederic Vleminckx on January 23, 2020.

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
Composer-Paket simplesamlphp/simplesamlphp < 1.18.4 1.18.4

Verweise

CVSS-Wert 4.4/10
CVSS-Vektor
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
Schwäche (CWE)
CWE-532
Plattform
Composer
Paket
simplesamlphp/simplesamlphp
Veröffentlicht
24.01.2020
Aktualisiert
11.10.2026 10:22

Quellen und Lizenzen

OSV / GitHub Advisory Database - GHSA-6gc6-m364-85ww - CC BY 4.0

Schwachstellenhistorie: simplesamlphp/simplesamlphp

Alle veröffentlichten Schwachstellen dieses Pakets (Composer-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Alle (23) im Archiv
Einträge insgesamt
23
Erste → letzte
01.2020 07.2026
Ohne Fix
0
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Kritisch 3
  • Hoch 4
  • Mittel 12
  • Niedrig 4

Veröffentlichungen pro Jahr

  1. 2020: 6
  2. 2021: 0
  3. 2022: 12
  4. 2023: 0
  5. 2024: 4
  6. 2025: 0
  7. 2026: 1
Schweregrad:
  1. Kritisch · 9.8 CVE-2017-12868 >= 1.14.12, < 1.14.14 1.14.14
  2. Hoch · 7.5 CVE-2017-12869 < 1.14.14 1.14.14
  3. Hoch · 8.1 CVE-2017-18122 < 1.14.17 1.14.17
  4. Kritisch · 9.8 CVE-2018-6521 < 1.15.2 1.15.2
  5. Hoch · 7.5 CVE-2011-4625 < 1.8.1 1.8.1
  6. Kritisch · 9.8 CVE-2017-12873 >= 1.7.0, < 1.14.11 1.14.11
  7. Log injection in SimpleSAMLphp dieser Eintrag
    Niedrig · 4.4 CVE-2020-5225 < 1.18.4 1.18.4

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.