[MXS-2851] CAST Function displays contents of Masked column Created: 2020-01-27 Updated: 2020-08-25 Resolved: 2020-01-28 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | masking |
| Affects Version/s: | 2.4.5 |
| Fix Version/s: | 2.3.17, 2.4.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | Chris Calender (Inactive) | Assignee: | Johan Wikman |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | None | ||
| Description |
|
The CAST function allows one to see the contents of a masked column. Consider the following example where masking is set up to mask the column `SSN`. A normal SELECT of this column shows it masked:
And a SELECT using a function like CAT() shows it is properly blocked (with prevent_function_usage=1 (true), the default):
However, when we use CAST, it returns the value:
|