Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

This plugin distibuted with vim? #30

Open
ffes opened this issue May 7, 2018 · 9 comments
Open

This plugin distibuted with vim? #30

ffes opened this issue May 7, 2018 · 9 comments

Comments

@ffes
Copy link

ffes commented May 7, 2018

Are you aware of this issue: vim/vim#2286

Please note the last part of it 😉

@sgur
Copy link
Owner

sgur commented May 7, 2018

Oh, I forgot the issue.
Of course, there are no problem for me.

@andymass
Copy link

andymass commented May 8, 2018

There are some security issues which should be addressed before considering distribution with vim. Modelines are widely considered insecure, but editorconfig is much worse. Consider:

charset = cp932 | !echo "you've been hacked 1"
spell_language = en_us | !echo "you've been hacked 2"

Not to mention the local_vim option, which should be blacklisted by default.

@sgur
Copy link
Owner

sgur commented May 9, 2018

Thank you for your reporting.
I created an issue #31

@polyzen
Copy link

polyzen commented Jul 25, 2018

Bump

@andymass
Copy link

Here is another exploit. Allows sourcing any vim script regardless of user's settings.

[*]
charset = cp932 foldexpr:execute(\"let\ g:editorconfig_local_vimrc\\75\ 1\") foldmethod:expr foldenable foldlevel:0
local_vimrc = exploit

Just to be clear: this is a very fine plugin and it does what it was designed to do. But more users should be doing extensive testing and hardening, especially if they want it to be considered for inclusion in vim (even though this happening is far from guaranteed for a variety of reasons also not related to the quality of this plugin.)

@sgur
Copy link
Owner

sgur commented Jul 27, 2018

Thank you for reporting.

I created #33.

@sgur
Copy link
Owner

sgur commented Jul 27, 2018

I fixed #31 and #33.

I would appreciate that you reported such issues becase this plugin was created for my convenience so I wasn't concerned about security issues.

@chrisbra
Copy link

BTW: if you really want to have your plugin included with Vim, I suggest mentioning it at the Vim issue. You should mention your license, that you intend to maintain it (which means that whenever you have a release ready for inclusion with Vim, submit the whole plugin to Bram).

@lollipopman
Copy link

@sgur are you interested, per my recent comment, vim/vim#2286 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants