portage-ng / portage / net-misc / scponly / 4.8-r9
portage-ng glsa
3 advisories reference net-misc/scponly · none place version 4.8-r9 in a vulnerable range
▸ GLSA 200802-06 scponly: Multiple vulnerabilities this version unaffected normal local 2008-02-12

Multiple vulnerabilities in scponly allow authenticated users to bypass security restrictions.

Announced
2008-02-12
Revised
2008-02-13 (revision 2)
Access
local
Bugs
#201726 #203099
Advisory
https://security.gentoo.org/glsa/200802-06

Affected packages

PackageArchVulnerableUnaffected
net-misc/scponly*< 4.8>= 4.8

Background

scponly is a shell for restricting user access to file transfer only using sftp and scp.

Description

Joachim Breitner reported that Subversion and rsync support invokes subcommands in an insecure manner (CVE-2007-6350). It has also been discovered that scponly does not filter the -o and -F options to the scp executable (CVE-2007-6415).

Impact

A local attacker could exploit these vulnerabilities to elevate privileges and execute arbitrary commands on the vulnerable host.

Workaround

There is no known workaround at this time.

Resolution

All scponly users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-misc/scponly-4.8"

Due to the design of scponly's Subversion support, security restrictions can still be circumvented. Please read carefully the SECURITY file included in the package.

References

▸ GLSA 200512-17 scponly: Multiple privilege escalation issues this version unaffected high local and remote 2005-12-29

Local users can exploit an scponly flaw to gain root privileges, and scponly restricted users can use another vulnerability to evade shell restrictions.

Announced
2005-12-29
Revised
2006-05-22 (revision 2)
Access
local and remote
Bugs
#116526
Advisory
https://security.gentoo.org/glsa/200512-17

Affected packages

PackageArchVulnerableUnaffected
net-misc/scponly*< 4.2>= 4.2

Background

scponly is a restricted shell, allowing only a few predefined commands. It is often used as a complement to OpenSSH to provide access to remote users without providing any remote execution privileges.

Description

Max Vozeler discovered that the scponlyc command allows users to chroot into arbitrary directories. Furthermore, Pekka Pessi reported that scponly insufficiently validates command-line parameters to a scp or rsync command.

Impact

A local attacker could gain root privileges by chrooting into arbitrary directories containing hardlinks to setuid programs. A remote scponly user could also send malicious parameters to a scp or rsync command that would allow to escape the shell restrictions and execute arbitrary programs.

Workaround

There is no known workaround at this time.

Resolution

All scponly users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-misc/scponly-4.2"

References

▸ GLSA 200412-01 rssh, scponly: Unrestricted command execution this version unaffected normal remote 2004-12-03

rssh and scponly do not filter command-line options that can be exploited to execute any command, thereby allowing a remote user to completely bypass the restricted shell.

Announced
2004-12-03
Revised
2006-05-22 (revision 3)
Access
remote
Bugs
#72815 #72816
Advisory
https://security.gentoo.org/glsa/200412-01

Affected packages

PackageArchVulnerableUnaffected
app-shells/rssh*<= 2.2.2>= 2.2.3
net-misc/scponly*< 4.0>= 4.0

Background

rssh and scponly are two restricted shells, allowing only a few predefined commands. They are often used as a complement to OpenSSH to provide access to remote users without providing any remote execution privileges.

Description

Jason Wies discovered that when receiving an authorized command from an authorized user, rssh and scponly do not filter command-line options that can be used to execute any command on the target host.

Impact

Using a malicious command, it is possible for a remote authenticated user to execute any command (or upload and execute any file) on the target machine with user rights, effectively bypassing any restriction of scponly or rssh.

Workaround

There is no known workaround at this time.

Resolution

All scponly users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-misc/scponly-4.0"

All rssh users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-shells/rssh/rssh-2.2.3"

References