0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04: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
..
2008-06-24 22:58:06 +00:00
2022-12-11 15:53:04 +00:00
2021-09-09 21:55:11 +02:00
2021-09-09 21:55:11 +02:00
2022-07-25 15:42:07 +01:00
2022-03-30 10:51:39 +01:00
2022-09-27 17:30:34 +01:00
2016-10-23 21:21:08 +02:00
2021-09-21 20:09:51 +02:00
2021-09-09 21:55:11 +02:00
2022-07-01 18:45:04 +01:00
2021-09-09 21:55:11 +02:00
2010-01-06 20:54:52 +01:00
2021-09-09 21:55:11 +02:00
2021-09-09 21:55:11 +02:00
2019-11-10 22:09:11 +01:00
2023-05-14 18:50:25 +01:00
2020-09-19 18:50:13 +02:00
2023-05-14 18:50:25 +01:00
2021-09-09 21:55:11 +02:00
2022-03-30 10:51:39 +01:00
2023-02-27 15:49:53 +00:00
2021-09-09 21:55:11 +02:00
2006-04-15 20:16:09 +00:00
2019-01-01 15:32:17 +01:00
2021-06-27 15:18:56 +02:00
2021-09-09 21:55:11 +02:00
2021-05-02 17:19:11 +02:00
2021-09-09 21:55:11 +02:00
2023-02-02 13:59:48 +00:00
2022-08-15 18:51:32 +01:00
2016-09-25 22:11:48 +02:00
2021-09-09 21:55:11 +02:00
2020-03-01 19:06:45 +01:00

The autoload directory is for standard Vim autoload scripts.

These are functions used by plugins and for general use.  They will be loaded
automatically when the function is invoked.  See ":help autoload".

gzip.vim	for editing compressed files
netrw*.vim	browsing (remote) directories and editing remote files
tar.vim		browsing tar files
zip.vim		browsing zip files
paste.vim	common code for mswin.vim, menu.vim and macmap.vim
spellfile.vim	downloading of a missing spell file

Omni completion files:
ccomplete.vim		C
csscomplete.vim		HTML / CSS
htmlcomplete.vim	HTML
javascriptcomplete.vim  Javascript
phpcomplete.vim		PHP
pythoncomplete.vim	Python
rubycomplete.vim	Ruby
syntaxcomplete.vim	from syntax highlighting
xmlcomplete.vim		XML (uses files in the xml directory)