Re: Security Issue - password visible in logs
Indeed, the passwords are logged on the Debug 1 level and higher. I've updated the documentation to reflect that.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
/loglevel=x*
).
winscp.exe /log=winscp.log /loglevel=2 /command "open sftp://username:mystrongpassword@host" "pwd" "exit"
. 2023-08-11 14:51:38.461 Command-line: winscp.exe /log=winscp.log /loglevel=2 /command "open sftp://username:***@host" "pwd" "exit"
. 2023-08-11 14:51:38.461 Switch: /log=winscp.log
. 2023-08-11 14:51:38.466 Switch: /loglevel=2
. 2023-08-11 14:51:38.466 Switch: /command
. 2023-08-11 14:51:38.466 Parameter: open sftp://username:mystrongpassword@host
. 2023-08-11 14:51:38.466 Parameter: pwd
. 2023-08-11 14:51:38.466 Parameter: exit
Note that passwords and passphrases are not stored to either log format.
open
command as a parameter listed in the log file).