You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Lyor Goldstein (Jira)" <ji...@apache.org> on 2021/08/26 14:47:00 UTC

[jira] [Assigned] (SSHD-1211) ScpCommandFactory does not allow "sudo scp..." commands

     [ https://issues.apache.org/jira/browse/SSHD-1211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lyor Goldstein reassigned SSHD-1211:
------------------------------------

    Assignee: Lyor Goldstein

> 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
>            Assignee: Lyor Goldstein
>            Priority: Major
>
> 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