Understanding the present, shaping the future.

Search
LA ERA · Tech
Cybersecurity

Critical Security Vulnerability Discovered in Tolgee: Attackers Can Read Arbitrary Server Files

The open-source localization platform Tolgee has been hit by a critical 9.3-severity vulnerability, where improper XML parser configuration allows attackers to upload malicious files and access sensitive server data.

Ryan Torres

2 min read

Critical Security Vulnerability Discovered in Tolgee: Attackers Can Read Arbitrary Server Files
Server room infrastructure

The open-source localization platform Tolgee has been found to contain a critical XML External Entity (XXE) injection vulnerability that allows attackers to read arbitrary files on the server. Security researcher Simon Koeck disclosed in a blog post that Tolgee's XML import feature lacks necessary security configurations when processing user-uploaded files, leaving the system highly susceptible to attack.

The Root Cause Lies in Default Configurations

Tolgee allows users to upload translation files in various formats, including Android XML, XLIFF, and .resx. Koeck pointed out that these formats are essentially XML. In the Java ecosystem, if an XML parser does not explicitly disable external entity resolution, it defaults to enabling it, allowing the parser to read local files or initiate external network requests based on a Document Type Definition (DTD).

Koeck audited Tolgee’s codebase and discovered that six instances of XML parsing logic were using the default `XMLInputFactory` or `DocumentBuilderFactory` without any security hardening. This means that any logged-in user with project import permissions could upload a specially crafted XML file to read sensitive information from the server, including database credentials, API keys, and environment variables found in `/proc/self/environ`.

Beyond reading local files, attackers can also launch Server-Side Request Forgery (SSRF) attacks by defining entities that point to HTTP URIs. Koeck warned that in cloud environments like AWS, GCP, or Azure, attackers could exploit this vulnerability to access instance metadata services, obtain cloud platform IAM credentials, and potentially seize control of the entire infrastructure.

This vulnerability has been assigned a CVSS score of 9.3. Given the low barrier to entry and the ability to cross tenant boundaries on multi-tenant cloud platforms, the potential impact is widespread. Koeck verified the exploit on Tolgee’s cloud platform (app.tolgee.io), confirming the ability to read server files.

The Tolgee development team has since patched the issue. Their latest update introduces a unified `XmlSecurity` utility class that mandates the disabling of all insecure XML features, including external entity resolution and DTD declarations. All six affected import processors have been updated to utilize this security interface. Users running self-hosted versions of Tolgee are strongly advised to update to the latest version immediately.