kses Multiple Input Validation Vulnerabilities

BID:28599

Info

kses Multiple Input Validation Vulnerabilities

Bugtraq ID: 28599
Class: Input Validation Error
CVE: CVE-2008-1502
CVE-2008-1222
Remote: Yes
Local: No
Published: Apr 03 2008 12:00AM
Updated: May 07 2015 06:19PM
Credit: Lukasz Pilorz
Vulnerable: WordPress Wordpress (B2) 0.6.2 .1
WordPress Wordpress (B2) 0.6.2
WordPress WordPress 2.3.3
WordPress WordPress 2.3.2
WordPress WordPress 2.3.1
WordPress WordPress 2.2.3
WordPress WordPress 2.2.2
WordPress WordPress 2.2.1
WordPress WordPress 2.1.3
WordPress WordPress 2.1.2
WordPress WordPress 2.1.1
WordPress WordPress 2.0.11
WordPress WordPress 2.0.10
WordPress WordPress 2.0.7
WordPress WordPress 2.0.6
WordPress WordPress 2.0.5
WordPress WordPress 2.0.4
WordPress WordPress 2.0.3
WordPress WordPress 2.0.2
WordPress WordPress 2.0.1
WordPress WordPress 2.0
WordPress WordPress 1.5.2
WordPress WordPress 1.5.1 .3
WordPress WordPress 1.5.1 .2
WordPress WordPress 1.5.1
WordPress WordPress 1.5
WordPress WordPress 1.3.1
WordPress WordPress 1.2.2
WordPress WordPress 1.2.1
WordPress WordPress 1.2
WordPress WordPress 0.71
WordPress WordPress 0.7
WordPress WordPress 2.3
WordPress WordPress 2.2 Revision 5003
WordPress WordPress 2.2 Revision 5002
WordPress WordPress 2.2
WordPress WordPress 2.1.3-RC2
WordPress WordPress 2.1.3-RC1
WordPress WordPress 2.1
WordPress WordPress 2.0.10-RC2
WordPress WordPress 2.0.10-RC1
Ubuntu Ubuntu Linux 8.04 LTS sparc
Ubuntu Ubuntu Linux 8.04 LTS powerpc
Ubuntu Ubuntu Linux 8.04 LTS lpia
Ubuntu Ubuntu Linux 8.04 LTS i386
Ubuntu Ubuntu Linux 8.04 LTS amd64
Ubuntu Ubuntu Linux 7.10 sparc
Ubuntu Ubuntu Linux 7.10 powerpc
Ubuntu Ubuntu Linux 7.10 lpia
Ubuntu Ubuntu Linux 7.10 i386
Ubuntu Ubuntu Linux 7.10 amd64
SuSE openSUSE 10.3
S.u.S.E. openSUSE 10.2
Moodle moodle 1.8.4
Moodle moodle 1.8.3
Moodle moodle 1.7.1
Moodle moodle 1.6.2
Moodle moodle 1.6.1
Moodle moodle 1.6 dev
Moodle moodle 1.5.2
Moodle moodle 1.5.1
Moodle moodle 1.5
Moodle moodle 1.4.3
Moodle moodle 1.4.2
Moodle moodle 1.4.1
Moodle moodle 1.3.4
Moodle moodle 1.3.3
Moodle moodle 1.3.2
Moodle moodle 1.3.1
Moodle moodle 1.3
Moodle moodle 1.6.1 +
MandrakeSoft Corporate Server 3.0 x86_64
MandrakeSoft Corporate Server 3.0
kses kses 0.2.2
Gentoo Linux
eGroupWare eGroupWare 1.4.2
eGroupWare eGroupWare 1.4.1
eGroupWare eGroupWare 1.0.6
eGroupWare eGroupWare 1.0.3
eGroupWare eGroupWare 1.0.1
eGroupWare eGroupWare 1.0 .0.009
eGroupWare eGroupWare 1.0 .0.007
eGroupWare eGroupWare 1.0
eGroupWare eGroupWare 1.2.107-2
eGroupWare eGroupWare 1.2.106-2
Dokeos Open Source Learning & Knowledge Management Tool 1.8.4 SP2
Dokeos Open Source Learning & Knowledge Management Tool 1.8.4
Dokeos Open Source Learning & Knowledge Management Tool 1.8
Dokeos Open Source Learning & Knowledge Management Tool 1.6.5
Dokeos Open Source Learning & Knowledge Management Tool 1.6.4
Dokeos Open Source Learning & Knowledge Management Tool 1.6 RC2
Dokeos Open Source Learning & Knowledge Management Tool 1.5.5
Dokeos Open Source Learning & Knowledge Management Tool 1.5.4
Dokeos Open Source Learning & Knowledge Management Tool 1.5.3
Dokeos Open Source Learning & Knowledge Management Tool 1.5
Dokeos Open Source Learning & Knowledge Management Tool 1.4
Dokeos Open Source Learning & Knowledge Management Tool 1.8.4 SP1
Dokeos Open Source Learning & Knowledge Management Tool 1.6.4 (P1)
Dokeos Open Source Learning & Knowledge Management 1.8.4
Dokeos Open Source Learning & Knowledge Management 1.8
Dokeos Open Source Learning & Knowledge Management 1.8.4 SP3
Dokeos Open Source Learning & Knowledge Management 1.8.4 SP1
Debian Linux 5.0 sparc
Debian Linux 5.0 s/390
Debian Linux 5.0 powerpc
Debian Linux 5.0 mipsel
Debian Linux 5.0 mips
Debian Linux 5.0 m68k
Debian Linux 5.0 ia-64
Debian Linux 5.0 ia-32
Debian Linux 5.0 hppa
Debian Linux 5.0 armel
Debian Linux 5.0 arm
Debian Linux 5.0 amd64
Debian Linux 5.0 alpha
Debian Linux 5.0
Debian Linux 4.0 sparc
Debian Linux 4.0 s/390
Debian Linux 4.0 powerpc
Debian Linux 4.0 mipsel
Debian Linux 4.0 mips
Debian Linux 4.0 m68k
Debian Linux 4.0 ia-64
Debian Linux 4.0 ia-32
Debian Linux 4.0 hppa
Debian Linux 4.0 armel
Debian Linux 4.0 arm
Debian Linux 4.0 amd64
Debian Linux 4.0 alpha
Debian Linux 4.0
BEA Systems Weblogic Proxy Plugin 1.5.3 +
BEA Systems Weblogic Proxy Plugin 1.5.3
Not Vulnerable: WordPress WordPress 2.5
Moodle moodle 1.8.5
Moodle moodle 1.9
eGroupWare eGroupWare 1.4.3
Dokeos Open Source Learning & Knowledge Management Tool 1.8.4 SP3

Discussion

kses Multiple Input Validation Vulnerabilities

The kses HTML filter is prone to multiple input-validation vulnerabilities that can lead to client-side script execution.

An attacker may leverage these issues to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may allow the attacker to steal cookie-based authentication credentials and to launch other attacks. PHP code execution is also reportedly possible, but may be exploitable only in limited -- and unknown -- circumstances.

The issues are known to affect the following multiple projects that have incorporated kses:

Dokeos prior to 1.8.4 SP3
eGroupWare prior to 1.4.003
WordPress prior to 2.5
Moodle prior to 1.9

Other applications may also be affected.

NOTE: These issues were previously documented in the following BIDs:

28424 eGroupWare '_bad_protocol_once()' HTML Security Bypass Vulnerability
28121 Dokeos Multiple Remote Code Execution and Cross-Site Scripting Vulnerabilities

Since these issues were determined to originate in the same kses-based source code, this BID has been created to cover all the affected packages.

Exploit / POC

kses Multiple Input Validation Vulnerabilities

Attackers can exploit the cross-site scripting issues by enticing an unsuspecting user to follow a malicious URI. Attackers can exploit the code-execution vulnerability with a browser.

The following proof-of-concept URIs and exploit code are available:

Solution / Fix

kses Multiple Input Validation Vulnerabilities

Solution:
Reportedly, the kses project has been abandoned.

Fixes and advisories are available for several projects that incorporate vulnerable versions of kses. Please see the references for more information.


Ubuntu Ubuntu Linux 7.10 powerpc

WordPress WordPress 2.1

Debian Linux 5.0 alpha

eGroupWare eGroupWare 1.2.106-2

Debian Linux 4.0 amd64

Debian Linux 4.0 ia-32

WordPress WordPress 2.0.10-RC2

Debian Linux 5.0 armel

Debian Linux 5.0 mips

Debian Linux 4.0 mips

Debian Linux 5.0 sparc

Debian Linux 4.0 arm

Debian Linux 4.0 powerpc

Debian Linux 4.0 m68k

Debian Linux 5.0 s/390

Ubuntu Ubuntu Linux 8.04 LTS lpia

Ubuntu Ubuntu Linux 7.10 lpia

WordPress WordPress 2.1.3-RC1

Debian Linux 5.0 hppa

Debian Linux 4.0 sparc

Debian Linux 5.0 m68k

WordPress WordPress 2.2 Revision 5003

Ubuntu Ubuntu Linux 7.10 amd64

Ubuntu Ubuntu Linux 8.04 LTS i386

eGroupWare eGroupWare 1.2.107-2

Debian Linux 5.0 ia-64

Ubuntu Ubuntu Linux 8.04 LTS powerpc

Ubuntu Ubuntu Linux 8.04 LTS sparc

Moodle moodle 1.6.1 +

WordPress WordPress 0.7

eGroupWare eGroupWare 1.0 .0.007

eGroupWare eGroupWare 1.0.1

eGroupWare eGroupWare 1.0.3

eGroupWare eGroupWare 1.0.6

WordPress WordPress 1.2

WordPress WordPress 1.2.1

WordPress WordPress 1.2.2

Moodle moodle 1.3

WordPress WordPress 1.3.1

Moodle moodle 1.3.2

Moodle moodle 1.3.3

Moodle moodle 1.3.4

Moodle moodle 1.4.1

eGroupWare eGroupWare 1.4.1

eGroupWare eGroupWare 1.4.2

Moodle moodle 1.4.2

Moodle moodle 1.4.3

Moodle moodle 1.5

Moodle moodle 1.5.1

WordPress WordPress 1.5.1

WordPress WordPress 1.5.1 .2

WordPress WordPress 1.5.2

Moodle moodle 1.5.2

BEA Systems Weblogic Proxy Plugin 1.5.3 +

Moodle moodle 1.6 dev

Moodle moodle 1.6.1

Moodle moodle 1.6.2

Moodle moodle 1.7.1

Moodle moodle 1.8.3

Dokeos Open Source Learning & Knowledge Management Tool 1.8.4 SP2

WordPress WordPress 2.0

WordPress WordPress 2.0.1

WordPress WordPress 2.0.11

WordPress WordPress 2.0.3

WordPress WordPress 2.0.5

WordPress WordPress 2.1.1

WordPress WordPress 2.1.2

WordPress WordPress 2.1.3

WordPress WordPress 2.2.1

WordPress WordPress 2.3.1

MandrakeSoft Corporate Server 3.0

References

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report