Affects Version/s: 1.0
Fix Version/s: 2.0
If an exception occurs accessing a FileObject on a FileSystem that is addressed with an URL containing user and password the thrown exception contains the password as part of the error message:
org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server at "sftp://user:firstname.lastname@example.org/".
In such a case the URL should be printed as "sftp://user:***@apache.org/". Same applied to log messages - at least for INFO and higher.
This is a security risk, since in big companies exceptions and logs are normally collected and archived in monitoring systems and may reveal the password to persons that have normally no authorization to the target system.