annotate pixmaps/tb_paste.xpm @ 33664:06b59278bfcf v9.0.2070

patch 9.0.2070: [security] disallow setting env in restricted mode Commit: https://github.com/vim/vim/commit/6b89dd6a7257a1e2e9c7ea070b407bc4674a5118 Author: Christian Brabandt <cb@256bit.org> Date: Thu Oct 26 22:14:17 2023 +0200 patch 9.0.2070: [security] disallow setting env in restricted mode Problem: [security] disallow setting env in restricted mode Solution: Setting environment variables in restricted mode could potentially be used to execute shell commands. Disallow this. restricted mode: disable allow setting of environment variables Setting environment variables in restricted mode, may have some unwanted consequences. So, for example by setting $GCONV_PATH in restricted mode and then calling the iconv() function, one may be able to execute some unwanted payload, because the `iconv_open()` function internally uses the `$GCONV_PATH` variable to find its conversion data. So let's disable setting environment variables, even so this is no complete protection, since we are not clearing the existing environment. I tried a few ways but wasn't successful :( One could also argue to disable the iconv() function completely in restricted mode, but who knows what other API functions can be influenced by setting some other unrelated environment variables. So let's leave it as it is currently. closes: #13394 See: https://huntr.com/bounties/b0a2eda1-459c-4e36-98e6-0cc7d7faccfe/ Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 26 Oct 2023 22:30:03 +0200
parents 3fc0f57ecb91
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 /* XPM */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 static char * tb_paste_xpm[] = {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 /* width height ncolors cpp [x_hot y_hot] */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 "18 18 7 1 0 0",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 /* colors */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " s none m none c none",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 ". s iconColor1 m black c #000000",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 "X s iconGray5 m black c #737373",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 "o s iconGray2 m none c #bdbdbd",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 "O s bottomShadowColor m black c #5D6069",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 "+ s iconGray4 m none c #949494",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 "@ s iconColor2 m none c #FFFFFF",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 /* pixels */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " .... ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " XXXX ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " ...oooo...O ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " .o+......++.O ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " .o+++++++++.O ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " .o+++.......... ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " .o+++.@@@@@@@@. ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " .o+++.@......@.O ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " .o+++.@@@@@@@@.O ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " .o+++.@@@@@@@@.O ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " .o+++.@......@.O ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " .o+++.@@@@@@@@.O ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " .....@..@@@@@.O ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " OOO.@@@@@@@@.O ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 " ..........O ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " OOOOOOOOO ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " "};