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: [email protected]
For additional commands, e-mail: [email protected]