X-Chat Command Execution Via URLs Vulnerability
BID:1601
Info
X-Chat Command Execution Via URLs Vulnerability
| Bugtraq ID: | 1601 |
| Class: | Input Validation Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | Aug 17 2000 12:00AM |
| Updated: | Aug 17 2000 12:00AM |
| Credit: | This vulnerability was posted to the Bugtraq mailing list on August 17, 2000 by zenith parsec <[email protected]> |
| Vulnerable: |
X-Chat X-Chat 1.5.6 dev X-Chat X-Chat 1.4.2 X-Chat X-Chat 1.4.1 X-Chat X-Chat 1.4 X-Chat X-Chat 1.3.13 X-Chat X-Chat 1.3.12 X-Chat X-Chat 1.3.11 X-Chat X-Chat 1.3.10 X-Chat X-Chat 1.3.9 X-Chat X-Chat 1.2.1 |
| Not Vulnerable: | |
Discussion
X-Chat Command Execution Via URLs Vulnerability
A vulnerability exists in versions 1.4.2 and earlier of the X-Chat IRC client. By supplying commands enclosed in backticks (``) in URL's sent to X-Chat, it is possible to execute arbitrary commands should the X-Chat user decide to view the link by clicking on it. This is due to the manner in which X-Chat launches pages for viewing.
X-Chat launches Netscape without checking for shell metacharacters in the supplied URL. This allows for an attacker to exploit shell expansion capabilities to execute commands as the user running Netscape.
A vulnerability exists in versions 1.4.2 and earlier of the X-Chat IRC client. By supplying commands enclosed in backticks (``) in URL's sent to X-Chat, it is possible to execute arbitrary commands should the X-Chat user decide to view the link by clicking on it. This is due to the manner in which X-Chat launches pages for viewing.
X-Chat launches Netscape without checking for shell metacharacters in the supplied URL. This allows for an attacker to exploit shell expansion capabilities to execute commands as the user running Netscape.
Exploit / POC
X-Chat Command Execution Via URLs Vulnerability
An example from the Bugtraq post:
http://www.altavista.com/?x=`date`y='`date`'
An example from the Bugtraq post:
http://www.altavista.com/?x=`date`y='`date`'
Solution / Fix
X-Chat Command Execution Via URLs Vulnerability
Solution:
The new version of X-Chat (1.4.3) is available as a source tarball.
Debian has provided updated deb packages.
RedHat has provided patched RPMs.
Conectiva has provided patched RPMs of 1.4.2:
(copied from the Conectiva advisory)
ftp://atualizacoes.conectiva.com.br/4.2/SRPMS/xchat-1.4.2-4cl.src.rpm
ftp://atualizacoes.conectiva.com.br/4.2/i386/xchat-1.4.2-4cl.i386.rpm
ftp://atualizacoes.conectiva.com.br/5.0/SRPMS/xchat-1.4.2-4cl.src.rpm
ftp://atualizacoes.conectiva.com.br/5.0/i386/xchat-1.4.2-4cl.i386.rpm
ftp://atualizacoes.conectiva.com.br/5.1/SRPMS/xchat-1.4.2-4cl.src.rpm
ftp://atualizacoes.conectiva.com.br/5.1/i386/xchat-1.4.2-4cl.i386.rpm
ftp://atualizacoes.conectiva.com.br/ferramentas/ecommerce/SRPMS/xchat-1.4.2-4cl.src.rpm
ftp://atualizacoes.conectiva.com.br/ferramentas/ecommerce/i386/xchat-1.4.2-4cl.i386.rpm
ftp://atualizacoes.conectiva.com.br/ferramentas/graficas/SRPMS/xchat-1.4.2-4cl.src.rpm
ftp://atualizacoes.conectiva.com.br/ferramentas/graficas/i386/xchat-1.4.2-4cl.i386.rpm
Users of Slackware 7.0, 7.1, and -current are urged to upgraded to the
xchat.tgz package available in the Slackware -current branch.
TurboLinux has released updated packages:
ftp://ftp.turbolinux.com/pub/updates/6.0/xchat-1.4.3-1.i386.rpm
ftp://ftp.turbolinux.com/pub/updates/6.0/SRPMS/xchat-1.4.3-1.src.rpm
The new xchat.tgz package is available from:
ftp://ftp.slackware.com/pub/slackware/slackware-current/slakware/gtk/xchat.tgz
X-Chat X-Chat 1.2.1
X-Chat X-Chat 1.3.10
X-Chat X-Chat 1.3.11
X-Chat X-Chat 1.3.12
X-Chat X-Chat 1.3.13
X-Chat X-Chat 1.3.9
X-Chat X-Chat 1.4
X-Chat X-Chat 1.4.1
X-Chat X-Chat 1.4.2
Solution:
The new version of X-Chat (1.4.3) is available as a source tarball.
Debian has provided updated deb packages.
RedHat has provided patched RPMs.
Conectiva has provided patched RPMs of 1.4.2:
(copied from the Conectiva advisory)
ftp://atualizacoes.conectiva.com.br/4.2/SRPMS/xchat-1.4.2-4cl.src.rpm
ftp://atualizacoes.conectiva.com.br/4.2/i386/xchat-1.4.2-4cl.i386.rpm
ftp://atualizacoes.conectiva.com.br/5.0/SRPMS/xchat-1.4.2-4cl.src.rpm
ftp://atualizacoes.conectiva.com.br/5.0/i386/xchat-1.4.2-4cl.i386.rpm
ftp://atualizacoes.conectiva.com.br/5.1/SRPMS/xchat-1.4.2-4cl.src.rpm
ftp://atualizacoes.conectiva.com.br/5.1/i386/xchat-1.4.2-4cl.i386.rpm
ftp://atualizacoes.conectiva.com.br/ferramentas/ecommerce/SRPMS/xchat-1.4.2-4cl.src.rpm
ftp://atualizacoes.conectiva.com.br/ferramentas/ecommerce/i386/xchat-1.4.2-4cl.i386.rpm
ftp://atualizacoes.conectiva.com.br/ferramentas/graficas/SRPMS/xchat-1.4.2-4cl.src.rpm
ftp://atualizacoes.conectiva.com.br/ferramentas/graficas/i386/xchat-1.4.2-4cl.i386.rpm
Users of Slackware 7.0, 7.1, and -current are urged to upgraded to the
xchat.tgz package available in the Slackware -current branch.
TurboLinux has released updated packages:
ftp://ftp.turbolinux.com/pub/updates/6.0/xchat-1.4.3-1.i386.rpm
ftp://ftp.turbolinux.com/pub/updates/6.0/SRPMS/xchat-1.4.3-1.src.rpm
The new xchat.tgz package is available from:
ftp://ftp.slackware.com/pub/slackware/slackware-current/slakware/gtk/xchat.tgz
X-Chat X-Chat 1.2.1
-
MandrakeSoft 7.0 i386 xchat-1.4.1-4mdk.i586.rpm
ftp://ftp.linux.tucows.com/pub/distributions/Mandrake/Mandrake/updates /7.0/RPMS/xchat-1.4.1-4mdk.i586.rpm -
X-Chat X-Chat 1.4.3
Provided by the authors of X-Chat.
http://xchat.linuxpower.org/files/source/1.4/xchat-1.4.3.tar.gz
X-Chat X-Chat 1.3.10
-
Debian xchat-common_1.4.3-0.1_all.deb
http://security.debian.org/dists/stable/updates/main/binary-all/xchat- common_1.4.3-0.1_all.deb -
MandrakeSoft 7.0 i386 xchat-1.4.1-4mdk.i586.rpm
ftp://ftp.linux.tucows.com/pub/distributions/Mandrake/Mandrake/updates /7.0/RPMS/xchat-1.4.1-4mdk.i586.rpm -
MandrakeSoft 7.1 i386 xchat-1.4.1-4mdk.i586.rpm
ftp://ftp.linux.tucows.com/pub/distributions/Mandrake/Mandrake/updates /7.1/RPMS/xchat-1.4.1-4mdk.i586.rpm -
Red Hat Inc. 6.2 alpha xchat-1.4.0-2.alpha.rpm
ftp://updates.redhat.com/6.2/alpha/xchat-1.4.0-2.alpha.rpm -
Red Hat Inc. 6.2 i386 xchat-1.4.0-2.i386.rpm
ftp://updates.redhat.com/6.2/i386/xchat-1.4.0-2.i386.rpm -
Red Hat Inc. 6.2 sparc xchat-1.4.0-2.sparc.rpm
ftp://updates.redhat.com/6.2/sparc/xchat-1.4.0-2.sparc.rpm -
X-Chat X-Chat 1.4.3
Provided by the authors of X-Chat.
http://xchat.linuxpower.org/files/source/1.4/xchat-1.4.3.tar.gz
X-Chat X-Chat 1.3.11
-
Debian xchat-common_1.4.3-0.1_all.deb
http://security.debian.org/dists/stable/updates/main/binary-all/xchat- common_1.4.3-0.1_all.deb -
MandrakeSoft 7.0 i386 xchat-1.4.1-4mdk.i586.rpm
ftp://ftp.linux.tucows.com/pub/distributions/Mandrake/Mandrake/updates /7.0/RPMS/xchat-1.4.1-4mdk.i586.rpm -
MandrakeSoft 7.1 i386 xchat-1.4.1-4mdk.i586.rpm
ftp://ftp.linux.tucows.com/pub/distributions/Mandrake/Mandrake/updates /7.1/RPMS/xchat-1.4.1-4mdk.i586.rpm -
Red Hat Inc. 6.2 alpha xchat-1.4.0-2.alpha.rpm
ftp://updates.redhat.com/6.2/alpha/xchat-1.4.0-2.alpha.rpm -
Red Hat Inc. 6.2 i386 xchat-1.4.0-2.i386.rpm
ftp://updates.redhat.com/6.2/i386/xchat-1.4.0-2.i386.rpm -
Red Hat Inc. 6.2 sparc xchat-1.4.0-2.sparc.rpm
ftp://updates.redhat.com/6.2/sparc/xchat-1.4.0-2.sparc.rpm -
X-Chat X-Chat 1.4.3
Provided by the authors of X-Chat.
http://xchat.linuxpower.org/files/source/1.4/xchat-1.4.3.tar.gz
X-Chat X-Chat 1.3.12
-
Debian xchat-common_1.4.3-0.1_all.deb
http://security.debian.org/dists/stable/updates/main/binary-all/xchat- common_1.4.3-0.1_all.deb -
MandrakeSoft 7.0 i386 xchat-1.4.1-4mdk.i586.rpm
ftp://ftp.linux.tucows.com/pub/distributions/Mandrake/Mandrake/updates /7.0/RPMS/xchat-1.4.1-4mdk.i586.rpm -
MandrakeSoft 7.1 i386 xchat-1.4.1-4mdk.i586.rpm
ftp://ftp.linux.tucows.com/pub/distributions/Mandrake/Mandrake/updates /7.1/RPMS/xchat-1.4.1-4mdk.i586.rpm -
Red Hat Inc. 6.2 alpha xchat-1.4.0-2.alpha.rpm
ftp://updates.redhat.com/6.2/alpha/xchat-1.4.0-2.alpha.rpm -
Red Hat Inc. 6.2 i386 xchat-1.4.0-2.i386.rpm
ftp://updates.redhat.com/6.2/i386/xchat-1.4.0-2.i386.rpm -
Red Hat Inc. 6.2 sparc xchat-1.4.0-2.sparc.rpm
ftp://updates.redhat.com/6.2/sparc/xchat-1.4.0-2.sparc.rpm -
X-Chat X-Chat 1.4.3
Provided by the authors of X-Chat.
http://xchat.linuxpower.org/files/source/1.4/xchat-1.4.3.tar.gz
X-Chat X-Chat 1.3.13
-
Debian xchat-common_1.4.3-0.1_all.deb
http://security.debian.org/dists/stable/updates/main/binary-all/xchat- common_1.4.3-0.1_all.deb -
MandrakeSoft 7.0 i386 xchat-1.4.1-4mdk.i586.rpm
ftp://ftp.linux.tucows.com/pub/distributions/Mandrake/Mandrake/updates /7.0/RPMS/xchat-1.4.1-4mdk.i586.rpm -
MandrakeSoft 7.1 i386 xchat-1.4.1-4mdk.i586.rpm
ftp://ftp.linux.tucows.com/pub/distributions/Mandrake/Mandrake/updates /7.1/RPMS/xchat-1.4.1-4mdk.i586.rpm -
Red Hat Inc. 6.2 alpha xchat-1.4.0-2.alpha.rpm
ftp://updates.redhat.com/6.2/alpha/xchat-1.4.0-2.alpha.rpm -
Red Hat Inc. 6.2 i386 xchat-1.4.0-2.i386.rpm
ftp://updates.redhat.com/6.2/i386/xchat-1.4.0-2.i386.rpm -
Red Hat Inc. 6.2 sparc xchat-1.4.0-2.sparc.rpm
ftp://updates.redhat.com/6.2/sparc/xchat-1.4.0-2.sparc.rpm -
X-Chat X-Chat 1.4.3
Provided by the authors of X-Chat.
http://xchat.linuxpower.org/files/source/1.4/xchat-1.4.3.tar.gz
X-Chat X-Chat 1.3.9
-
Debian xchat-common_1.4.3-0.1_all.deb
http://security.debian.org/dists/stable/updates/main/binary-all/xchat- common_1.4.3-0.1_all.deb -
MandrakeSoft 7.0 i386 xchat-1.4.1-4mdk.i586.rpm
ftp://ftp.linux.tucows.com/pub/distributions/Mandrake/Mandrake/updates /7.0/RPMS/xchat-1.4.1-4mdk.i586.rpm -
MandrakeSoft 7.1 i386 xchat-1.4.1-4mdk.i586.rpm
ftp://ftp.linux.tucows.com/pub/distributions/Mandrake/Mandrake/updates /7.1/RPMS/xchat-1.4.1-4mdk.i586.rpm -
Red Hat Inc. 6.2 alpha xchat-1.4.0-2.alpha.rpm
ftp://updates.redhat.com/6.2/alpha/xchat-1.4.0-2.alpha.rpm -
Red Hat Inc. 6.2 i386 xchat-1.4.0-2.i386.rpm
ftp://updates.redhat.com/6.2/i386/xchat-1.4.0-2.i386.rpm -
Red Hat Inc. 6.2 sparc xchat-1.4.0-2.sparc.rpm
ftp://updates.redhat.com/6.2/sparc/xchat-1.4.0-2.sparc.rpm -
X-Chat X-Chat 1.4.3
Provided by the authors of X-Chat.
http://xchat.linuxpower.org/files/source/1.4/xchat-1.4.3.tar.gz
X-Chat X-Chat 1.4
-
Debian xchat-common_1.4.3-0.1_all.deb
http://security.debian.org/dists/stable/updates/main/binary-all/xchat- common_1.4.3-0.1_all.deb -
MandrakeSoft 7.0 i386 xchat-1.4.1-4mdk.i586.rpm
ftp://ftp.linux.tucows.com/pub/distributions/Mandrake/Mandrake/updates /7.0/RPMS/xchat-1.4.1-4mdk.i586.rpm -
MandrakeSoft 7.1 i386 xchat-1.4.1-4mdk.i586.rpm
ftp://ftp.linux.tucows.com/pub/distributions/Mandrake/Mandrake/updates /7.1/RPMS/xchat-1.4.1-4mdk.i586.rpm -
Red Hat Inc. 6.2 alpha xchat-1.4.0-2.alpha.rpm
ftp://updates.redhat.com/6.2/alpha/xchat-1.4.0-2.alpha.rpm -
Red Hat Inc. 6.2 i386 xchat-1.4.0-2.i386.rpm
ftp://updates.redhat.com/6.2/i386/xchat-1.4.0-2.i386.rpm -
Red Hat Inc. 6.2 sparc xchat-1.4.0-2.sparc.rpm
ftp://updates.redhat.com/6.2/sparc/xchat-1.4.0-2.sparc.rpm -
X-Chat X-Chat 1.4.3
Provided by the authors of X-Chat.
http://xchat.linuxpower.org/files/source/1.4/xchat-1.4.3.tar.gz
X-Chat X-Chat 1.4.1
-
Debian xchat-common_1.4.3-0.1_all.deb
http://security.debian.org/dists/stable/updates/main/binary-all/xchat- common_1.4.3-0.1_all.deb -
Red Hat Inc. 6.2 alpha xchat-1.4.0-2.alpha.rpm
ftp://updates.redhat.com/6.2/alpha/xchat-1.4.0-2.alpha.rpm -
Red Hat Inc. 6.2 i386 xchat-1.4.0-2.i386.rpm
ftp://updates.redhat.com/6.2/i386/xchat-1.4.0-2.i386.rpm -
Red Hat Inc. 6.2 sparc xchat-1.4.0-2.sparc.rpm
ftp://updates.redhat.com/6.2/sparc/xchat-1.4.0-2.sparc.rpm -
X-Chat X-Chat 1.4.3
Provided by the authors of X-Chat.
http://xchat.linuxpower.org/files/source/1.4/xchat-1.4.3.tar.gz
X-Chat X-Chat 1.4.2
-
Debian xchat-common_1.4.3-0.1_all.deb
http://security.debian.org/dists/stable/updates/main/binary-all/xchat- common_1.4.3-0.1_all.deb -
Red Hat Inc. 6.2 alpha xchat-1.4.0-2.alpha.rpm
ftp://updates.redhat.com/6.2/alpha/xchat-1.4.0-2.alpha.rpm -
Red Hat Inc. 6.2 i386 xchat-1.4.0-2.i386.rpm
ftp://updates.redhat.com/6.2/i386/xchat-1.4.0-2.i386.rpm -
Red Hat Inc. 6.2 sparc xchat-1.4.0-2.sparc.rpm
ftp://updates.redhat.com/6.2/sparc/xchat-1.4.0-2.sparc.rpm -
X-Chat X-Chat 1.4.3
Provided by the authors of X-Chat.
http://xchat.linuxpower.org/files/source/1.4/xchat-1.4.3.tar.gz