Skip to content

Prevent insecure plugin names. - #578

Merged
jdevera merged 1 commit into
VundleVim:masterfrom
annagrram:plugin-names-security-enhancement
Mar 21, 2015
Merged

Prevent insecure plugin names.#578
jdevera merged 1 commit into
VundleVim:masterfrom
annagrram:plugin-names-security-enhancement

Conversation

@annagrram

Copy link
Copy Markdown
Contributor

Plugins' names which contain '../', '$HOME', '%:h:h', '..', etc.
can be dangerous.
Use a sensible whitelist for plugin names and prevent its expansion.

Comment thread autoload/vundle/config.vim Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We really want to keep the vundle#bundle_dir here. Otherwise I cannot even test this :)

@annagrram

Copy link
Copy Markdown
Contributor Author

Oops... missed that.
Give me a second.

@jdevera jdevera self-assigned this Mar 21, 2015
Plugins' names which contain '../', '$HOME', '%:h:h', '..\', etc.
can be dangerous.
Use a sensible whitelist for plugin names and prevent its expansion.
@annagrram
annagrram force-pushed the plugin-names-security-enhancement branch from e3320cc to 2506347 Compare March 21, 2015 22:40
@annagrram

Copy link
Copy Markdown
Contributor Author

Note to myself: "Check even the most trivial rebases"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I run:
Plugin '..'

it shows me:

Error detected while processing function vundle#config#bundle..<SNR>10_check_bundle_name:
line    8:
Invalid plugin name: ..

So, cool :)

@jdevera

jdevera commented Mar 21, 2015

Copy link
Copy Markdown
Contributor

I'll merge it, hopefully people are not running plugins with funky names.

jdevera added a commit that referenced this pull request Mar 21, 2015
@jdevera
jdevera merged commit cfd3b2d into VundleVim:master Mar 21, 2015
@annagrram

Copy link
Copy Markdown
Contributor Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants