<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Simon Köck</title>
    <description>The latest articles on DEV Community by Simon Köck (@simonkoeck).</description>
    <link>https://dev.to/simonkoeck</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3867670%2F44ea4aa8-96cc-4596-8855-d6ff72583fb5.png</url>
      <title>DEV Community: Simon Köck</title>
      <link>https://dev.to/simonkoeck</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/simonkoeck"/>
    <language>en</language>
    <item>
      <title>How I found an XXE in a multi-tenant cloud platform through a translation file upload</title>
      <dc:creator>Simon Köck</dc:creator>
      <pubDate>Wed, 08 Apr 2026 11:39:55 +0000</pubDate>
      <link>https://dev.to/simonkoeck/how-i-found-an-xxe-in-a-multi-tenant-cloud-platform-through-a-translation-file-upload-1aj0</link>
      <guid>https://dev.to/simonkoeck/how-i-found-an-xxe-in-a-multi-tenant-cloud-platform-through-a-translation-file-upload-1aj0</guid>
      <description>&lt;p&gt;Tolgee is an open-source localization platform. Teams upload translation files in formats like Android XML, XLIFF, .resx, and Apple stringsdict. Every one of those formats is XML.&lt;/p&gt;

&lt;p&gt;When I see an app that parses user-uploaded XML server-side, the first thing I check is whether the parser disables external entity resolution. In Java, XMLInputFactory and DocumentBuilderFactory ship with dangerous defaults: external entities are enabled out of the box.&lt;/p&gt;

&lt;p&gt;I cloned the repo and grepped for those two classes. Six results. None of them had any security configuration.&lt;/p&gt;

&lt;p&gt;The exploit is simple. Upload an Android XML translation file like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/span&gt;
&lt;span class="cp"&gt;&amp;lt;!DOCTYPE resources [
  &amp;lt;!ENTITY xxe SYSTEM "file:///etc/passwd"&amp;gt;&lt;/span&gt;
]&amp;gt;
&lt;span class="nt"&gt;&amp;lt;resources&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;string&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"test_key"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;&lt;span class="ni"&gt;&amp;amp;xxe;&lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;/string&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/resources&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The parser resolves &amp;amp;xxe;, reads /etc/passwd, and returns the contents as the translation value. I confirmed this on Tolgee's own cloud platform at app.tolgee.io. The response came back with an Alpine Linux passwd file.&lt;/p&gt;

&lt;p&gt;Beyond local file read, the same bug enables SSRF. Swap file:// for &lt;a href="http://169.254.169.254/" rel="noopener noreferrer"&gt;http://169.254.169.254/&lt;/a&gt;... and you're hitting the cloud metadata service, potentially leaking IAM credentials.&lt;/p&gt;

&lt;p&gt;This affected six separate import processors. Tolgee fixed it by creating a centralized XmlSecurity utility that all parsers now use, plus regression tests covering every importer.&lt;/p&gt;

&lt;p&gt;CVE-2026-32251, CVSS 9.3.&lt;/p&gt;

&lt;p&gt;I wrote the full writeup with the vulnerable code, exploitation details, and the fix here: &lt;a href="https://simonkoeck.com/writeups/tolgee-xxe-translation-import" rel="noopener noreferrer"&gt;https://simonkoeck.com/writeups/tolgee-xxe-translation-import&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Takeaway for Java developers: never use XMLInputFactory.newInstance() or DocumentBuilderFactory.newInstance() without disabling external entities. The defaults will betray you.&lt;/p&gt;

</description>
      <category>security</category>
      <category>xxe</category>
      <category>java</category>
      <category>bugbounty</category>
    </item>
  </channel>
</rss>
