<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Grit42 on Natan Maia Morette</title><link>https://nmmorette.github.io/tags/grit42/</link><description>Recent content in Grit42 on Natan Maia Morette</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 14 Jun 2026 00:00:00 -0300</lastBuildDate><atom:link href="https://nmmorette.github.io/tags/grit42/index.xml" rel="self" type="application/rss+xml"/><item><title>CVE-2026-12188: grit42 — SQL Injection in CSV Export Endpoint</title><link>https://nmmorette.github.io/posts/2026/06/cve-2026-12188-grit42-sql-injection-in-csv-export-endpoint/</link><pubDate>Sun, 14 Jun 2026 00:00:00 -0300</pubDate><guid>https://nmmorette.github.io/posts/2026/06/cve-2026-12188-grit42-sql-injection-in-csv-export-endpoint/</guid><description>&lt;div class="advisory-notice"&gt;&#10;&lt;p&gt;&lt;strong&gt;&amp;#9888; Replicated advisory.&lt;/strong&gt; This post reproduces an advisory&#10;originally researched and published under the&#10;&lt;a href="https://www.thoropass.com/" target="_blank" rel="noopener"&gt;Thoropass Vulnerability Research Program&lt;/a&gt;.&#10;It is republished here for reference. The original disclosure followed&#10;coordinated vulnerability disclosure and the rules of the CVE Program.&lt;/p&gt;&#10;&lt;p&gt;&amp;#128279; &lt;strong&gt;Original advisory:&lt;/strong&gt; &lt;a href="https://github.com/heylaika/vuln-research-program/tree/main/2026/CVE-2026-12188%20-%20grit42%20-%20SQL%20Injection%20in%20CSV%20Export%20Endpoint" target="_blank" rel="noopener"&gt;https://github.com/heylaika/vuln-research-program/tree/main/2026/CVE-2026-12188%20-%20grit42%20-%20SQL%20Injection%20in%20CSV%20Export%20Endpoint&lt;/a&gt;&lt;br&gt;&amp;#128203; &lt;strong&gt;CVE record:&lt;/strong&gt; &lt;a href="https://www.cve.org/CVERecord?id=CVE-2026-12188" target="_blank" rel="noopener"&gt;CVE-2026-12188&lt;/a&gt;&lt;/p&gt;&#10;&lt;/div&gt;&#10;&#10;&lt;h2 id="advisory-information"&gt;Advisory Information&lt;/h2&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th style="text-align: left"&gt; &lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th style="text-align: left"&gt; &lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;strong&gt;Researcher&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;a href="https://www.linkedin.com/in/nmmorette/"&gt;Natan Morette&lt;/a&gt; on behalf of &lt;a href="https://thoropass.com"&gt;Thoropass&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;strong&gt;Product&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;a href="https://github.com/grit42/grit"&gt;grit&lt;/a&gt; - Open-source scientific research data management platform built by grit42 A/S. The platform stores and visualises data from pre-clinical drug discovery workflows: compounds, batches, assay models, experiment results, and dynamically-typed data tables.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;strong&gt;Affected Version&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;0.0.x through 0.11.0 (every public release; sink introduced in initial commit &lt;code&gt;79b9dfa&lt;/code&gt;)&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;strong&gt;Endpoint&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;code&gt;GET /api/grit/&amp;lt;engine&amp;gt;/&amp;lt;resource&amp;gt;/export&lt;/code&gt; (any resource declared with &lt;code&gt;resources_with_export&lt;/code&gt;)&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;strong&gt;Vulnerability Type&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;CWE-89: SQL Injection&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;strong&gt;CVE ID&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;a href="https://www.cve.org/CVERecord?id=CVE-2026-12188"&gt;CVE-2026-12188&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;h2 id="vulnerability-summary"&gt;Vulnerability Summary&lt;/h2&gt;&#10;&lt;p&gt;The CSV export action in grit&amp;rsquo;s &lt;code&gt;GritEntityController&lt;/code&gt; splats the user-controlled &lt;code&gt;params[:columns]&lt;/code&gt; into &lt;code&gt;Model.unscoped.select(*params[:columns])&lt;/code&gt;, then wraps the resulting relation in a PostgreSQL &lt;code&gt;COPY (...) TO STDOUT WITH CSV HEADER&lt;/code&gt; statement. Rails&amp;rsquo; &lt;code&gt;select&lt;/code&gt; accepts raw SQL fragments, so any authenticated user can inject sub-selects into the SELECT clause and exfiltrate any column the database role can see.&lt;/p&gt;</description></item></channel></rss>