Commit f394026
Bug #32628376 BACKPORT FIX OF BUG 32335263 TO 5.6+
PROBLEM
-------
If the query contains password in plain text,
we have the query re-written immediately after
parsing and password string is replaced. However,
there is a unsafe window before rewrite is done
and in such case we should not display the plain
text password.
Affected queries are
SHOW PROCESSLIST;
SELECT ... FROM information_schema.processlist;
Solution:
---------
Fix this is to avoid displaying the
query string till re-write is over.
#rb 26092
#rb 26070
Reviewed-by: Debarun Bannerjee <[email protected]>
Reviewed-by: Reviewed by: Dyre Tjeldvold <[email protected]>
(cherry picked from commit c7d0c5b6ee1cfc2a5328e9adf058857b43e0a091)1 parent 0975ece commit f394026
File tree
5 files changed
+47
-11
lines changed- sql
5 files changed
+47
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
1010 | 1010 | | |
1011 | 1011 | | |
1012 | 1012 | | |
| 1013 | + | |
1013 | 1014 | | |
1014 | 1015 | | |
1015 | 1016 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
2243 | 2243 | | |
2244 | 2244 | | |
2245 | 2245 | | |
2246 | | - | |
| 2246 | + | |
2247 | 2247 | | |
2248 | 2248 | | |
2249 | 2249 | | |
| |||
4040 | 4040 | | |
4041 | 4041 | | |
4042 | 4042 | | |
| 4043 | + | |
| 4044 | + | |
| 4045 | + | |
| 4046 | + | |
| 4047 | + | |
| 4048 | + | |
| 4049 | + | |
| 4050 | + | |
| 4051 | + | |
4043 | 4052 | | |
4044 | | - | |
| 4053 | + | |
| 4054 | + | |
| 4055 | + | |
| 4056 | + | |
| 4057 | + | |
| 4058 | + | |
| 4059 | + | |
| 4060 | + | |
| 4061 | + | |
| 4062 | + | |
| 4063 | + | |
4045 | 4064 | | |
4046 | 4065 | | |
4047 | 4066 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
1851 | 1851 | | |
1852 | 1852 | | |
1853 | 1853 | | |
1854 | | - | |
| 1854 | + | |
1855 | 1855 | | |
1856 | 1856 | | |
1857 | 1857 | | |
| |||
6444 | 6444 | | |
6445 | 6445 | | |
6446 | 6446 | | |
| 6447 | + | |
6447 | 6448 | | |
6448 | 6449 | | |
6449 | 6450 | | |
| |||
6490 | 6491 | | |
6491 | 6492 | | |
6492 | 6493 | | |
| 6494 | + | |
| 6495 | + | |
6493 | 6496 | | |
6494 | 6497 | | |
6495 | 6498 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
2827 | 2827 | | |
2828 | 2828 | | |
2829 | 2829 | | |
2830 | | - | |
| 2830 | + | |
| 2831 | + | |
2831 | 2832 | | |
2832 | 2833 | | |
2833 | 2834 | | |
| |||
2837 | 2838 | | |
2838 | 2839 | | |
2839 | 2840 | | |
| 2841 | + | |
2840 | 2842 | | |
2841 | 2843 | | |
2842 | 2844 | | |
| |||
3407 | 3409 | | |
3408 | 3410 | | |
3409 | 3411 | | |
| 3412 | + | |
| 3413 | + | |
3410 | 3414 | | |
3411 | 3415 | | |
3412 | 3416 | | |
3413 | 3417 | | |
3414 | 3418 | | |
| 3419 | + | |
3415 | 3420 | | |
3416 | 3421 | | |
3417 | 3422 | | |
| |||
3433 | 3438 | | |
3434 | 3439 | | |
3435 | 3440 | | |
| 3441 | + | |
3436 | 3442 | | |
3437 | 3443 | | |
3438 | 3444 | | |
| |||
3522 | 3528 | | |
3523 | 3529 | | |
3524 | 3530 | | |
| 3531 | + | |
3525 | 3532 | | |
3526 | 3533 | | |
3527 | 3534 | | |
| |||
3751 | 3758 | | |
3752 | 3759 | | |
3753 | 3760 | | |
| 3761 | + | |
| 3762 | + | |
3754 | 3763 | | |
3755 | 3764 | | |
3756 | 3765 | | |
| |||
3759 | 3768 | | |
3760 | 3769 | | |
3761 | 3770 | | |
| 3771 | + | |
3762 | 3772 | | |
3763 | 3773 | | |
3764 | 3774 | | |
| |||
3993 | 4003 | | |
3994 | 4004 | | |
3995 | 4005 | | |
| 4006 | + | |
| 4007 | + | |
3996 | 4008 | | |
3997 | 4009 | | |
3998 | 4010 | | |
| |||
4107 | 4119 | | |
4108 | 4120 | | |
4109 | 4121 | | |
| 4122 | + | |
4110 | 4123 | | |
4111 | 4124 | | |
4112 | 4125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
2179 | 2179 | | |
2180 | 2180 | | |
2181 | 2181 | | |
2182 | | - | |
| 2182 | + | |
2183 | 2183 | | |
2184 | 2184 | | |
2185 | 2185 | | |
| |||
2330 | 2330 | | |
2331 | 2331 | | |
2332 | 2332 | | |
2333 | | - | |
| 2333 | + | |
2334 | 2334 | | |
2335 | 2335 | | |
2336 | 2336 | | |
| |||
0 commit comments