[MXS-2457] MaxScale Mask Filter incorrectly handles ANSI_QUOTES Created: 2019-04-27  Updated: 2019-05-03  Resolved: 2019-05-03

Status: Closed
Project: MariaDB MaxScale
Component/s: dbfwfilter, masking, qc_mysqlembedded, qc_sqlite, QueryClassifier
Affects Version/s: 2.3.6
Fix Version/s: 2.3.7

Type: Bug Priority: Critical
Reporter: Christopher Tarquini Assignee: Johan Wikman
Resolution: Fixed Votes: 0
Labels: None

Sprint: MXS-SPRINT-81

 Description   

The query classifier does not take into account ANSI_QUOTES mode, allowing a malicious user to bypass firewall filter rules.

mysql> select concat(ssn) from managers;
ERROR 1141 (HY000): The function concat is used in conjunction with a field that should be masked for 'maxuser'@'::ffff:127.0.0.1', access is denied.
 
mysql> set @@sql_mode = 'ANSI_QUOTES';
Query OK, 0 rows affected (0.00 sec)
 
mysql> select concat("ssn") from managers;
+---------------+
| concat("ssn") |
+---------------+
| 111-22-3333   |
| 444-55-6666   |
+---------------+
2 rows in set (0.00 sec)


Generated at Thu Feb 08 04:14:16 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.