0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

30 Commits

Author SHA1 Message Date
Anton Sharonov
67c951df4c
runtime(ftplugin): allow to exec if curdir is in PATH
In case the current directory is present as valid $PATH entry, it is OK
to call the program from it, even if vim curdir is in that same
directory.

(Without that patch, for instance, you will not be able to open .zip
files while your current directory is /bin)

closes: #13027

Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-05 21:04:44 +02:00
Christian Brabandt
816fbcc262
patch 9.0.1833: [security] runtime file fixes
Problem:  runtime files may execute code in current dir
Solution: only execute, if not run from current directory

The perl, zig and ruby filetype plugins and the zip and gzip autoload
plugins may try to load malicious executable files from the current
working directory.  This is especially a problem on windows, where the
current directory is implicitly in your $PATH and windows may even run a
file with the extension `.bat` because of $PATHEXT.

So make sure that we are not trying to execute a file from the current
directory. If this would be the case, error out (for the zip and gzip)
plugins or silently do not run those commands (for the ftplugins).

This assumes, that only the current working directory is bad. For all
other directories, it is assumed that those directories were
intentionally set to the $PATH by the user.

Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-08-31 23:52:30 +02:00
Bram Moolenaar
71badf9547 Update runtime files 2023-04-22 22:40:14 +01:00
Bram Moolenaar
519cc559b0 Update runtime files 2021-11-16 19:18:26 +00:00
Bram Moolenaar
6c391a74fe Update runtime files 2021-09-09 21:55:11 +02:00
Bram Moolenaar
cb80aa2d53 Update runtime files. 2020-10-26 21:12:46 +01:00
Bram Moolenaar
8024f93636 Update runtime files. 2020-01-14 19:29:13 +01:00
Bram Moolenaar
2963456ff2 Update runtime files. 2020-01-09 21:46:04 +01:00
Bram Moolenaar
3e496b0ea3 Updated runtime files. 2016-09-25 22:11:48 +02:00
Bram Moolenaar
d07969093a Updated runtime files. 2016-09-16 20:02:31 +02:00
Bram Moolenaar
94f76b7fd6 updated for version 7.3.1308
Problem:    Typos in MS-Windows build settings and README.
Solution:   Minor changes to MS-Windows files.
2013-07-04 22:50:40 +02:00
Bram Moolenaar
ff0341946e Updated runtime files. 2013-04-24 18:51:19 +02:00
Bram Moolenaar
6be7f8733f Update runtime files. 2012-01-20 21:08:56 +01:00
Bram Moolenaar
251e191271 Updated runtime files. 2011-06-19 05:09:16 +02:00
Bram Moolenaar
00a927d62b Updated runtime files. 2010-05-14 23:24:24 +02:00
Bram Moolenaar
e37d50a5de updated for version 7.2c-000 2008-08-06 17:06:04 +00:00
Bram Moolenaar
c236c16d08 updated for version 7.2b-000 2008-07-13 17:41:49 +00:00
Bram Moolenaar
446cb837a0 updated for version 7.2a 2008-06-24 21:56:24 +00:00
Bram Moolenaar
ccc18222dd updated for version 7.1b 2007-05-10 18:25:20 +00:00
Bram Moolenaar
9964e468c0 updated for version 7.1a 2007-05-05 17:54:07 +00:00
Bram Moolenaar
d68071d8da updated for version 7.0g01 2006-05-02 22:08:30 +00:00
Bram Moolenaar
4c3f536f47 updated for version 7.0d01 2006-04-11 21:38:50 +00:00
Bram Moolenaar
910f66f90c updated for version 7.0c10 2006-04-05 20:41:53 +00:00
Bram Moolenaar
2217cae0c0 updated for version 7.0b01 2006-03-25 21:55:52 +00:00
Bram Moolenaar
c01140a1a0 updated for version 7.0b 2006-03-24 22:21:52 +00:00
Bram Moolenaar
db552d60ec updated for version 7.0232 2006-03-23 22:59:57 +00:00
Bram Moolenaar
c7486e034e updated for version 7.0178 2005-12-29 22:48:26 +00:00
Bram Moolenaar
36c31f71ad updated for version 7.0161 2005-11-28 23:01:53 +00:00
Bram Moolenaar
a5792f5890 updated for version 7.0158 2005-11-23 21:25:05 +00:00
Bram Moolenaar
60a795aad6 updated for version 7.0148 2005-09-16 21:55:43 +00:00