<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>MySQL on GMO Flatt Security Research</title>
    <link>https://flatt.tech/research/tags/mysql/</link>
    <description>Recent content in MySQL on GMO Flatt Security Research</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 22 Feb 2022 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://flatt.tech/research/tags/mysql/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Finding an unseen SQL Injection by bypassing escape functions in mysqljs/mysql</title>
      <link>https://flatt.tech/research/posts/finding-an-unseen-sql-injection-by-bypassing-escape-functions-in-mysqljs-mysql/</link>
      <pubDate>Tue, 22 Feb 2022 00:00:00 +0000</pubDate>
      <guid>https://flatt.tech/research/posts/finding-an-unseen-sql-injection-by-bypassing-escape-functions-in-mysqljs-mysql/</guid>
      <description>&lt;h2 id=&#34;tldr&#34;&gt;TL;DR&lt;/h2&gt;&#xA;&lt;p&gt;It was found that unexpected behaviors in the query’s escape function could cause a SQL injection in &lt;code&gt;mysqljs/mysql&lt;/code&gt; (&lt;a href=&#34;https://github.com/mysqljs/mysql&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://github.com/mysqljs/mysql&lt;/a&gt;&#xA;), which is one of the most popular MySQL packages in the Node.js ecosystem.&lt;/p&gt;&#xA;&lt;p&gt;Typically, query escape functions or placeholders are known to prevent SQL injections. However, &lt;code&gt;mysqljs/mysql&lt;/code&gt; is known to have different escape methods over different value types, and it could eventually cause unexpected behaviors when the attacker passes the parameter with a different value type. Unexpected behaviors include buggy behaviors and SQL injections.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
