You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Kaushal Kumar (Jira)" <ji...@apache.org> on 2021/08/24 11:04:00 UTC
[jira] [Created] (SSHD-1211) ScpCommandFactory does not allow "sudo
scp..." commands
Kaushal Kumar created SSHD-1211:
-----------------------------------
Summary: ScpCommandFactory does not allow "sudo scp..." commands
Key: SSHD-1211
URL: https://issues.apache.org/jira/browse/SSHD-1211
Project: MINA SSHD
Issue Type: Bug
Affects Versions: 2.7.0
Reporter: Kaushal Kumar
ScpCommandFactory validates if the command is valid via [isSupportedCommand|https://github.com/apache/mina-sshd/blob/master/sshd-scp/src/main/java/org/apache/sshd/scp/server/ScpCommandFactory.java#L219]. Here it check if the command starts with "scp".
This check blocks any command which starts with "sudo scp". Kindly check if this could be resolved.
As far as i see the change will be required at 2 location.
# [https://github.com/apache/mina-sshd/blob/master/sshd-scp/src/main/java/org/apache/sshd/scp/server/ScpCommandFactory.java#L219]
# https://github.com/apache/mina-sshd/blob/master/sshd-scp/src/main/java/org/apache/sshd/scp/server/ScpCommand.java#L111
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org