Netrw Vim脚本s:BrowserMaps()函数命令执行漏洞

- AV AC AU C I A
发布: 2025-04-13
修订: 2025-04-13

BUGTRAQ ID: 30254 Netrw是一款VIM支持的远程读写文件的插件。 Netrw脚本的netrw.vim文件中没有正确地过滤某些语句: $ grep -n exe ~/.vim/autoload/netrw.vim|grep -v -e escape -e Decho -e executable | wc -l 239 当用户打开目录时,会使用execute命令加载键盘映射字符串,但没有过滤容纳当前目录名的b:netrw_curdir变量。在s:BrowserMaps()函数中: 1709 if s:didstarstar || !mapcheck("<s-up>","n") 1710 nnoremap <buffer> <silent> <s-up> :Pexplore<cr> 1711 endif 1712 if g:netrw_mousemaps == 1 1713 nnoremap <buffer> <silent> <leftmouse> <leftmouse>:call <SID>NetrwLeftmouse(1)<cr> 1714 nnoremap <buffer> <silent> <middlemouse> <leftmouse>:call <SID>NetrwPrevWinOpen(1)<cr> 1715 nnoremap <buffer> <silent> <s-leftmouse> <leftmouse>:call <SID>NetrwMarkFile(1,<SID>NetrwGetWord())<cr> --> 1716 exe 'nnoremap <buffer> <silent> <rightmouse> <leftmouse>:call...

0%
暂无可用Exp或PoC
当前有0条受影响产品信息