CVE-2008-4677: Medium severity suse vim vulnerability
autoload/netrw.vim (aka the Netrw Plugin) 109, 131, and other versions before 133k for Vim 7.1.266, other 7.1 versions, and 7.2 stores credentials for an FTP session, and sends those credentials when attempting to establish subsequent FTP sessions to servers on different hosts, which allows remote FTP servers to obtain sensitive information in opportunistic circumstances by logging usernames and passwords. NOTE: the upstream vendor disputes a vector involving different ports on the same host, stating "I'm assuming that they're using the same id and password on that unchanged hostname, deliberately."
Other sources
Description of problem (pasted from original rdancer.org vim vulnerability description -- see references):
The Vim Netrw Plugin shares the FTP user name and password across all FTP sessions. Every time Vim makes a new FTP connection, it sends the user name and password of the previous FTP session to the FTP server.
Once vim successfully connects to an FTP server using a user name and password credentials, it will re-use them in all subsequent FTP sessions, regardless of the domain name or TCP port.
This behaviour is documented, although the documentation states the credentials are retained on a per-session basis''. Apparently the Vim session, not the FTP session:
g:netrwuid (ftp) user-id, retained on a per-session basis s:netrwpasswd (ftp) password, retained on a per-session basis''
-- Netrw Reference Manual (pinetrw.txt'')
Although FTP communication is not encrypted and therefore open to eavesdropping, if the access to the network is protected, a credentials-based access control is meaningful, and the credentials must be kept secret.
Version-Release number of selected component (if applicable): 7.1.266, 7.2 and earlier versions of Vim
How reproducible: Always
Steps to Reproduce: 1. See "4. EXPLOIT" from the rdancer vim vulnerability report [1] Actual results: Credentials disclosure.
Expected results: Credentials are kept secret.
References (rdancer.org vim original vulnerability report):
[1] http://www.rdancer.org/vulnerablevim-netrw-credentials-dis.html
— Red Hat
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2008-4677?
CVE-2008-4677 has been classified as a medium severity vulnerability.
How do I fix CVE-2008-4677?
To fix CVE-2008-4677, update to a patched version of Vim that includes the security fixes addressing this issue.
What versions are affected by CVE-2008-4677?
CVE-2008-4677 affects the Netrw Plugin versions 109, 131, and earlier versions up to 133k for Vim 7.1.266 and other 7.1 versions along with Vim 7.2.
What type of vulnerability is CVE-2008-4677?
CVE-2008-4677 is a credential storage vulnerability that exposes FTP session credentials.
How does CVE-2008-4677 impact users?
CVE-2008-4677 allows remote attackers to potentially gain unauthorized access to FTP servers by exploiting leaked credentials.