Commit Graph

24 Commits

Author SHA1 Message Date
Yasuhiro Matsumoto b076c49282 patch 9.2.0358: runtime(vimball): still path traversal attacks possible
Problem:  runtime(vimball): still path traversal attacks possible
Solution: block Windows driver letter paths (Yasuhiro Matsumoto)

The path traversal check in vimball#Vimball() did not reject file
names starting with a Windows drive letter (e.g. "C:/foo"). Backslashes
are normalized to forward slashes earlier, so UNC paths are caught by
the leading-slash check, but absolute drive-letter paths slipped
through and could write outside of g:vimball_home on Windows.

Add a "^\a:" check next to the existing "^/" check, and cover it with
a new test.

closes: #19989

Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-04-16 20:03:39 +00:00
Christian Brabandt 3e194b1068 runtime(vimball): detect more path traversal attacks
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-04-09 18:35:39 +00:00
Christian Brabandt 9e041457a5 patch 9.2.0300: The vimball plugin needs some love
Problem:  The vimball plugin needs some love
          (syndicate)
Solution: Clean-up, refactor and update the plugin,
          in particular, catch path traversal attacks

This change does the following
- Clean up Indentation and remove calls to Decho
- Increase minimum Vim version to 7.4 for mkdir()
- Use mkdir() consistently
- Update Metadata Header
- Remove check for fnameescape()
- Catch path traversal attacks
- Add vimball basic tests
- Remove mentioning of g:vimball_mkdir in documentation

closes: #19921

Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-04-05 16:11:53 +00:00
Jim Zhou 56957ed410 runtime(misc): add support for bzip3 to tar, vimball and gzip plugins
fixes: #16751
closes: #16755

Signed-off-by: Jim Zhou <jimzhouzzy@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-02-28 18:06:14 +01:00
Christian Brabandt f9ca139e3a runtime(misc): announce adoption of various runtime files
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-02-19 20:46:49 +01:00
Bram Moolenaar 3e496b0ea3 Updated runtime files. 2016-09-25 22:11:48 +02:00
Bram Moolenaar 03413f4416 Updated runtime files. 2016-04-12 21:07:15 +02:00
Bram Moolenaar 6be7f8733f Update runtime files. 2012-01-20 21:08:56 +01:00
Bram Moolenaar 1514667a24 Updated runtime files. 2011-10-20 22:22:38 +02: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 5c73622a90 Update runtime files. 2010-01-06 20:54:52 +01:00
Bram Moolenaar e37d50a5de updated for version 7.2c-000 2008-08-06 17:06:04 +00:00
Bram Moolenaar f233048a12 updated for version 7.2a 2008-06-24 20:19:36 +00:00
Bram Moolenaar 143c38cd31 updated for version 7.1b 2007-05-10 16:41:10 +00:00
Bram Moolenaar dd2a3cda55 updated for version 7.1a 2007-05-05 17:10:09 +00:00
Bram Moolenaar d68071d8da updated for version 7.0g01 2006-05-02 22:08:30 +00:00
Bram Moolenaar 25e2c9e3e6 updated for version 7.0f03 2006-04-27 21:40:34 +00:00
Bram Moolenaar f193fffd16 updated for version 7.0f02 2006-04-27 00:02:13 +00:00
Bram Moolenaar 551dbcc9b6 updated for version 7.0f01 2006-04-25 22:13:59 +00:00
Bram Moolenaar f9393ef5ef updated for version 7.0f 2006-04-24 19:47:27 +00:00
Bram Moolenaar 910f66f90c updated for version 7.0c10 2006-04-05 20:41:53 +00:00
Bram Moolenaar 8ab561d31e updated for version 7.0232 2006-03-23 22:44:10 +00:00
Bram Moolenaar eee697b748 updated for version 7.0231 2006-03-21 21:20:39 +00:00